/* ── darlingbabie · rainbow pastel + baby pink theme ── */

:root {
  --pink:       #FFB3C6;
  --pink-deep:  #FF6B9D;
  --pink-soft:  #FFDDE1;
  --pink-pale:  #FFF0F3;
  --lavender:   #E8D5F5;
  --mint:       #D4F5E8;
  --peach:      #FFE4CC;
  --sky:        #C8E6FF;
  --yellow:     #FFF5B7;
  --text:       #5C2D3E;
  --text-soft:  #8C5A6A;
  --white:      #FFFFFF;
  --radius:     1.25rem;
  --radius-sm:  0.75rem;
  --shadow:     0 4px 24px rgba(255,107,157,0.15);
  --shadow-sm:  0 2px 12px rgba(255,107,157,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(160deg, #FFF0F3 0%, #F5EEFF 30%, #EFF8FF 60%, #FFFAED 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Floating emojis ── */
.floaties {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.floaty {
  position: absolute;
  bottom: -60px;
  left: var(--x, 50%);
  font-size: calc(1.2rem * var(--s, 1));
  animation: floatUp 18s ease-in infinite;
  animation-delay: calc(var(--d, 0) * 1s);
  opacity: 0;
  filter: drop-shadow(0 2px 4px rgba(255,107,157,0.2));
}
@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  5%   { opacity: 0.6; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-110vh) rotate(20deg); opacity: 0; }
}

/* ── Hero ── */
.hero {
  position: relative;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  overflow: hidden;
  z-index: 1;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255,179,198,0.35) 0%,
    rgba(255,221,225,0.2) 60%,
    transparent 100%);
  pointer-events: none;
}
.hero-banner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: blur(2px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

/* ── Crown ── */
.crown-wrap {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(255,180,0,0.4));
  animation: crownBob 2.5s ease-in-out infinite;
}
@keyframes crownBob {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-5px) rotate(3deg); }
}

/* ── Avatar ── */
.avatar-wrap {
  position: relative;
  display: inline-block;
}
.avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--white);
  box-shadow: 0 0 0 4px var(--pink), var(--shadow);
  display: block;
}
.avatar-placeholder {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--pink-soft);
  border: 5px solid var(--white);
  box-shadow: 0 0 0 4px var(--pink), var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.live-badge {
  position: absolute;
  bottom: 4px;
  right: 0;
  background: #FF4040;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.2em 0.55em;
  border-radius: 999px;
  border: 2px solid var(--white);
  white-space: nowrap;
}

/* ── Name & tagline ── */
.name {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--pink-deep);
  text-shadow: 2px 3px 0 rgba(255,107,157,0.18);
  line-height: 1.1;
}
.tagline {
  font-size: 1.05rem;
  color: var(--text-soft);
  font-weight: 600;
  max-width: 480px;
}

