/* --------------------------------
   THEME VARIABLES — light / dark / system
   Applied via [data-theme] on <html>. JS sets this before CSS loads (no flash).
   -------------------------------- */

/* ── Light mode (default) ────────────────────────────────────────────────── */
:root,
[data-theme="light"] {
  --bg-body:          #eaf5ec;
  --bg-mesh:
    radial-gradient(ellipse at 20% 40%, rgba(46,125,50,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 10%, rgba(126,217,87,0.14) 0%, transparent 50%),
    linear-gradient(-45deg, #c8e6c9, #f1f8e9);

  /* glass surfaces */
  --glass-bg:         rgba(255, 255, 255, 0.28);
  --glass-border:     rgba(255, 255, 255, 0.50);
  --glass-shadow:     rgba(14, 69, 44, 0.18);
  --glass-highlight:  rgba(255, 255, 255, 0.65);
  --blur:             16px;

  /* text */
  --text-primary:     #0d2b14;
  --text-secondary:   #2e5e38;
  --text-muted:       #6a8f70;
  --text-on-dark:     #ffffff;

  /* brand */
  --accent:           #2e7d32;
  --accent-hover:     #1b5e20;
  --accent-soft:      rgba(46, 125, 50, 0.12);
  --accent-glow:      rgba(46, 125, 50, 0.30);

  /* surfaces */
  --surface:          rgba(255, 255, 255, 0.80);
  --surface-hover:    rgba(255, 255, 255, 0.95);

  /* navbar */
  --nav-bg:           rgba(40, 72, 40, 0.72);
  --nav-border:       rgba(126, 217, 87, 0.20);

  /* footer */
  --footer-bg:        rgba(20, 45, 28, 0.88);

  /* misc */
  --card-shadow:      0 2px 10px rgba(14, 69, 44, 0.18);
  --card-shadow-hover:0 8px 28px rgba(14, 69, 44, 0.22);
  --input-bg:         rgba(255,255,255,0.55);
  --input-border:     rgba(46,125,50,0.30);
  --noise-opacity:    0.03;
}

/* ── Dark mode ───────────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg-body:          #0a1a0d;
  --bg-mesh:
    radial-gradient(ellipse at 20% 40%, rgba(46,125,50,0.30) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 10%, rgba(20,207,32,0.12) 0%, transparent 50%),
    linear-gradient(-45deg, #0a1a0d, #091509, #0d1f10);

  --glass-bg:         rgba(255, 255, 255, 0.06);
  --glass-border:     rgba(255, 255, 255, 0.11);
  --glass-shadow:     rgba(0, 0, 0, 0.45);
  --glass-highlight:  rgba(255, 255, 255, 0.07);
  --blur:             20px;

  --text-primary:     #e8f5ea;
  --text-secondary:   #a5d6a7;
  --text-muted:       #558b5e;
  --text-on-dark:     #e8f5ea;

  --accent:           #66bb6a;
  --accent-hover:     #81c784;
  --accent-soft:      rgba(102, 187, 106, 0.14);
  --accent-glow:      rgba(102, 187, 106, 0.32);

  --surface:          rgba(255, 255, 255, 0.06);
  --surface-hover:    rgba(255, 255, 255, 0.10);

  --nav-bg:           rgba(8, 22, 10, 0.80);
  --nav-border:       rgba(102, 187, 106, 0.18);

  --footer-bg:        rgba(4, 12, 6, 0.92);

  --card-shadow:      0 2px 12px rgba(0, 0, 0, 0.40);
  --card-shadow-hover:0 8px 32px rgba(0, 0, 0, 0.55);
  --input-bg:         rgba(255,255,255,0.07);
  --input-border:     rgba(102,187,106,0.25);
  --noise-opacity:    0.055;
}


/* --------------------------------
   RESET & BASE
   -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
  position: relative;
  overflow-x: hidden;
}

/* Mesh background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--bg-mesh);
  z-index: -2;
  transition: background 0.3s ease;
}

/* Noise texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: var(--noise-opacity);
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

html { scroll-behavior: smooth; }


/* --------------------------------
   GLASS UTILITIES
   -------------------------------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(1.8);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.8);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--glass-shadow),
              inset 0 1px 0 var(--glass-highlight);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* Top shine edge on glass cards */
.glass-card-shine::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
  border-radius: 1px;
}


/* --------------------------------
   SCROLL ANIMATIONS
   -------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-group > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-group.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-group.visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-group.visible > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-group.visible > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.reveal-group.visible > *:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.reveal-group.visible > *:nth-child(6) { transition-delay: 0.55s; opacity: 1; transform: translateY(0); }


/* --------------------------------
   NAVBAR — glass layer
   -------------------------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 2px 24px rgba(0,0,0,0.20);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 70px; height: 80px; object-fit: contain; }
.logo h2 { color: white; font-size: 20px; margin: 0; }

/* Groups theme-toggle + hamburger on the right end of the navbar */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.menu{
  transform: translateX(50%);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.menu a {
  text-decoration: none;
  color: rgba(255,255,255,0.88);
  font-weight: bold;
  transition: color 0.3s;
}
.menu a:hover  { color: #a5d6a7; }
.menu a.active { border-bottom: 2px solid #7ED957; color: #7ED957; }

/* ── Theme Toggle — shows only active icon, expands on click ─────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  margin-left: 14px;
  overflow: hidden;
  max-width: 36px;
  transition: max-width 0.3s cubic-bezier(0.34,1.56,0.64,1), gap 0.25s ease;
}

.theme-toggle.open {
  max-width: 80px;
  gap: 3px;
}

.theme-toggle button {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 7px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.60);
  transition: background 0.2s, color 0.2s, opacity 0.2s, min-width 0.2s;
  padding: 0;
}

/* when collapsed, hide inactive buttons */
.theme-toggle:not(.open) button:not(.active) {
  opacity: 0;
  pointer-events: none;
  min-width: 0;
  width: 0;
  padding: 0;
}

.theme-toggle button.active {
  background: rgba(126,217,87,0.22);
  color: #7ED957;
  box-shadow: 0 0 0 1px rgba(126,217,87,0.35);
}

.theme-toggle.open button:not(.active):hover {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.90);
}


/* --------------------------------
   FLASH ALERTS
   -------------------------------- */
.alert {
  padding: 10px 16px;
  margin-bottom: 12px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
}
.alert.success { background: rgba(185, 224, 194, 0.75); color: #155724; border: 1px solid rgba(21,87,36,0.25); }
.alert.error   { background: rgba(248, 215, 218, 0.75); color: #721c24; border: 1px solid rgba(114,28,36,0.25); }

.error {
  text-align: center;
  margin-top: 100px;
  font-size: larger;
  color: var(--text-primary);
}


/* --------------------------------
   HERO
   -------------------------------- */
.hero {
  min-height: 90vh;
  background: linear-gradient(-45deg, rgb(16, 90, 24), rgb(28, 28, 28));
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 40px 20px;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

/* Subtle glass shimmer layer over hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.04) 0%,
    transparent 50%,
    rgba(0,0,0,0.12) 100%
  );
  pointer-events: none;
}

.hero-content { animation: heroFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) both; position: relative; z-index: 1; }

.countdown-label {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin: 0;
  transform: translateY(-70px);
  position: relative;
  z-index: 1;
}
.countdown-label a { color: #a5d6a7; }

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
  font-family: 'Sora', sans-serif;
  font-size: 3rem;
  margin-bottom: 15px;
  letter-spacing: -0.02em;
}
.hero-content h2 { font-size: 2rem; letter-spacing: -0.02em; margin: 0 auto 25px; }
.hero-content p  { font-size: 1.2rem; max-width: 700px; margin: 0 auto 25px; opacity: 0.9; font-style: italic; transform: translateY(15px); }


/* --------------------------------
   BUTTONS
   -------------------------------- */
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  margin-top: 20px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  backdrop-filter: blur(8px);
}
.btn:hover { transform: translateY(-2px); }

.primary {
  background: rgba(46,125,50,0.85);
  color: white;
  border: 1px solid rgba(126,217,87,0.35);
  box-shadow: 0 4px 16px rgba(46,125,50,0.35);
}
.primary:hover { background: rgba(27,94,32,0.92); box-shadow: 0 6px 24px rgba(46,125,50,0.45); }

.secondary {
  background: rgba(255,255,255,0.22);
  color: white;
  border: 1px solid rgba(255,255,255,0.40);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.secondary:hover { background: rgba(255,255,255,0.32); }

.btn-primary {
  display: inline-block;
  padding: 12px 20px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }

button {
  padding: 10px;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
}
button:hover { background: var(--accent-hover); transform: translateY(-1px); }


/* --------------------------------
   SECTIONS
   -------------------------------- */
.section { padding: 60px 20px; text-align: center; }
.section h2 { color: var(--accent); margin-bottom: 15px; }
.section p  { max-width: 800px; margin: auto; line-height: 1.6; margin-bottom: 10px; color: var(--text-primary); }

.highlight {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding-bottom: 80px;
}

[data-theme="dark"] .highlight {
  background: rgba(255,255,255,0.04);
}

.main-content { padding: 20px; }


/* --------------------------------
   CONTAINER
   -------------------------------- */
.container {
  max-width: 800px;
  margin: 40px auto;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow), inset 0 1px 0 var(--glass-highlight);
  padding: 20px;
  border-radius: 14px;
  color: var(--text-primary);
}

.container h2 { color: var(--accent); }
.container p  { color: var(--text-secondary); }


/* --------------------------------
   ANNOUNCEMENT CARDS — glass
   -------------------------------- */
.announcements { padding: 30px 20px; text-align: center; }

.announcement-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow), inset 0 1px 0 var(--glass-highlight);
  margin: 15px auto;
  padding: 18px 20px;
  max-width: 600px;
  border-radius: 14px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: var(--text-primary);
}

.announcement-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover), inset 0 1px 0 var(--glass-highlight);
}

.announcement-card h3 { margin-bottom: 8px; color: var(--text-primary); }
.announcement-card small { color: var(--text-muted); font-size: 12px; }
.announcement-card p { color: var(--text-secondary); }

.announcement-admin-card {
  background: var(--surface);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  padding: 15px;
  margin: 15px 0;
  border-radius: 8px;
  color: var(--text-primary);
}
.announcement-admin-card textarea { width: 100%; height: 80px; }
.announcement-admin-card input { width: 100%; margin-bottom: 10px; }

.read-more { display: inline-block; margin-top: 8px; color: var(--accent); text-decoration: none; font-weight: bold; }
.read-more:hover { text-decoration: underline; }


/* --------------------------------
   FORM ELEMENTS
   -------------------------------- */
input, textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  box-sizing: border-box;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  color: var(--text-primary);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}


