/* ============================================
   Solace — Shared Stylesheet
   Palette: Sky Blue #2D7DD2 · Meadow Green #3CAF6F · Snow White · Terracotta #C0392B
   Fonts: Plus Jakarta Sans headings · Inter body
   ============================================ */

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

:root {
  /* Sky/water blue — primary */
  --primary:       #2D7DD2;
  --primary-light: #5BA3E0;
  --primary-pale:  #EAF4FF;

  /* Meadow/forest green — secondary */
  --green:         #3CAF6F;
  --green-dark:    #1B6B4A;
  --green-pale:    #E8F8F0;

  /* Terracotta/red roofs — accent */
  --accent:        #C0392B;
  --accent-light:  #E8775D;
  --accent-pale:   #FEF0EE;

  /* Warm amber highlight */
  --highlight:     #E07B39;
  --highlight-pale:#FEF3E8;

  /* Backgrounds */
  --bg:            #F4F8FF;
  --bg-alt:        #EEF4FB;
  --card-bg:       #FFFFFF;

  /* Text */
  --text:          #1C2B3A;
  --text-light:    #5A7A96;
  --white:         #FFFFFF;

  /* Borders & shadows */
  --border:        #D0E4F7;
  --shadow:        0 4px 24px rgba(45, 125, 210, 0.07);
  --shadow-hover:  0 12px 40px rgba(45, 125, 210, 0.15);

  /* Radii & timing */
  --radius:        16px;
  --radius-sm:     10px;
  --radius-pill:   999px;
  --transition:    .3s cubic-bezier(.4,0,.2,1);
  --nav-height:    72px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---------- Utility ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }

/* ---------- Lucide Icons ---------- */
[data-lucide], .lucide {
  display: inline-block;
  vertical-align: middle;
  width: 1.25em;
  height: 1.25em;
  stroke-width: 2.25;
  stroke: currentColor;
  fill: none;
  transition: transform var(--transition);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-pill);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: .95rem; border: 2px solid transparent;
  transition: all var(--transition); text-align: center;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: #1A6ABF; border-color: #1A6ABF; color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-green   { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); transform: translateY(-2px); }