/* ── Live info ── */
.live-info {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,64,64,0.1);
  border: 1.5px solid rgba(255,64,64,0.25);
  border-radius: 999px;
  padding: 0.35em 1em;
  font-size: 0.88rem;
  font-weight: 700;
  color: #d62828;
}
.live-dot { color: #FF4040; animation: blink 1.2s ease infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75em 1.8em;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn-twitch {
  background: linear-gradient(135deg, #9146FF, #6441a5);
  color: #fff;
  box-shadow: 0 4px 18px rgba(145,70,255,0.35);
}
.btn-twitch:hover { box-shadow: 0 6px 24px rgba(145,70,255,0.5); }

/* ── Socials ── */
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4em 1em;
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  border: 2px solid var(--pink-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, border-color 0.15s;
}
.social-link:hover { transform: translateY(-2px); border-color: var(--pink); }

/* ── Sections ── */
main { position: relative; z-index: 1; }
.section {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}
.section-title {
  font-family: 'Pacifico', cursive;
  font-size: 1.5rem;
  color: var(--pink-deep);
  margin-bottom: 1.25rem;
  text-align: center;
}

/* ── Announcements ── */
.announcements { display: flex; flex-direction: column; gap: 0.85rem; }
.announcement-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  border: 2px solid var(--pink-soft);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.anno-emoji { font-size: 1.5rem; flex-shrink: 0; }
.announcement-card strong { font-size: 1rem; color: var(--text); }
.announcement-card p { margin-top: 0.25rem; color: var(--text-soft); font-size: 0.9rem; }

/* ── About ── */
.about-card {
  background: var(--white);
  border: 2px solid var(--pink-soft);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.about-card p {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.about-favorites {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.fav-chip {
  background: linear-gradient(135deg, var(--pink-pale), var(--lavender));
  border: 1.5px solid var(--pink);
  border-radius: 999px;
  padding: 0.3em 0.9em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

/* ── Schedule ── */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.85rem;
}
.schedule-card {
  background: var(--white);
  border: 2px solid var(--pink-soft);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s;
}
.schedule-card:hover { transform: translateY(-2px); }
.schedule-day {
  font-weight: 900;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pink-deep);
  margin-bottom: 0.35rem;
}
.schedule-time { font-size: 0.88rem; color: var(--text-soft); font-weight: 600; }

/* ── Panels ── */
.panels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.panel-card {
  background: var(--white);
  border: 2px solid var(--pink-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s;
}
.panel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--pink);
}
.panel-emoji { font-size: 2rem; margin-bottom: 0.6rem; }
.panel-title {
  font-family: 'Pacifico', cursive;
  font-size: 1rem;
  color: var(--pink-deep);
  margin-bottom: 0.5rem;
}
.panel-content { font-size: 0.88rem; color: var(--text-soft); line-height: 1.6; }

/* ── Rainbow stripe ── */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg,
    #FF9AA2, #FFB7B2, #FFDAC1, #E2F0CB, #B5EAD7, #C7CEEA, #E8D5F5, #FFB3C6);
  opacity: 0.7;
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  color: var(--text-soft);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.admin-link {
  color: var(--text-soft);
  text-decoration: none;
  opacity: 0.5;
  font-size: 0.78rem;
}
.admin-link:hover { opacity: 1; }

/* ── 404 ── */
.not-found {
  text-align: center;
  padding: 8rem 2rem;
}
.not-found h1 { font-family: 'Pacifico', cursive; font-size: 3rem; color: var(--pink-deep); margin-bottom: 1rem; }

/* ── Admin styles ── */
.admin-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.admin-wrap h1 {
  font-family: 'Pacifico', cursive;
  color: var(--pink-deep);
  margin-bottom: 1.75rem;
  font-size: 1.8rem;
}
.admin-card {
  background: var(--white);
  border: 2px solid var(--pink-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.admin-card h2 {
  font-size: 1.05rem;
  color: var(--pink-deep);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pink-soft);
}
label { display: block; font-weight: 700; margin-bottom: 0.3rem; font-size: 0.9rem; }
input[type="text"], input[type="password"], input[type="time"], textarea, select {
  width: 100%;
  padding: 0.65em 0.9em;
  border: 2px solid var(--pink-soft);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--pink-pale);
  margin-bottom: 0.85rem;
  transition: border-color 0.15s;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--pink-deep); }
textarea { resize: vertical; min-height: 90px; }
.btn-save {
  background: linear-gradient(135deg, var(--pink-deep), #FF8FAB);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 14px rgba(255,107,157,0.35);
}
.btn-save:hover { box-shadow: 0 6px 20px rgba(255,107,157,0.5); }
.btn-delete {
  background: transparent;
  border: 2px solid #ffb3b3;
  color: #c0392b;
  font-size: 0.8rem;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
}
.btn-delete:hover { background: #fff0f0; }
.flash { background: var(--mint); border: 2px solid #a8e6cf; border-radius: var(--radius-sm); padding: 0.75rem 1rem; margin-bottom: 1rem; font-weight: 700; color: #1a6b4a; }
.admin-row { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--pink-soft); gap: 1rem; }
.admin-row:last-child { border-bottom: none; }
.admin-login-wrap { max-width: 400px; margin: 6rem auto; padding: 0 1.5rem; }
.admin-login-wrap h1 { font-family: 'Pacifico', cursive; color: var(--pink-deep); text-align: center; margin-bottom: 1.5rem; }
.error-msg { background: #fff0f0; border: 2px solid #ffb3b3; border-radius: var(--radius-sm); padding: 0.75rem 1rem; color: #c0392b; font-weight: 700; margin-bottom: 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.admin-nav { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: center; }
.admin-nav a { color: var(--pink-deep); font-weight: 700; text-decoration: none; }
.admin-nav a:hover { text-decoration: underline; }
