@import url('https://fonts.googleapis.com/css2?family=Balsamiq+Sans:wght@400;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: url('https://www.rw-designer.com/cursor-extern.php?id=154392') 0 0, auto !important;
}

:root {
  --pink: #fac5d0;
  --pink-dark: #f28da7;
  --pink-soft: rgba(245, 223, 226, 0.78);
  --green: #dce8b2;
  --green-soft: #eff2df;
  --brown: #a18a7c;
  --text: #795e50;
  --line: 3px;
}

body {
  min-height: 100vh;
  padding: 86px 16px 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Quicksand', sans-serif;
  color: var(--text);
  background-color: #f7dfe0;
  background-image: radial-gradient(circle, rgba(255,255,255,.96) 0 3px, transparent 4px);
  background-size: 30px 30px;
  background-position: 0 4px;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

/* Strawberry-like green top with soft scallops */
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  top: 0;
  left: -3%;
  width: 106%;
  height: 38%;
  background: var(--green);
  clip-path: polygon(
    0 0, 100% 0, 100% 75%,
    97% 81%, 94% 87%, 91% 91%, 88% 92%,
    85% 89%, 82% 84%, 79% 81%, 76% 83%,
    73% 88%, 70% 92%, 67% 94%, 64% 91%,
    61% 86%, 58% 81%, 55% 79%, 52% 82%,
    49% 88%, 46% 93%, 43% 95%, 40% 92%,
    37% 87%, 34% 82%, 31% 80%, 28% 83%,
    25% 89%, 22% 93%, 19% 92%, 16% 87%,
    13% 82%, 10% 80%, 7% 84%, 4% 90%,
    0 93%
  );
}

/* Browser frame */
.window-container {
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: 660px;
  background: rgba(255, 254, 253, 0.12);
  border: var(--line) solid var(--brown);
  border-radius: 20px;
  box-shadow: 0 4px 0 rgba(161,138,124,.10);
  overflow: visible;
}

/* Bunny ears */
.bunny-ear {
  position: absolute;
  z-index: -1;
  top: -66px;
  width: 66px;
  height: 96px;
  background: rgba(255, 254, 253, .96);
  border: var(--line) solid var(--brown);
  border-radius: 52% 52% 24% 24%;
}

.bunny-ear.left {
  left: 9%;
  transform: rotate(-11deg);
}

.bunny-ear.right {
  right: 9%;
  transform: rotate(11deg);
}

.bunny-ear::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 11px;
  width: 36px;
  height: 66px;
  background: var(--pink);
  border-radius: 50%;
}

