/* =============================================
   Arctic Furs — style.css
   A hand-crafted look for a northern community
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Custom Properties ─────────────────────── */
:root {
  --bg-deep:     #07090f;
  --bg-mid:      #0d1220;
  --bg-surface:  #111827;
  --bg-raised:   #172033;

  --ice:         #b8f0ea;
  --ice-dim:     #7fd4cc;
  --frost:       #4abfb8;
  --frost-glow:  rgba(74, 191, 184, 0.18);
  --aurora-a:    #3b7dd8;
  --aurora-b:    #6b5be6;
  --aurora-c:    #1fb8a4;

  --text-bright: #e8f0f5;
  --text-body:   #9dafc0;
  --text-muted:  #546a7b;

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   32px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 28px rgba(74, 191, 184, 0.22);
  --transition:  0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', 'Segoe UI', Tahoma, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-body);
  overflow-x: hidden;
  position: relative;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Background Atmosphere ─────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(59, 125, 216, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 110%, rgba(107, 91, 230, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(31, 184, 164, 0.06) 0%, transparent 70%);
  animation: atmospherePulse 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

/* Subtle noise grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  pointer-events: none;
  z-index: 0;
}

@keyframes atmospherePulse {
  0%   { opacity: 0.7; transform: scale(1); }
  50%  { opacity: 1;   transform: scale(1.03) translateY(-15px); }
  100% { opacity: 0.8; transform: scale(1.01) translateY(5px); }
}

/* ── Navigation ────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 18px 48px;
  background: rgba(7, 9, 15, 0.55);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  z-index: 1000;
  border-bottom: 1px solid rgba(184, 240, 234, 0.07);
  transition: all var(--transition);
}

nav.hidden {
  opacity: 0;
  transform: translateY(-100%);
}

nav.scrolled {
  background: rgba(7, 9, 15, 0.82);
  border-bottom-color: rgba(184, 240, 234, 0.1);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
}

nav a {
  font-family: 'Syne', sans-serif;
  color: var(--text-body);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
  padding: 4px 0;
}

nav a::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--frost);
  transition: width var(--transition);
}

nav a:hover {
  color: var(--ice);
}

nav a:hover::before {
  width: 100%;
}

/* ── Layout & Sections ─────────────────────── */
section {
  min-height: 50vh;
  padding: 130px 50px 90px;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Hero ──────────────────────────────────── */
#home {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  animation: revealUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(40px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Typography ────────────────────────────── */
h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  color: var(--text-bright);
  /* Subtle gradient just on the text itself, not glowing everywhere */
  background: linear-gradient(145deg, #e8f0f5 0%, var(--ice-dim) 55%, var(--frost) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 6s ease-in-out infinite alternate;
}

@keyframes textShimmer {
  0%   { filter: brightness(1); }
  100% { filter: brightness(1.15) drop-shadow(0 0 30px rgba(74, 191, 184, 0.35)); }
}

h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: var(--text-bright);
}

h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ice-dim);
  letter-spacing: -0.01em;
}

p {
  line-height: 1.8;
  color: var(--text-body);
  font-size: 1.05rem;
}

.tagline {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 44px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ── Buttons ───────────────────────────────── */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: transparent;
  color: var(--ice);
  text-decoration: none;
  border-radius: var(--radius-xl);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1.5px solid rgba(184, 240, 234, 0.4);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74, 191, 184, 0.15), rgba(59, 125, 216, 0.1));
  opacity: 0;
  transition: opacity var(--transition);
}

.cta-button:hover {
  border-color: var(--frost);
  color: var(--ice);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(74, 191, 184, 0.2), inset 0 0 0 1px rgba(184, 240, 234, 0.1);
}

.cta-button:hover::before {
  opacity: 1;
}

.cta-button:active {
  transform: translateY(0);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--frost) 0%, var(--aurora-a) 100%);
  color: #fff;
  padding: 11px 24px;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition);
  box-shadow: 0 4px 18px rgba(74, 191, 184, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(74, 191, 184, 0.45);
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

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

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  padding: 8px 16px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-xl);
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
}