/* --------------------------------
   DP EDITOR
   -------------------------------- */
.dp-editor { text-align: center; padding: 20px; }
.canvas-wrapper { margin: 20px auto; width: 300px; height: 300px; border: 2px solid var(--glass-border); overflow: hidden; border-radius: 10px; }
canvas { width: 100%; height: 100%; background: #000; cursor: grab; }
canvas:active { cursor: grabbing; }
#result img { border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
#result button { margin-top: 10px; }
.dp-buttons { display: flex; justify-content: center; gap: 10px; margin-top: 15px; flex-wrap: wrap; }

.attend { font-size: 1.5em; animation: float 3s ease-in-out infinite; }
@keyframes float {
  0%   { transform: translateY(0);    text-shadow: 0 5px 15px rgba(0,0,0,0.79); }
  50%  { transform: translateY(-15px);text-shadow: 0 20px 20px rgba(0,0,0,0.79); }
  100% { transform: translateY(0);    text-shadow: 0 5px 15px rgba(0,0,0,0.79); }
}


/* ------------- COUNTDOWN — glass boxes ------------------------- */
.countdown {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 40px 0 20px;
  flex-wrap: wrap;
  animation: heroFadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
  position: relative;
  z-index: 1;
}

.time-box {
  background: rgba(5, 100, 5, 0.386);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 4px 20px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,255,255,0.30);
  color: white;
  padding: 16px 20px;
  border-radius: 14px;
  min-width: 75px;
  text-align: center;
  flex: 1 1 70px;
  max-width: 100px;
  transition: transform 0.2s;
}
.time-box:hover { transform: translateY(-2px); }
.time-box span  { display: block; font-size: 26px; font-weight: bold; transition: transform 0.3s ease, opacity 0.3s ease; }
.time-box small { font-size: 12px; color: rgba(255,255,255,0.75); }