/* Pink title bar */
.title-bar {
  min-height: 48px;
  background: #fac5d0;
  padding: 10px 16px;
  border-radius: 16px 16px 0 0;
  border-bottom: var(--line) solid var(--brown);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.window-dots {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.dot {
  width: 14px;
  height: 14px;
  display: inline-block;
  background: white;
  border: none;
  border-radius: 50%;
}

.dot:nth-child(2) {
  background: var(--green);
}

.dot:nth-child(3) {
  background: #ed9aaa;
}

.window-title {
  font-size: .94rem;
  font-weight: 700;
  letter-spacing: .7px;
  text-align: center;
}

.title-spacer {
  width: 48px;
  flex-shrink: 0;
}

/* Tabs */
.tabs-header {
  display: flex;
  align-items: end;
  gap: 6px;
  padding: 10px 12px 0;
  background: rgba(239, 242, 223, .96);
  border-bottom: var(--line) solid var(--brown);
}

.tab-btn {
  flex: 0 1 150px;
  min-width: 0;
  padding: 8px 11px 7px;
  text-align: center;
  background: rgba(255, 254, 253, .94);
  border: var(--line) solid var(--brown);
  border-bottom: 0;
  border-radius: 11px 11px 0 0;
  font: 700 .92rem 'Quicksand', sans-serif;
  color: var(--text);
  transition: background .2s;
}

.tab-btn:hover {
  background: #fff0f3;
}

.tab-btn.active {
  background: rgba(255, 254, 253, .88);
  margin-bottom: calc(-1 * var(--line));
  padding-bottom: 9px;
  position: relative;
  z-index: 1;
}

/* Main content — stays transparent */
.content-area {
  padding: 28px 36px 34px;
  min-height: 340px;
  background: rgba(255, 254, 253, 0.58);
  border-radius: 0 0 16px 16px;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.welcome-title {
  font-family: 'Balsamiq Sans';
  color: #df93a7;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  line-height: 1.35;
  text-align: center;
  margin-bottom: 10px;
}

p {
  line-height: 1.6;
  margin-bottom: 12px;
  font-size: .92rem;
}

.intro {
  text-align: center;
  margin-bottom: 22px;
}

/* Home panels */
.home-panels {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(210px, 1.2fr);
  align-items: center;
  gap: 22px;
  margin-top: 16px;
}

.image-card {
  min-height: 220px;
  background: rgba(239, 242, 223, .94);
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  font-size: 1.15rem;
  font-style: italic;
  padding: 8px;
}

.image-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  display: block;
}

.welcome-note {
  min-height: 195px;
  padding: 20px 25px;
  background: var(--pink-soft);
  border: 2px solid var(--pink-dark);
  border-radius: 8px;
  font-size: .98rem;
}

.welcome-note p {
  margin: 0;
}

.inner-box {
  background: rgba(239, 242, 223, .95);
  border: 2px dotted var(--pink-dark);
  border-radius: 8px;
  padding: 13px;
  margin-top: 14px;
}

h2 {
  font-family: 'Balsamiq Sans';
  color: #df93a7;
  font-size: 2rem;
  margin-bottom: 9px;
  text-align: center;
}

/* Mobile layout — smaller, centered window */
@media (max-width: 520px) {
  body {
    min-height: 100vh;
    padding: 90px 0 35px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-size: 34px 34px;
  }

  body::before {
    height: 31%;
  }

  .window-container {
    width: 88%;
    max-width: 360px;
    margin: 0 auto;
    border-radius: 16px;
  }

  .bunny-ear {
    width: 48px;
    height: 75px;
    top: -53px;
  }

  .bunny-ear::after {
    width: 25px;
    height: 50px;
    top: 9px;
    left: 8px;
  }

  .title-bar {
    padding: 9px 10px;
  }

  .window-title {
    font-size: .76rem;
    letter-spacing: .1px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .window-dots {
    gap: 5px;
  }

  .title-spacer {
    width: 16px;
  }

  .tabs-header {
    padding: 8px 7px 0;
    gap: 4px;
  }

  .tab-btn {
    flex: 1 1 0;
    padding: 7px 3px;
    font-size: .75rem;
  }

  .content-area {
    padding: 21px 15px 23px;
    min-height: 0;
  }

  .home-panels {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .image-card {
    min-height: 185px;
  }

  .image-card img {
    min-height: 175px;
  }

  .welcome-note {
    min-height: 135px;
    padding: 16px;
  }
}

/* Bio bullet points */
.bio-line {
  position: relative;
  padding-left: 14px;
  margin-bottom: 8px !important;
}

.bio-line::before {
  content: "•";
  color: #df93a7;
  position: absolute;
  left: 0;
  font-size: 15px;
  font-style: normal;
}

/* Fic recommendations layout */
.fic-layout {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.fic-image-card {
  width: 155px;
  aspect-ratio: 1 / 1;
  background: rgba(239, 242, 223, .94);
  border: none;
  border-radius: 8px;
  overflow: hidden;
}

.fic-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fic-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.fic-btn {
  display: block;
  padding: 12px 8px;
  background: rgba(250, 197, 208, .8);
  border: 2px solid var(--brown);
  border-radius: 12px;
  color: #795e50;
  font-family: 'Quicksand', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background .2s, transform .2s;
}

.fic-btn:hover {
  background: #f8dce3;
  transform: translateY(-2px);
}

/* Mobile fic recommendations */
@media (max-width: 520px) {
  .fic-layout {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
  }

  .fic-image-card {
    width: 110px;
  }

  .fic-btn {
    font-size: .75rem;
    padding: 10px 5px;
  }
}

/* ==============================
   ALL-TIME FAVS PAGE ♡
   ============================== */

.favs-content {
  padding: 20px;
  background: rgba(255, 248, 240, 0.75);
  border: 2px dashed var(--pink-dark);
  border-radius: 12px;
}

/* Fic cards */
/* Fic cards — alternating pink and green ♡ */
.fic-card {
  padding: 18px;
  margin-bottom: 18px;
  background: rgba(250, 197, 208, 0.55);
  border: 2px solid var(--pink-dark);
  border-radius: 12px;
  overflow-wrap: anywhere;
}

/* Every other fic card is green 🌿 */
.fic-card:nth-child(even) {
  background: rgba(220, 232, 178, 0.55);
  border-color: #b4c98a;
}

.fic-card:last-child {
  margin-bottom: 0;
}

.fic-card h2 {
  margin: 0 0 14px;
  color: var(--brown);
  font-size: 1.4rem;
  text-align: left;
  overflow-wrap: anywhere;
}

.fic-card p {
  font-size: 0.88rem;
  line-height: 1.7;
}

.fic-detail {
  margin: 6px 0;
}

/* Expandable summary */
.fic-summary {
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.7;
}

.fic-summary > strong {
  margin-right: 4px;
}

.fic-summary details {
  display: inline;
}

.fic-summary summary {
  display: inline;
  cursor: pointer;
  color: var(--brown);
  font-weight: 600;
  list-style: none;
}

.fic-summary summary::-webkit-details-marker {
  display: none;
}

.fic-summary summary:hover {
  color: var(--pink-dark);
}

.summary-text {
  margin-top: 12px;
  padding: 12px;
  background: rgba(250, 197, 208, 0.2);
  border-left: 3px dotted var(--pink-dark);
  border-radius: 6px;
}

.summary-text p {
  margin: 0 0 12px;
}

.summary-text p:last-child {
  margin-bottom: 0;
}

/* Why I love it */
.fic-love {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--pink-dark);
  font-size: 0.88rem;
}

.fic-love p {
  margin: 6px 0 0;
}

/* Read fic button */
.read-fic-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 16px;
  background: rgba(250, 197, 208, 0.8);
  border: 2px solid var(--brown);
  border-radius: 10px;
  color: #795e50;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.read-fic-btn:hover {
  background: #f8dce3;
  transform: translateY(-2px);
}

/* Navigation */
.page-nav {
  display: flex;
  justify-content: center;
  margin: 14px 0;
}

.page-nav a {
  display: inline-block;
  padding: 8px 14px;
  background: rgba(250, 197, 208, 0.65);
  border: 1px dotted var(--brown);
  border-radius: 9px;
  color: var(--brown);
  font-size: 0.85rem;
  text-decoration: none;
}

.page-nav a:hover {
  background: #f8dce3;
}

/* Footer */
.page-footer {
  padding: 18px 8px 4px;
  color: var(--brown);
  font-size: 0.8rem;
  text-align: center;
}

/* Mobile all-time favs */
@media (max-width: 480px) {
  .favs-content {
    padding: 10px;
  }

  .fic-card {
    padding: 13px;
  }

  .fic-card h2 {
    font-size: 1.2rem;
  }

  .fic-card p,
  .fic-summary {
    font-size: 0.82rem;
  }

  .summary-text {
    padding: 9px;
  }
}

/* Page background */
html {
  min-height: 100%;
  background-attachment: fixed;
}

body {
  min-height: 100vh;
  background-attachment: fixed;
}

/* Page header */
.browser {
  position: relative;
}

.page-header h2 {
  font-size: 1.4rem;
  line-height: 1.35;
  margin-bottom: 9px;
}

/* Mobile-only home layout fix */
@media (max-width: 520px) {
  #home .home-panels {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
  }

  #home .image-card {
    width: 200px;
    height: 220px;
    min-height: 0;
    margin: 0 auto;
    box-sizing: border-box;
  }

  #home .image-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
  }

  #home .welcome-note {
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
  }

  .fic-layout {
    grid-template-columns: 155px minmax(0, 1fr);
  }

  .fic-image-card {
    width: 155px;
  }
}

@media (max-width: 380px) {
  .fic-layout {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 10px;
  }

  .fic-image-card {
    width: 100px;
  }
}

/* Pink fic cards: green summary paragraph background */
.fic-card:nth-of-type(odd) .summary-text {
  background: rgba(220, 232, 178, 0.35);
}

/* Pink text selection ♡ */
::selection {
  background: #fac5d0;
  color: #795e50;
}

::-moz-selection {
  background: #fac5d0;
  color: #795e50;
}