/* ── Cards ─────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin: 28px 0;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(184, 240, 234, 0.07);
  box-shadow: var(--shadow-card);
}

/* Accent line at top of card instead of all-sides glow */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 191, 184, 0.5), rgba(59, 125, 216, 0.4), transparent);
  transition: opacity var(--transition);
}

/* Subtle inner corner glow on hover only */
.card::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(74, 191, 184, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 16px 48px rgba(0, 0, 0, 0.4);
  border-color: rgba(184, 240, 234, 0.13);
}

.card:hover::after {
  opacity: 1;
}

/* ── Admin Section Cards ────────────────────── */
.admin-section {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 38px;
  margin: 28px 0;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(184, 240, 234, 0.07);
  box-shadow: var(--shadow-card);
  color: var(--text-bright);
}

.admin-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 191, 184, 0.45), transparent);
}

.admin-section:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), 0 12px 40px rgba(0, 0, 0, 0.35);
  border-color: rgba(184, 240, 234, 0.12);
}

.stats-bar {
  background: var(--bg-raised);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin: 24px 0;
  border: 1px solid rgba(184, 240, 234, 0.08);
  text-align: center;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  color: var(--frost);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* ── Dance/Feature Grid ─────────────────────── */
.dance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.dance-item {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-raised);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  border: 1px solid rgba(184, 240, 234, 0.06);
  position: relative;
  overflow: hidden;
  align-content: center;
}

/* Angled shimmer sweep */
.dance-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(100deg, transparent, rgba(184, 240, 234, 0.08), transparent);
  transform: skewX(-15deg);
  transition: left 0.7s ease;
}

.dance-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
  border-color: rgba(74, 191, 184, 0.2);
}

.dance-item:hover::before {
  left: 120%;
}

/* ── Snowflakes ─────────────────────────────── */
.snowflake {
  position: fixed;
  top: -10px;
  color: rgba(184, 240, 234, 0.2);
  user-select: none;
  cursor: default;
  animation: snowfall linear infinite;
  z-index: 1;
  font-size: 0.8em;
  filter: blur(0.3px);
}

@keyframes snowfall {
  0% {
    transform: translateY(-100px) translateX(0) rotate(0deg);
    opacity: 0;
  }
  8%  { opacity: 0.4; }
  88% { opacity: 0.2; }
  100% {
    transform: translateY(calc(100vh + 30px)) translateX(30px) rotate(400deg);
    opacity: 0;
  }
}

/* ── Gallery ────────────────────────────────── */
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 9px 22px;
  background: var(--bg-raised);
  border: 1px solid rgba(184, 240, 234, 0.12);
  color: var(--text-muted);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filter-btn:hover {
  background: rgba(74, 191, 184, 0.1);
  border-color: rgba(74, 191, 184, 0.3);
  color: var(--ice-dim);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: rgba(74, 191, 184, 0.15);
  border-color: var(--frost);
  color: var(--ice);
  box-shadow: 0 0 16px rgba(74, 191, 184, 0.15);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-raised);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid rgba(184, 240, 234, 0.06);
}