.btn-accent  { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent:hover  { background: #a93226; border-color: #a93226; color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-highlight { background: var(--highlight); color: var(--white); border-color: var(--highlight); }
.btn-highlight:hover { background: #c86e2f; color: var(--white); transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-danger { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-danger:hover { background: #a93226; color: var(--white); }
.btn-ghost { background: var(--primary-pale); color: var(--primary); padding: 8px 16px; border-radius: var(--radius-sm); }
.btn-ghost:hover { background: var(--primary); color: white; }

/* ---------- Pills / Badges ---------- */
.badge {
  display: inline-block; padding: 4px 14px; border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
}
.badge-blue   { background: var(--primary-pale); color: var(--primary); }
.badge-green  { background: var(--green-pale); color: var(--green-dark); }
.badge-red    { background: var(--accent-pale); color: var(--accent); }
.badge-amber  { background: var(--highlight-pale); color: var(--highlight); }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(244, 248, 255, 0.94); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.4rem;
  color: var(--primary); display: flex; align-items: center; gap: 10px;
}
.nav-logo img { height: 36px; width: 36px; object-fit: cover; border-radius: 50%; }
.nav-logo-text { color: var(--primary); font-size: 1.6rem; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  padding: 8px 16px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .9rem; color: var(--text);
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { background: var(--primary); color: var(--white); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--green));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem;
}
.hamburger {
  display: none; background: none; border: none; padding: 8px;
  flex-direction: column; gap: 5px; cursor: pointer;
}
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: all var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav */
.mobile-menu {
  display: none; position: fixed; top: var(--nav-height); left: 0; right: 0;
  background: var(--card-bg); border-bottom: 1px solid var(--border);
  padding: 16px 24px; z-index: 999;
  flex-direction: column; gap: 4px;
  box-shadow: 0 8px 32px rgba(45,125,210,.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-weight: 600; color: var(--text);
}
.mobile-menu a:hover, .mobile-menu a.active { background: var(--primary); color: var(--white); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 80px; text-align: center;
  background: linear-gradient(160deg, #E8F4FF 0%, #F4F8FF 40%, #E8F8F0 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(45,125,210,0.1) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 100%, rgba(60,175,111,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 3.6rem; color: var(--text); margin-bottom: 16px; }
.hero h1 span.accent-sky  { color: var(--primary); }
.hero h1 span.accent-green { color: var(--green-dark); }
.hero p  { font-size: 1.2rem; color: var(--text-light); max-width: 560px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 600px) { .hero h1 { font-size: 2.2rem; } .hero { padding: 64px 0 48px; } }

/* ---------- Stats Bar ---------- */
.stats-bar {
  display: flex; justify-content: center; gap: 0; flex-wrap: wrap;
  background: var(--white); border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.stat-item {
  text-align: center; padding: 28px 48px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.stat-item:last-child { border-right: none; }
.stat-icon { color: var(--primary); margin-bottom: 6px; }
.stat-num  { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 2.2rem; color: var(--text); }
.stat-label{ font-size: .85rem; color: var(--text-light); font-weight: 500; }

/* ---------- Section ---------- */
.section { padding: 72px 0; }
.section-title {
  font-size: 2rem; color: var(--text); margin-bottom: 8px;
}
.section-sub { color: var(--text-light); margin-bottom: 40px; }
.section-alt { background: var(--bg-alt); }

/* ---------- Cards ---------- */
.card {
  background: var(--card-bg); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 28px;
  transition: all var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary-light); }

.card-grid { display: grid; gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3,1fr); }
.card-grid-2 { grid-template-columns: repeat(2,1fr); }
@media (max-width: 900px) { .card-grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; } }

/* ---------- Event Card (Full Page) ---------- */
.event-card {
  display: flex; flex-direction: column; overflow: hidden;
  position: relative; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  background: var(--card-bg); border-radius: var(--radius); padding: 24px;
}
.event-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}
.event-poster-container {
  width: calc(100% + 48px); height: 200px; margin: -24px -24px 16px -24px;
  background: var(--bg-alt); overflow: hidden; position: relative;
}
.event-poster-container img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.event-card:hover .event-poster-container img { transform: scale(1.05); }
.event-poster-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-pale), var(--green-pale));
  color: var(--primary);
}
.event-title {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.25rem; font-weight: 800;
  color: var(--text); margin-bottom: 8px; line-height: 1.2;
}
.event-meta {
  display: flex; gap: 12px; font-size: 0.85rem; color: var(--text-light);
  margin-bottom: 12px; flex-wrap: wrap; font-weight: 500;
}
.event-meta span { display: inline-flex; align-items: center; gap: 4px; }
.event-desc {
  font-size: 0.95rem; line-height: 1.6; color: var(--text-light);
  margin-bottom: 24px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; flex-grow: 1;
}
.past-event-item {
  display: flex; align-items: center; gap: 20px; padding: 16px 20px;
  border-radius: var(--radius-sm); background: var(--card-bg); border: 1px solid var(--border);
  margin-bottom: 12px; transition: all 0.3s ease; cursor: pointer;
}
.past-event-item:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.past-event-img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; background: #eee; flex-shrink: 0; }
.past-event-icon {
  width: 72px; height: 72px; border-radius: 8px;
  background: var(--primary-pale); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ---------- Gallery Grid ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
}
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden; height: 280px;
  background: var(--border); box-shadow: var(--shadow); cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,43,58,0.85) 0%, rgba(28,43,58,0) 60%);
  opacity: 0; transition: opacity 0.4s ease; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; pointer-events: none;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-title { color: white; font-weight: 700; font-size: 1.1rem; transform: translateY(10px); transition: transform 0.4s ease; margin-bottom: 4px; font-family: 'Plus Jakarta Sans', sans-serif; }
.gallery-user { color: rgba(255,255,255,0.75); font-size: 0.85rem; transform: translateY(10px); transition: transform 0.4s ease; transition-delay: 0.05s; }
.gallery-item:hover .gallery-title, .gallery-item:hover .gallery-user { transform: translateY(0); }
.gallery-delete { position: absolute; top: 12px; right: 12px; z-index: 10; background: rgba(192,57,43,0.9); border: none; color: white; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; cursor: pointer; pointer-events: auto; }
.gallery-item:hover .gallery-delete { opacity: 1; }
.gallery-delete:hover { background: #a93226; transform: scale(1.1); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--card-bg); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 40px;
  max-width: 600px; margin: 0 auto;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--text);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: .95rem;
  background: var(--bg); transition: border-color var(--transition);
  color: var(--text);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,125,210,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group .error-msg { color: var(--accent); font-size: .82rem; margin-top: 4px; display: none; }
