/* ================================
   THE PETZ FILES
   Cozy P.B.I. headquarters styles
================================== */

/* Main white card */
.petzfiles-card {
  max-width: 760px;
  margin: 22px auto 0;
  padding: 24px 22px 32px;
  text-align: center;
}

/* Main title */
.petzfiles-title {
  margin: 0 0 18px;
  font-family: "Special Elite", monospace;
  color: var(--title);
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: 0.06em;
  text-shadow: 2px 2px 0 #d8c4e8;
}

.petzfiles-title i {
  font-size: 0.75em;
  margin-left: 6px;
  opacity: 0.85;
}

/* Agent intro rows */
.petzfiles-agent-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 640px;
  margin: 10px auto;
}

.petzfiles-agent-row.reverse {
  flex-direction: row-reverse;
}

.petzfiles-agent-img {
  max-width: 105px;
  height: auto;
  flex: 0 0 auto;
}

.petzfiles-agent-text {
  max-width: 48ch;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Soft divider before the case file */
.petzfiles-divider {
  width: min(140px, 40%);
  height: 2px;
  margin: 5px auto 50px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(167,124,207,.45),
    transparent
  );
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(167,124,207,.18);
}

/* ================================
   CURRENT INVESTIGATION FOLDER
================================== */

.petzfiles-case-wrap {
  max-width: 550px;
  margin: 34px auto 50px;
  display: flex;
  flex-direction: column;
}

/* Folder tab */
.petzfiles-folder-tab {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 -1px 24px;
  padding: 10px 28px 12px;
  background: #ebdabf;
  border-radius: 12px 12px 0 0;
  font-family: "Special Elite", monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
  position: relative;
  z-index: 4;
}

/* Folder front / click target */
.petzfiles-case-folder {
  display: block;
  position: relative;
  z-index: 2;
  overflow: visible;

  width: 100%;
  min-height: 300px;
  margin: 0;
  padding: 60px 24px 60px;

  background: #f4e3c7;
  border: 0;
  border-radius: 10px 14px 14px 14px;
  box-shadow: 0 3px 10px rgba(70,56,104,.08);

  color: var(--text);
  text-align: center;
  cursor: pointer;
  appearance: none;

  transition: transform .18s ease, box-shadow .18s ease;
}

.petzfiles-case-folder:hover,
.petzfiles-case-folder:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(70,56,104,.12);
}

.petzfiles-case-folder:focus-visible {
  outline: 2px dashed var(--link);
  outline-offset: 4px;
}

/* Sticky note */
.petzfiles-sticky-note {
  position: absolute;
  left: -20px;
  top: 34px;

  width: 95px;
  height: 85px;
  padding: 14px 10px 8px;

  background: #fff7a8;
  color: var(--title);
  font-family: "Permanent Marker", cursive;
  font-size: 1rem;
  line-height: 1.15;
  text-align: center;

  transform: rotate(-6deg);
  box-shadow: 0 6px 10px rgba(70,56,104,.16);
  border-radius: 2px;
  z-index: 5;
  pointer-events: none;
}

.petzfiles-sticky-note::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 30px;
  width: 34px;
  height: 18px;
  background: rgba(255,255,255,.55);
  transform: rotate(4deg);
  box-shadow: 0 1px 3px rgba(70,56,104,.08);
}

/* Case folder text */
.petzfiles-case-number {
  margin: 0 0 6px;
  font-family: "Special Elite", monospace;
  color: var(--title);
  font-size: 1.4rem;
}

.petzfiles-case-title {
  margin: 0 0 10px;
  font-family: "Special Elite", monospace;
  font-size: 1.8rem;
  color: var(--text);
}

.petzfiles-case-text {
  max-width: 48ch;
  margin: 0 auto;
  line-height: 1.5;
}

/* ================================
   OPEN BRIEFING PAPER
================================== */

.petzfiles-folder-inside {
  position: relative;
  z-index: 3;

  max-height: 0;
  overflow: hidden;
  opacity: 0;

  max-width: 470px;
  margin: -52px auto 0;
  padding: 0 28px;

  background: #fffaf1;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 10px 24px rgba(70,56,104,.10);

  transition:
    max-height .45s ease,
    padding .35s ease,
    opacity .25s ease;
}