/* -------------------------------- CONTACT SECTION -------------------------------- */
.contact-section {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  max-width: 640px;
  margin: 40px auto;
  padding: 30px 28px;
  box-shadow: var(--card-shadow), inset 0 1px 0 var(--glass-highlight);
  text-align: center;
  color: var(--text-primary);
}
.contact-section h2 { color: var(--accent); }
.contact-cta { text-align: center; margin-top: 30px; }


/* -------------------------------- DONATE -------------------------------- */
.donate-hero { text-align: center; padding: 40px 20px; color: var(--text-primary); }
.bank-details { max-width: 700px; margin: auto; padding: 20px; text-align: left; }

.account-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow), inset 0 1px 0 var(--glass-highlight);
  padding: 20px;
  border-radius: 14px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: var(--text-primary);
}
.account-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.account-card table { width: 100%; margin: 15px 0; }
.account-card td { padding: 8px; color: var(--text-secondary); }
.account-card button { margin-top: 10px; }


/* -------------------------------- WHY GIVE -------------------------------- */
.why-give { text-align: center; padding: 40px 20px; }
.give-cards { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

.give-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow), inset 0 1px 0 var(--glass-highlight);
  padding: 18px;
  width: 220px;
  border-radius: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: var(--text-primary);
}
.give-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }


