@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Fredoka+One&display=swap');

:root {
  --primary:    #490dbf;
  --secondary:  #681673;
  --accent:     #c914ae;
  --primary-light: #6b2fe0;
  --accent-light:  #e040cc;
  --bg-deep:    #0e0516;
  --bg-dark:    #160a22;
  --bg-card:    #1e0f2e;
  --bg-card2:   #251240;
  --border:     rgba(201, 20, 174, 0.25);
  --border-glow:rgba(201, 20, 174, 0.5);
  --text:       #f0e6ff;
  --text-muted: #b89fd4;
  --text-dim:   #7a5f99;
  --live:       #c914ae;
  --live-glow:  rgba(201, 20, 174, 0.5);
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(73, 13, 191, 0.3);
  --shadow-card:0 8px 32px rgba(0, 0, 0, 0.5);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background Gradient ─────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(73,13,191,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(104,22,115,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 40%, rgba(201,20,174,0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* ── Stars ───────────────────────────────────────────────────── */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.stars span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: white;
  opacity: 0;
  animation: twinkle var(--dur, 3s) var(--delay, 0s) infinite;
}
@keyframes twinkle {
  0%,100% { opacity: 0; }
  50%      { opacity: var(--bright, 0.6); }
}

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 5, 22, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Fredoka One', sans-serif;
  font-size: 1.4rem;
  color: var(--text);
}
.navbar-brand .paw { font-size: 1.6rem; }
.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.navbar-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.navbar-links a:hover { color: var(--accent-light); }
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--live);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: pulse-badge 2s infinite;
  text-decoration: none !important;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: white;
  animation: pulse-dot 1.2s infinite;
}
@keyframes pulse-badge {
  0%,100% { box-shadow: 0 0 0 0 var(--live-glow); }
  50%      { box-shadow: 0 0 0 8px transparent; }
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* ── Layout ──────────────────────────────────────────────────── */
main { position: relative; z-index: 1; }
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 5rem 0; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
}
.hero-content { max-width: 720px; }
.hero-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  box-shadow: 0 0 40px rgba(201,20,174,0.5), 0 0 80px rgba(73,13,191,0.3);
  margin: 0 auto 1.5rem;
  display: block;
  object-fit: cover;
  animation: float 4s ease-in-out infinite;
}
.hero-svg {
  width: 160px;
  height: 160px;
  margin: 0 auto 1.5rem;
  display: block;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.hero h1 {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  background: linear-gradient(135deg, #c914ae, #6b2fe0, #c914ae);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
  margin-bottom: 1rem;
}
@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  border-radius: 99px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 20px rgba(73,13,191,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(73,13,191,0.6);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: white;
  box-shadow: 0 4px 20px rgba(201,20,174,0.4);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,20,174,0.6);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border-glow);
}
.btn-outline:hover {
  background: rgba(201,20,174,0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ── Section Heading ─────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-family: 'Fredoka One', sans-serif;
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.section-header p {
  color: var(--text-muted);
  font-weight: 600;
}
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 99px;
  margin: 0.75rem auto 0;
}

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

/* ── About ───────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.about-text p { margin-bottom: 1rem; }

/* ── Stream Embed / Preview ──────────────────────────────────── */
.stream-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(201,20,174,0.15);
}
.stream-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.stream-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.stream-thumb-offline {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-card2), var(--bg-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.stream-info {
  padding: 1.25rem 1.5rem;
}
.stream-info h3 {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.stream-meta { color: var(--text-muted); font-size: 0.9rem; }

/* ── Schedule ────────────────────────────────────────────────── */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}
.schedule-day {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.schedule-day:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}
.schedule-day.today {
  border-color: var(--accent);
  background: rgba(201,20,174,0.08);
  box-shadow: 0 0 20px rgba(201,20,174,0.15);
}
.day-name {
  font-family: 'Fredoka One', sans-serif;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.day-time {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent-light);
}
.schedule-note {
  text-align: center;
  color: var(--text-dim);
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ── Socials ─────────────────────────────────────────────────── */
.socials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.85rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.social-link:hover {
  border-color: var(--accent);
  background: rgba(201,20,174,0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201,20,174,0.2);
}
.social-icon { font-size: 1.3rem; }

/* ── Gallery ─────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}
.gallery-item:hover {
  transform: scale(1.03);
  border-color: var(--accent);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
footer a { color: var(--accent-light); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Flash messages ──────────────────────────────────────────── */
.flash {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: rgba(201,20,174,0.15);
  border: 1px solid var(--accent);
  color: var(--accent-light);
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