/* Perforated / torn notebook-ish top */
.petzfiles-folder-inside::before {
  content: "";
  display: block;
  height: 16px;
  margin: -34px -28px 24px;

  background:
    radial-gradient(circle at 12px 0,
      transparent 7px,
      #fffaf1 7.5px
    )
    repeat-x;

  background-size: 28px 16px;
}

.petzfiles-case-wrap.open .petzfiles-folder-inside {
  max-height: 760px;
  padding: 34px 28px 30px;
  opacity: 1;
}

.petzfiles-folder-inside p {
  max-width: 48ch;
  margin: 0 auto 12px;
  line-height: 1.55;
}

/* ================================
   CASE BRIEF CONTENT
================================== */

.case-brief {
  max-width: 40ch;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
}

.case-brief h3 {
  margin: 0 0 10px;
  font-family: "Special Elite", monospace;
  color: var(--title);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 1rem;
}

.scruffy-note {
  margin: 18px auto;
  font-family: "Comic Neue", cursive;
  font-style: italic;
  color: #7b6a93;
  opacity: .9;
  transform: rotate(-1deg);
}

.scruffy-note span {
  font-size: .9em;
}

.brief-divider {
  width: 120px;
  height: 2px;
  margin: 22px auto;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(167,124,207,.4),
    transparent
  );
}

/* ================================
   BUTTONS
================================== */

.petzfiles-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.petzfiles-btn {
  display: inline-block;
  border: 1px solid rgba(167,124,207,.28);
  background: linear-gradient(
    180deg,
    rgba(167,124,207,.20),
    rgba(167,124,207,.08)
  );
  color: var(--text);
  padding: 10px 16px;
  border-radius: 12px;
  font-family: "Raleway", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(70,56,104,.10);
  transition:
    transform .12s ease,
    box-shadow .18s ease,
    filter .18s ease,
    letter-spacing .18s ease;
}

.petzfiles-btn:hover {
  letter-spacing: .12em;
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 10px 22px rgba(70,56,104,.16);
}

.petzfiles-btn:focus-visible {
  outline: 2px dashed var(--link);
  outline-offset: 3px;
}

/* Keep this card from doing the normal hover lift */
.card.petzfiles-card:hover {
  transform: none;
}

/* ================================
   MOBILE
================================== */

@media (max-width: 560px) {
  .petzfiles-card {
    padding: 20px 16px 28px;
  }

.petzfiles-title {
   font-size: 1.25rem;
 }

  .petzfiles-agent-row,
  .petzfiles-agent-row.reverse {
    flex-direction: column;
    gap: 8px;
  }

  .petzfiles-agent-img {
    max-width: 90px;
  }

  .petzfiles-divider {
    margin-bottom: 42px;
  }

  .petzfiles-case-wrap {
    max-width: 100%;
  }

  .petzfiles-folder-tab {
    margin-left: 18px;
    padding-inline: 20px;
    font-size: 0.82rem;
  }

  .petzfiles-case-folder {
    min-height: 260px;
    padding: 46px 18px 52px;
  }

  .petzfiles-sticky-note {
    left: -8px;
    top: 5px;
    transform: rotate(-6deg) scale(.85);
  }

  .petzfiles-case-title {
    font-size: 1.55rem;
  }

  .petzfiles-folder-inside {
    max-width: calc(100% - 28px);
    margin-top: -44px;
  }

  .petzfiles-case-wrap.open .petzfiles-folder-inside {
    padding: 46px 20px 28px;
  }

  .petzfiles-btn {
    width: 100%;
  }
}

.headquarters-stamp {
  text-align: center;
  margin-bottom: 15px;
}

.headquarters-stamp img {
  width: auto;
}

.archives-wrap {
  padding-top: 40px;
}

.petzfiles-archives-link {
  max-width: 390px;
  margin: 0 auto;
  padding: 20px;

  text-align: center;

  border: 2px dotted #c8a7ef;
  border-radius: 18px;
  background: rgba(255,255,255,.35);
}

.archives-cabinet {
  display: block;
  width: 26px;
  height: auto;
  margin: 0 auto 12px;
}

.petzfiles-archives-link h3 {
  margin: 0 0 8px;
  font-family: "Special Elite", monospace;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--title);
  letter-spacing: .08em;
}

.petzfiles-archives-link p {
  max-width: 260px;
  margin: 0 auto 12px;
  font-size: .92rem;
  line-height: 1.45;
}

.petzfiles-archives-link a {
  display: inline-block;
  font-weight: 800;
}