/* -------------------------------- ABOUT -------------------------------- */
.about-hero { text-align: center; padding: 50px 20px; color: var(--text-primary); }
.about-hero h1 { color: var(--text-primary); }
.about-hero p  { color: var(--text-secondary); }

.about-section {
  padding: 30px 20px;
  max-width: 800px;
  margin: 24px auto;
  text-align: center;
  font-family: comic;
  color: var(--text-primary);
}

.about-section h2 { color: var(--accent); }
.about-section p  { color: var(--text-secondary); line-height: 1.7; }

.mission-section {
  padding: 30px 20px;
  max-width: 800px;
  margin: 24px auto;
  text-align: center;
  color: var(--text-primary);
}

.mission-section h2 { color: var(--accent); }
.mission-section p  { color: var(--text-secondary); line-height: 1.7; }

.leaders-section { padding: 40px 20px; text-align: center; }
.leaders { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

.leader-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow), inset 0 1px 0 var(--glass-highlight);
  padding: 20px;
  width: 220px;
  border-radius: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: var(--text-primary);
}

.leader-card h3 { color: var(--accent); margin-bottom: 6px; }
.leader-card p  { color: var(--text-secondary); margin: 4px 0; }
.leader-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.leader-contact { margin-top: 10px; color: var(--text-muted); }


/* -------------------------------- FOOTER — glass -------------------------------- */
.footer {
  background: var(--footer-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-top: 1px solid rgba(126,217,87,0.15);
  color: white;
  text-align: center;
  padding: 40px 20px 24px;
  margin-top: 50px;
}
.footer h3 { margin-bottom: 10px; }

.footer-socials { display: flex; justify-content: center; gap: 16px; margin-bottom: 24px; }
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  font-size: 18px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.footer-socials a:hover { background: rgba(255,255,255,0.22); transform: translateY(-3px); }

.footer-verse { font-style: italic; font-size: 14px; color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 20px; border: none; padding: 0; line-height: 1.6; }
.footer-verse cite { display: block; margin-top: 6px; font-size: 12px; color: rgba(255,255,255,0.5); font-style: normal; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.45); margin: 0; border-top: 1px solid rgba(255,255,255,0.10); padding-top: 16px; }


/* -------------------------------- ADMIN DASHBOARD -------------------------------- */
.admin-container { max-width: 1000px; margin: auto; padding: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin: 20px 0; }

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  color: var(--text-primary);
}
.stat-card h3 { margin-bottom: 10px; color: var(--text-muted); }
.stat-card p  { font-size: 24px; font-weight: bold; color: var(--accent); }

.admin-section { margin-top: 30px; }
.activity-item {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  padding: 10px;
  margin: 8px 0;
  border-radius: 6px;
  box-shadow: 0 1px 5px rgba(14,69,44,0.15);
  color: var(--text-primary);
}

.admin-btn { display: inline-block; margin: 10px 10px 0 0; padding: 10px 15px; background: var(--accent); color: white; text-decoration: none; border-radius: 6px; transition: background 0.2s; }
.admin-btn:hover { background: var(--accent-hover); }
.admin-btn.logout { background: #a00; }

.admin-tabs { margin: 20px 0; text-align: center; }
.tab-btn { padding: 10px 15px; margin: 5px; border: none; cursor: pointer; background: var(--surface); color: var(--text-secondary); border-radius: 5px; border: 1px solid var(--glass-border); }
.tab-btn.active { background: var(--accent); color: white; border-color: transparent; }
.tab-content { display: none; margin-top: 20px; }
.tab-content.active { display: block; }


/* -------------------------------- MEDIA GRID -------------------------------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.media-item { width: 100%; height: 120px; overflow: hidden; border-radius: 10px; cursor: pointer; border: 1px solid var(--glass-border); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.media-item:hover { transform: scale(1.04); box-shadow: 0 4px 20px rgba(0,0,0,0.25); }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; }

.see-more { text-align: center; margin-top: 15px; }
.see-more a { text-decoration: none; color: var(--accent); font-weight: bold; }

.media-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  color: var(--text-primary);
}
.media-card img, .media-card video { width: 100%; border-radius: 6px; }
.delete-btn { margin-top: 8px; background: #a00; color: white; }


/* -------------------------------- ANALYTICS CARDS -------------------------------- */
.analytics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 20px 0; }