.gallery-item:hover {
  transform: scale(1.025);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(74, 191, 184, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(7, 9, 15, 0.92) 0%, rgba(7, 9, 15, 0.5) 60%, transparent 100%);
  padding: 20px 16px 16px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h4 {
  color: var(--ice);
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.gallery-overlay p {
  color: var(--text-body);
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 6px;
}

.gallery-boop-display {
  color: var(--frost);
  font-size: 0.78rem;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Lightbox ───────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: lightboxIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes lightboxIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.lightbox img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 0 80px rgba(74, 191, 184, 0.25), 0 24px 80px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(184, 240, 234, 0.06);
  border: 1px solid rgba(184, 240, 234, 0.1);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  color: var(--ice);
  border-color: rgba(74, 191, 184, 0.4);
  background: rgba(74, 191, 184, 0.12);
  transform: rotate(90deg);
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 12px 22px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(184, 240, 234, 0.1);
}

/* ── Boop Button ────────────────────────────── */
.boop-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(74, 191, 184, 0.12);
  color: var(--ice);
  border: 1px solid rgba(74, 191, 184, 0.3);
  border-radius: var(--radius-xl);
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.boop-btn:hover {
  background: rgba(74, 191, 184, 0.2);
  border-color: var(--frost);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(74, 191, 184, 0.2);
}

.boop-btn:active {
  transform: scale(0.96);
}

.boop-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.boop-icon {
  font-size: 1.1rem;
  display: inline-block;
  animation: floatIcon 3s ease-in-out infinite;
}

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

.boop-counter {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

#boop-count {
  color: var(--frost);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  min-width: 28px;
  text-align: center;
  transition: all 0.25s ease;
}

.boop-btn.booped .boop-icon {
  animation: boopBounce 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes boopBounce {
  0%   { transform: scale(1)    rotate(0deg); }
  25%  { transform: scale(1.4)  rotate(-18deg); }
  50%  { transform: scale(1.15) rotate(12deg); }
  75%  { transform: scale(1.25) rotate(-6deg); }
  100% { transform: scale(1)    rotate(0deg); }
}

@keyframes countPulse {
  0%   { transform: scale(1);   color: var(--frost); }
  50%  { transform: scale(1.5); color: var(--ice); }
  100% { transform: scale(1);   color: var(--frost); }
}

.boop-btn.booped #boop-count {
  animation: countPulse 0.4s ease-out;
}

/* ── Cookie Banner ──────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(13, 18, 32, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-body);
  padding: 20px 32px;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  border-top: 1px solid rgba(184, 240, 234, 0.08);
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Footer ─────────────────────────────────── */
footer {
  text-align: center;
  padding: 44px;
  background: rgba(7, 9, 15, 0.9);
  color: var(--text-muted);
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(184, 240, 234, 0.06);
  font-size: 0.9rem;
}

/* ── Form Elements ──────────────────────────── */
.form-table {
  width: 100%;
  max-width: 700px;
  border-spacing: 0;
  margin-bottom: 20px;
}

.form-table td {
  padding: 10px 12px;
  vertical-align: top;
}

.form-table td:first-child {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 160px;
  padding-top: 15px;
}

.form-table input,
.form-table textarea,
.form-table select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(184, 240, 234, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(7, 9, 15, 0.6);
  color: var(--text-bright);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.form-table input:focus,
.form-table textarea:focus,
.form-table select:focus {
  outline: none;
  border-color: rgba(74, 191, 184, 0.4);
  box-shadow: 0 0 0 3px rgba(74, 191, 184, 0.08);
  background: rgba(7, 9, 15, 0.85);
}

label {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

input[type="file"] {
  background: rgba(7, 9, 15, 0.6) !important;
  border: 1.5px dashed rgba(74, 191, 184, 0.2) !important;
  border-radius: var(--radius-sm) !important;
  padding: 20px !important;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
}

input[type="file"]:hover {
  border-color: rgba(74, 191, 184, 0.4) !important;
  background: rgba(74, 191, 184, 0.05) !important;
}

button, input {
  accent-color: var(--frost);
}

/* ── Tables ─────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(184, 240, 234, 0.06);
}

thead {
  background: var(--bg-raised);
  border-bottom: 1px solid rgba(184, 240, 234, 0.1);
}

thead th {
  padding: 14px 16px;
  color: var(--text-muted);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}

tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(184, 240, 234, 0.04);
  color: var(--text-body);
  font-size: 0.95rem;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(74, 191, 184, 0.04);
}

table img {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(184, 240, 234, 0.1);
  transition: all var(--transition);
}

table img:hover {
  border-color: rgba(74, 191, 184, 0.3);
  box-shadow: 0 4px 16px rgba(74, 191, 184, 0.15);
}

/* ── Code ───────────────────────────────────── */
code {
  background: rgba(7, 9, 15, 0.7);
  padding: 3px 7px;
  border-radius: 4px;
  color: var(--frost);
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.88em;
  border: 1px solid rgba(74, 191, 184, 0.1);
}

pre {
  background: rgba(7, 9, 15, 0.8);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(74, 191, 184, 0.1);
  overflow-x: auto;
  color: var(--text-body);
  margin: 20px 0;
  font-size: 0.9em;
}

/* ── Status Indicators ──────────────────────── */
.status-past     { color: var(--text-muted); }
.status-today    { color: #fb923c; font-weight: 600; }
.status-upcoming { color: var(--frost);      font-weight: 600; }

/* ── Messages ───────────────────────────────── */
.message {
  padding: 14px 20px;
  margin: 18px 0;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
}

.message.success {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.message.error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* ── Details / Summary ──────────────────────── */
details {
  background: var(--bg-raised);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 18px 0;
  border: 1px solid rgba(184, 240, 234, 0.07);
}

summary {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ice-dim);
  cursor: pointer;
  margin-bottom: 10px;
  transition: color var(--transition);
}

summary:hover {
  color: var(--ice);
}

/* ── Links ──────────────────────────────────── */
a {
  color: var(--frost);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--ice-dim);
}

/* ── Misc Text ──────────────────────────────── */
small {
  color: var(--text-muted);
  font-size: 0.82rem;
}

em {
  color: #f87171;
  font-style: italic;
}

strong {
  color: var(--ice-dim);
  font-weight: 700;
}

/* ── Loading Overlay ────────────────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.loading-container {
  background: var(--bg-surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  min-width: 340px;
  max-width: 480px;
  border: 1px solid rgba(184, 240, 234, 0.1);
}

.loading-bar {
  width: 100%;
  height: 6px;
  background: rgba(7, 9, 15, 0.8);
  border-radius: 3px;
  overflow: hidden;
  margin: 20px 0;
  position: relative;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--aurora-c), var(--aurora-a), var(--aurora-b), var(--aurora-c));
  background-size: 300% 100%;
  animation: progressShimmer 2s linear infinite;
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 3px;
}

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

.loading-text {
  margin: 12px 0 4px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--text-bright);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.loading-percentage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(74, 191, 184, 0.15);
  border-top-color: var(--frost);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-loading {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity var(--transition);
}

.btn-loading {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.file-status {
  margin-top: 8px;
  padding: 5px 10px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-sm);
  color: #4ade80;
  font-size: 0.82rem;
}

.status-success { color: #4ade80; font-family: 'Syne', sans-serif; font-weight: 700; }
.status-error   { color: #f87171; font-family: 'Syne', sans-serif; font-weight: 700; }
.status-warning { color: #fb923c; font-family: 'Syne', sans-serif; font-weight: 700; }

/* ── Blog Styles (scoped) ───────────────────── */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.blog-header {
  text-align: center;
  margin-bottom: 44px;
  padding: 48px 28px;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(184, 240, 234, 0.07);
  animation: revealUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-shadow: var(--shadow-card);
}

/* Wide top accent bar */
.blog-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--aurora-c) 30%, var(--aurora-a) 55%, var(--aurora-b) 75%, transparent 95%);
}

.blog-header h1 {
  font-family: 'Nabla', 'Syne', monospace;
  font-size: clamp(2rem, 5vw, 3.2rem);
  background: linear-gradient(135deg, var(--ice) 0%, var(--ice-dim) 50%, var(--frost) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 6s ease-in-out infinite alternate;
  margin-bottom: 12px;
}

.blog-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.blog-post {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid rgba(184, 240, 234, 0.07);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.blog-post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 191, 184, 0.35), transparent);
}