.form-group.has-error input, .form-group.has-error textarea { border-color: var(--accent); }
.form-group.has-error .error-msg { display: block; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; margin-bottom: 32px; border-bottom: 2px solid var(--border); }
.tab-btn {
  padding: 12px 24px; background: none; border: none;
  font-weight: 700; font-size: .95rem; color: var(--text-light);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: all var(--transition);
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-btn:hover  { color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Admin Tables ---------- */
.admin-table {
  width: 100%; border-collapse: collapse;
  background: var(--card-bg); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
}
.admin-table th {
  background: var(--primary); color: var(--white);
  padding: 14px 16px; text-align: left; font-size: .85rem; font-weight: 700;
}
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--primary-pale); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(28,43,58,.92);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
  flex-direction: column; padding: 20px;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: var(--radius-sm); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer;
  opacity: 0.8; transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-caption { color: white; margin-top: 16px; font-size: 1rem; font-weight: 600; font-family: 'Plus Jakarta Sans', sans-serif; }
.lightbox-content { animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes scaleUp { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(28,43,58,.5);
  z-index: 3000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
  padding: 24px;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 36px; width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(20px); transition: transform .25s;
  box-shadow: 0 24px 60px rgba(28,43,58,.2);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal h2 { font-size: 1.4rem; margin-bottom: 24px; color: var(--text); }
.modal-close {
  position: absolute; top: 16px; right: 20px; background: none; border: none;
  font-size: 1.4rem; color: var(--text-light); cursor: pointer; transition: color 0.2s;
}
.modal-close:hover { color: var(--accent); }

/* ---------- Toast ---------- */
.toast-container { position: fixed; top: 88px; right: 24px; z-index: 4000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--primary); color: var(--white); padding: 14px 24px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem;
  box-shadow: 0 4px 20px rgba(45,125,210,.25);
  animation: toastIn .3s ease, toastOut .3s ease 2.7s forwards;
  display: flex; align-items: center; gap: 8px;
}
.toast.error { background: var(--accent); }
.toast.warning { background: var(--highlight); }
.toast.success { background: var(--green); }
@keyframes toastIn  { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateX(40px); } }

/* ---------- Floating Action Button ---------- */
.fab {
  position: fixed; bottom: 32px; right: 32px;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  border: none;
  box-shadow: 0 4px 20px rgba(45,125,210,.35);
  transition: all var(--transition); z-index: 100;
  display: none; align-items: center; justify-content: center;
}
.fab:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(45,125,210,.45); background: #1A6ABF; }
.fab.visible { display: flex; }

/* ---------- Spinner ---------- */
.spinner {
  display: inline-block; width: 24px; height: 24px;
  border: 3px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; animation: spin .7s linear infinite;
}
.spinner-lg { width: 48px; height: 48px; border-width: 4px; }
.page-loader { display: flex; justify-content: center; padding: 60px 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
  /* Safety fallback: if IntersectionObserver never fires, force visible after 1.5s */
  animation: revealFallback 0s 1.5s forwards;
}
.reveal.visible { opacity: 1; transform: translateY(0); animation: none; }
@keyframes revealFallback { to { opacity: 1; transform: translateY(0); } }

/* ---------- Footer ---------- */
.footer {
  margin-top: auto;
  background: var(--text);
  color: var(--white);
  padding: 48px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 32px; }
.footer h3 { font-size: 1.1rem; margin-bottom: 16px; color: white; font-family: 'Plus Jakarta Sans', sans-serif; }
.footer h3 img { object-fit: cover; border-radius: 50%; width: 24px !important; height: 24px !important; }
.footer p  { font-size: .9rem; opacity: .7; line-height: 1.6; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: .9rem; transition: all 0.2s; }
.footer-links a:hover { opacity: 1; color: var(--primary-light); }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; transition: background var(--transition);
}
.footer-socials a:hover { background: var(--primary); color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px; text-align: center;
  font-size: .82rem; opacity: .55;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Auth Modal Specifics ---------- */
.auth-toggle { text-align: center; margin-top: 16px; font-size: .9rem; }
.auth-toggle a { font-weight: 700; color: var(--primary); cursor: pointer; }
.auth-divider { text-align: center; color: var(--text-light); font-size: .85rem; margin: 16px 0; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ---------- Avatar ---------- */
.auth-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--green));
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; flex-shrink: 0; font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ---------- Empty State ---------- */
.empty-state { text-align: center; padding: 64px 24px; color: var(--text-light); }
.empty-state .empty-icon { color: var(--primary-light); margin-bottom: 16px; display: flex; justify-content: center; }
.empty-state p { font-size: 1rem; }