.analytics-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s ease;
  color: var(--text-primary);
}
.analytics-card span  { font-size: 12px; color: var(--text-muted); display: block; }
.analytics-card h2    { font-size: 28px; margin: 10px 0; color: var(--accent); }
.analytics-card small { color: var(--text-muted); }
.analytics-card:hover { transform: translateY(-3px); }


/* -------------------------------- LIGHTBOX -------------------------------- */
.lightbox {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-content { max-width: 90%; max-height: 90%; text-align: center; animation: scaleIn 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes scaleIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.lightbox img, .lightbox video { max-width: 100%; max-height: 80vh; border-radius: 8px; }

.share-btn { margin-top: 10px; padding: 10px; background: var(--accent); color: white; border: none; border-radius: 6px; cursor: pointer; }


/* -------------------------------- PAGINATION / MISC -------------------------------- */
.pagination { text-align: center; margin-top: 20px; }
.pagination a { margin: 0 10px; text-decoration: none; color: var(--accent); font-weight: bold; transition: color 0.2s; }
.pagination a:hover { color: var(--accent-hover); }
.pagination span { margin: 0 10px; color: var(--text-muted); }

.lazy-img { filter: blur(8px); transition: filter 0.4s ease; }
.lazy-img.loaded { filter: blur(0); }

.message-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  padding: 15px;
  margin: 10px 0;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  color: var(--text-primary);
}

.badge { background: red; color: white; padding: 3px 6px; font-size: 12px; border-radius: 4px; }

/* ── Anniversary page inner text ─────────────────────────────────────────── */
.container h2,
.container h3 { color: var(--accent); }

.container p,
.container label { color: var(--text-secondary); }

.container hr {
  border: none;
  border-top: 1px solid var(--glass-border);
  margin: 24px 0;
}

.attend h3 { color: var(--text-primary); }

.dp-editor h2  { color: var(--accent); }
.dp-editor label { color: var(--text-secondary); font-size: 0.9rem; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }


/* -------------------------------- HAMBURGER -------------------------------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 9px;
  margin-left: 10px;
}
.hamburger span { display: block; width: 22px; height: 2.5px; background: white; border-radius: 3px; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }


/* -------------------------------- RESPONSIVE -------------------------------- */
@media (max-width: 768px) {
  /* navbar: logo left | [toggle + hamburger] right */
  .navbar {
    flex-wrap: wrap;
    padding: 15px 20px;
    position: sticky;
    top: 0;
  }

  /* push menu links off screen; they drop below as a block when open */
  .menu { order: 3; }

  /* right-side controls cluster */
  .navbar > .theme-toggle,
  .navbar > .hamburger {
    order: 2;
  }

  .hamburger { display: flex; }

  .menu {
    display: none;
    width: 100%;
    flex-direction: column;
    background: rgba(20, 50, 20, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid var(--nav-border);
  }
  .menu.open { display: flex; }
  .menu a {
    display: block; margin: 0; padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: left;
  }
  .menu a:last-child { border-bottom: none; }

  .hero { background-attachment: scroll; min-height: 100svh; }
  .hero-content h1 { font-size: 2rem; }
  .container { margin: 20px 10px; padding: 15px; }
  .give-card, .leader-card { width: 100%; max-width: 300px; }
  .account-card table { font-size: 14px; }
  .theme-toggle { margin-left: 0; }
  h1 { font-size: 24px; } h2 { font-size: 20px; }
}

@media (max-width: 600px) { .analytics-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 480px) {
  .countdown { gap: 10px; }
  .time-box { flex: 1 1 45%; max-width: 45%; padding: 12px; }
  .time-box span { font-size: 18px; }
  .pagination a { display: inline-block; margin: 5px; }
  .media-item { height: 100px; }
}

@media (max-width: 400px) { .analytics-grid { grid-template-columns: 1fr; } }