/* Shimmer sweep on hover */
.blog-post::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 35%;
  height: 200%;
  background: linear-gradient(110deg, transparent, rgba(184, 240, 234, 0.05), transparent);
  transform: skewX(-15deg);
  transition: left 0.8s ease;
}

.blog-post:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 191, 184, 0.15);
  box-shadow: var(--shadow-card), 0 16px 48px rgba(0, 0, 0, 0.4);
}

.blog-post:hover::after {
  left: 130%;
}

.blog-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.category-badge {
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.category-news        { background: rgba(239, 68, 68, 0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.category-events      { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.25); }
.category-community   { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.category-announcement{ background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
.category-gallery     { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236,72,153,0.25); }

.blog-date {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.blog-title {
  font-family: 'Syne', sans-serif;
  color: var(--text-bright);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.blog-post:hover .blog-title {
  color: var(--ice);
}

.blog-author {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.blog-excerpt {
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.blog-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tag {
  padding: 3px 8px;
  background: rgba(74, 191, 184, 0.08);
  border: 1px solid rgba(74, 191, 184, 0.15);
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-family: 'Syne', sans-serif;
  color: var(--text-muted);
  transition: all var(--transition);
}

.tag:hover {
  background: rgba(74, 191, 184, 0.14);
  color: var(--ice-dim);
  border-color: rgba(74, 191, 184, 0.3);
}

.read-more {
  font-family: 'Syne', sans-serif;
  color: var(--frost);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition);
  position: relative;
  padding-right: 18px;
}

.read-more::after {
  content: '→';
  position: absolute;
  right: 0;
  transition: transform var(--transition);
}

.read-more:hover {
  color: var(--ice-dim);
}

.read-more:hover::after {
  transform: translateX(4px);
}

.loading {
  text-align: center;
  padding: 44px;
  color: var(--text-muted);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(184, 240, 234, 0.07);
}

.no-posts {
  text-align: center;
  padding: 64px 24px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(184, 240, 234, 0.07);
}

.no-posts h3 {
  color: var(--ice-dim);
  margin-bottom: 12px;
}

/* ── Pagination ─────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-btn {
  padding: 9px 14px;
  background: var(--bg-raised);
  border: 1px solid rgba(184, 240, 234, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
}

.page-btn:hover {
  background: rgba(74, 191, 184, 0.1);
  color: var(--ice-dim);
  border-color: rgba(74, 191, 184, 0.25);
  transform: translateY(-1px);
}

.page-btn.active {
  background: rgba(74, 191, 184, 0.15);
  color: var(--ice);
  border-color: var(--frost);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Blog Modal ─────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(4, 6, 12, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.modal-content {
  background: var(--bg-surface);
  margin: 2% auto;
  padding: 0;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(184, 240, 234, 0.1);
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 48px rgba(74, 191, 184, 0.1);
  animation: lightboxIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.modal-header {
  padding: 24px 30px;
  border-bottom: 1px solid rgba(184, 240, 234, 0.07);
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-body {
  padding: 28px 30px;
  line-height: 1.8;
  color: var(--text-body);
}

.modal-body h1,
.modal-body h2,
.modal-body h3 {
  color: var(--ice-dim);
  margin-top: 28px;
  margin-bottom: 12px;
}

.modal-body p {
  margin-bottom: 14px;
  text-align: left;
}

.close {
  color: var(--text-muted);
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(184, 240, 234, 0.06);
  border: 1px solid rgba(184, 240, 234, 0.1);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.close:hover {
  color: var(--ice);
  background: rgba(74, 191, 184, 0.12);
  border-color: rgba(74, 191, 184, 0.3);
  transform: rotate(90deg);
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  body { padding: 10px; }

  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  h2 { font-size: clamp(1.4rem, 5vw, 2rem); }

  nav { padding: 14px 18px; }
  nav ul { gap: 18px; }
  nav a { font-size: 12px; }

  section { padding: 110px 18px 60px; }

  .admin-section { padding: 22px; }

  .form-table td { display: block; width: 100%; padding: 6px 0; }
  .form-table td:first-child { width: 100%; margin-bottom: 4px; padding-top: 6px; }

  table, thead, tbody, th, td, tr { display: block; }
  thead tr { position: absolute; top: -9999px; left: -9999px; }
  tr { border: 1px solid rgba(184, 240, 234, 0.08); margin-bottom: 10px; border-radius: var(--radius-sm); padding: 10px; }
  td { border: none; position: relative; padding-left: 32%; }
  td::before {
    content: attr(data-label) ": ";
    position: absolute;
    left: 6px;
    width: 27%;
    padding-right: 8px;
    white-space: nowrap;
    color: var(--frost);
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  #cookie-banner {
    flex-direction: column !important;
    gap: 14px;
    text-align: center;
    padding: 18px 14px !important;
  }
  #cookie-banner span { max-width: 100% !important; margin-bottom: 8px; }
  #cookie-banner > div { justify-content: center; }

  .blog-header h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .blog-grid { grid-template-columns: 1fr; }
  .modal-content { width: 95%; margin: 5% auto; }
  .modal-body { padding: 18px; }
  .blog-filters { gap: 8px; }
  .filter-btn { padding: 7px 14px; font-size: 0.8rem; }

  .dance-grid { grid-template-columns: 1fr; }
  .lightbox-controls { flex-wrap: wrap; justify-content: center; }
}

