/* ================================================
   ✿ SONNY ANGEL FANSITE ✿
   A pastel scrapbook for cherub collectors
   Designed for Neocities — paste into your styles!
   ================================================ */

/* ── Google Fonts import ── */
@import url('https://fonts.googleapis.com/css2?family=Shrikhand&family=Nunito:wght@400;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --blush-white:  #FFF0F5;
  --petal:        #F7D6E0;
  --dusty-rose:   #E8C4D8;
  --muted-violet: #C9A8C4;
  --baby-blue:    #A8D8EA;
  --text-dark:    #4A3048;
  --text-mid:     #7A5C75;
  --text-light:   #B094AA;
  --white:        #FFFFFF;

  --font-display: 'Shrikhand', cursive;
  --font-body:    'Nunito', sans-serif;

  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    28px;
  --radius-pill:  999px;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--blush-white);
  background-image:
    radial-gradient(circle at 15% 20%, #F7D6E055 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, #A8D8EA44 0%, transparent 40%);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  /* Subtle dot grid — very Web 1.0 scrapbook */
  background-attachment: fixed;
}

ul,li {
  margin-left: 20px;
}

li {
  list-style-type: "໒꒱ ";
}

/* Animated pastel dot pattern overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, #E8C4D840 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
}

/* ── Layout Wrapper ── */
.site-wrapper {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

/* ── ✦ HERO BANNER ── */
.hero {
  text-align: center;
  padding: 48px 24px 36px;
  background: linear-gradient(
    135deg,
    #FFDDE8 0%,
    #FFE9F3 20%,
    #E8D5F0 40%,
    #C9E8F5 60%,
    #D5F0E8 80%,
    #FFDDE8 100%
  );
  background-size: 300% 300%;
  animation: shimmer 8s ease infinite;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  border-bottom: 3px dashed var(--dusty-rose);
  box-shadow: 0 4px 24px #E8C4D860;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}

/* Stars sprinkled in hero */
.hero::after {
  content: '✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦';
  display: block;
  font-size: 11px;
  color: var(--muted-violet);
  letter-spacing: 6px;
  margin-top: 16px;
  opacity: 0.7;
}

@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.6rem);
  color: var(--text-dark);
  letter-spacing: 1px;
  line-height: 1.1;
  text-shadow: 3px 3px 0 #fff, 5px 5px 0 #E8C4D880;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-mid);
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Floating angel halo decoration */
.hero-deco {
  font-size: 2.4rem;
  display: inline-block;
  animation: float 3.5s ease-in-out infinite;
  margin-bottom: 8px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ── Navigation ── */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

nav a {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 2px solid var(--dusty-rose);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

nav a:hover,
nav a.active {
  background: var(--dusty-rose);
  color: var(--white);
  border-color: var(--dusty-rose);
  transform: translateY(-2px);
}

/* ── Divider ── */
.divider {
  text-align: center;
  color: var(--muted-violet);
  letter-spacing: 8px;
  font-size: 0.85rem;
  margin: 28px 0;
  opacity: 0.6;
}

.divider::before,
.divider::after {
  content: '';
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--dusty-rose);
  vertical-align: middle;
  margin: 0 10px;
}

/* ── Section Titles ── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  color: var(--text-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .icon {
  font-size: 1.2em;
}

/* ── Cards (collection items, figures, posts) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 2px solid var(--petal);
  padding: 18px 16px 16px;
  text-align: center;
  box-shadow: 0 3px 12px #E8C4D840;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--petal), var(--baby-blue), var(--petal));
  position: absolute;
  top: 0; left: 0; right: 0;
}

.card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 0 8px 24px #C9A8C440;
}

.card img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
}

.card-name {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.card-series {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Tag/badge on card (e.g. "Wishlist", "Owned") */
.card-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.card-tag.owned    { background: #D5F0E8; color: #3A7A60; }
.card-tag.wishlist { background: #FFE9F3; color: #A0426A; }
.card-tag.trading  { background: #FFF3CC; color: #7A6000; }
.card-tag.grail    { background: linear-gradient(90deg, #FFD6E7, #C9E8F5); color: var(--text-dark); }

/* ── Content Box (about, diary entries, lore) ── */
.content-box {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 2px solid var(--petal);
  padding: 28px 28px 24px;
  margin-bottom: 28px;
  box-shadow: 0 3px 12px #E8C4D840;
  position: relative;
}

/* Sticky note ear */
.content-box.sticky::before {
  content: '';
  position: absolute;
  top: -6px; right: 18px;
  width: 20px; height: 12px;
  background: var(--dusty-rose);
  border-radius: 3px 3px 0 0;
}

.content-box p {
  color: var(--text-mid);
  margin-bottom: 12px;
}

.content-box p:last-child {
  margin-bottom: 0;
}

/* ── Bulletin / News sidebar ── */
.bulletin {
  background: linear-gradient(135deg, #FFE9F3, #E8D5F0);
  border-radius: var(--radius-md);
  border: 2px dashed var(--muted-violet);
  padding: 20px 22px;
  margin-bottom: 28px;
}

.bulletin-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.bulletin ul {
  list-style: none;
  padding: 0;
}

.bulletin ul li {
  padding: 5px 0;
  border-bottom: 1px dotted var(--dusty-rose);
  font-size: 0.85rem;
  color: var(--text-mid);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.bulletin ul li:last-child {
  border-bottom: none;
}

.bulletin ul li .date {
  color: var(--text-light);
  font-size: 0.72rem;
  white-space: nowrap;
  padding-top: 2px;
}

/* ── Blinkie / Badge row ── */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  align-items: center;
}

/* Generic blinkie-style badge slot — fill with <img> or style inline */
.badge {
  display: inline-block;
  height: 31px;
  border: 1px solid var(--dusty-rose);
  border-radius: 3px;
  image-rendering: pixelated;
  cursor: pointer;
  transition: filter 0.15s;
}

.badge:hover {
  filter: brightness(1.1) saturate(1.2);
}

/* Text blinkies for when you don't have an image */
.blinkie {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid;
  border-radius: 2px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: blink 1.2s step-start infinite;
}

.blinkie.pink   { background: #FFB6C1; border-color: #FF69B4; color: #6B0030; }
.blinkie.blue   { background: #B0E0FF; border-color: #87CEEB; color: #003A6B; }
.blinkie.purple { background: #D8B4FE; border-color: #A855F7; color: #3B0764; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Guestbook / Comments ── */
.guestbook {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 2px solid var(--petal);
  padding: 24px;
  margin-bottom: 28px;
}

.guestbook-entry {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dotted var(--dusty-rose);
}

.guestbook-entry:last-of-type {
  border-bottom: none;
}

.guestbook-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--dusty-rose);
  flex-shrink: 0;
}

.guestbook-avatar.placeholder {
  background: linear-gradient(135deg, var(--petal), var(--baby-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.guestbook-body {
  flex: 1;
}

.guestbook-name {
  font-weight: 800;
  color: var(--text-dark);
  font-size: 0.85rem;
}

.guestbook-date {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-left: 6px;
}

.guestbook-text {
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-top: 4px;
}

/* ── Form Elements (for guestbook, trade form, etc.) ── */
.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 5px;
  letter-spacing: 0.4px;
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 9px 14px;
  border: 2px solid var(--dusty-rose);
  border-radius: var(--radius-sm);
  background: var(--blush-white);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  border-color: var(--muted-violet);
  box-shadow: 0 0 0 3px #C9A8C430;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 9px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px #C9A8C440;
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--dusty-rose), var(--muted-violet));
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--text-mid);
  border-color: var(--dusty-rose);
}

.btn-blue {
  background: linear-gradient(135deg, var(--baby-blue), #7BBFD4);
  color: var(--text-dark);
}

/* ── Progress bar (collection completion) ── */
.progress-wrap {
  margin-bottom: 20px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.progress-bar {
  height: 12px;
  background: var(--petal);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--dusty-rose), var(--muted-violet));
  border-radius: var(--radius-pill);
  transition: width 0.6s ease;
}

/* ── Stats / Collector Info strip ── */
.stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.stat-pill {
  flex: 1;
  min-width: 120px;
  text-align: center;
  background: var(--white);
  border: 2px solid var(--petal);
  border-radius: var(--radius-md);
  padding: 14px 10px;
}

.stat-pill .stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-dark);
  line-height: 1;
}

.stat-pill .stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 32px 16px 24px;
  font-size: 0.78rem;
  color: var(--text-light);
  border-top: 2px dashed var(--petal);
  margin-top: 48px;
}

footer a {
  color: var(--muted-violet);
  text-decoration: none;
  font-weight: 700;
}

footer a:hover {
  text-decoration: underline;
}

.footer-stars {
  display: block;
  letter-spacing: 6px;
  font-size: 0.85rem;
  color: var(--dusty-rose);
  margin-bottom: 8px;
}

/* ── Scrollbar (WebKit) ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--blush-white);
}

::-webkit-scrollbar-thumb {
  background: var(--dusty-rose);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-violet);
}

/* ── Links ── */
a {
  color: var(--muted-violet);
  font-weight: 600;
  text-decoration: underline dotted var(--dusty-rose);
  transition: color 0.15s;
}

a:hover {
  color: var(--text-dark);
}

/* ── Highlight / mark ── */
mark {
  background: linear-gradient(135deg, #FFE9F380, #D5F0E880);
  padding: 1px 4px;
  border-radius: 3px;
  color: inherit;
}

/* ── Blockquote / Diary ── */
blockquote {
  border-left: 4px solid var(--dusty-rose);
  margin: 16px 0;
  padding: 10px 18px;
  background: #FFF0F5;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-mid);
  font-style: italic;
}

/* ── Image gallery strip ── */
.gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--dusty-rose) var(--petal);
}

.gallery img {
  height: 140px;
  width: auto;
  border-radius: var(--radius-sm);
  border: 2px solid var(--petal);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.gallery img:hover {
  transform: scale(1.04) rotate(-1deg);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero {
    padding: 36px 16px 28px;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .content-box {
    padding: 20px 18px;
  }

  .stats-strip {
    gap: 8px;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero,
  .hero-deco,
  .blinkie {
    animation: none;
  }

  .card:hover,
  .nav a:hover,
  .gallery img:hover {
    transform: none;
  }
}