/* ---------- Password Toggle ---------- */
.password-group { position: relative; }
.password-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-light);
  display: flex; align-items: center; justify-content: center;
  padding: 8px; border-radius: 50%; transition: all var(--transition); z-index: 5;
}
.password-toggle:hover { color: var(--primary); background: var(--primary-pale); }

/* ---------- Upload Zone ---------- */
.upload-zone, .upload-dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 40px 20px; text-align: center;
  background: var(--bg); transition: all 0.3s ease; cursor: pointer; margin-bottom: 24px;
  display: block; width: 100%;
}
.upload-zone:hover, .upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--primary); background: var(--primary-pale);
}
.upload-zone input[type="file"] { display: none; }
.upload-icon { color: var(--primary-light); margin-bottom: 16px; display: flex; justify-content: center; }
.upload-text { font-size: 1.1rem; font-weight: 600; color: var(--text); display: block; font-family: 'Plus Jakarta Sans', sans-serif; }
.upload-hint { font-size: 0.85rem; color: var(--text-light); margin-top: 8px; display: block; }

/* ---------- Guest Banner ---------- */
.guest-banner {
  background: linear-gradient(135deg, var(--primary-pale), var(--green-pale));
  border-radius: var(--radius); padding: 24px; text-align: center;
  margin-bottom: 24px; border: 1px solid var(--border);
}
.guest-banner p { font-weight: 600; margin-bottom: 12px; }

/* ---------- Forum / Posts ---------- */
.forum-feed { display: flex; flex-direction: column; gap: 16px; }
.forum-post {
  background: var(--card-bg); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 20px 24px;
  display: flex; gap: 16px; transition: all var(--transition);
}
.forum-post:hover { box-shadow: var(--shadow); border-color: var(--primary-light); }
.forum-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--green));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.forum-content { flex: 1; }
.forum-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.forum-name { font-weight: 700; font-size: .95rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.forum-time { font-size: .8rem; color: var(--text-light); }
.forum-text { font-size: .95rem; line-height: 1.55; }
.forum-delete { background: none; border: none; color: var(--accent); font-size: .8rem; cursor: pointer; font-weight: 600; margin-left: auto; }
.forum-delete:hover { text-decoration: underline; }

/* ---------- RSVP ---------- */
.rsvp-btn { display: inline-flex; align-items: center; gap: 6px; }
.rsvp-btn.active, .rsvp-btn.going { background: var(--green); color: white; border-color: var(--green); }
.rsvp-count { font-size: .82rem; color: var(--text-light); margin-left: 8px; }

[data-theme="dark"] {
    --primary:             #3A92F5;
    --primary-light:       #6BAEE6;
    --primary-pale:        rgba(58, 146, 245, 0.15);

    --green:               #47C67F;
    --green-dark:          #2A9960;
    --green-pale:          rgba(71, 198, 127, 0.15);

    --accent:              #D74A3D;
    --accent-light:        #EE8F7B;
    --accent-pale:         rgba(215, 74, 61, 0.15);

    --highlight:           #E8894A;
    --highlight-pale:      rgba(232, 137, 74, 0.15);

    --bg:                  #0D131A;
    --bg-alt:              #131B24;
    --card-bg:             #18222E;

    --text:                #E5EDF4;
    --text-light:          #9AADC1;
    --white:               #FFFFFF;

    --border:              #263545;
    --shadow:              0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-hover:        0 12px 40px rgba(0, 0, 0, 0.6);
}
