/* ============================================================
   TRAVEL ARCHIVE PLATFORM - Main Stylesheet
   Django-ready | Bootstrap 5 Enhanced
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary:        #1a56db;
  --primary-dark:   #1341b8;
  --primary-light:  #e8f0fe;
  --accent:         #0ea5e9;
  --accent-dark:    #0284c7;
  --gold:           #f59e0b;
  --surface:        #ffffff;
  --surface-alt:    #f8fafc;
  --border:         #e2e8f0;
  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:      0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:      0 10px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.07);
  --shadow-xl:      0 20px 60px rgba(0,0,0,.14);
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --transition:     all .25s cubic-bezier(.4,0,.2,1);
}

/* ---------- Base Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--surface-alt);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar-brand-logo {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(26,86,219,.35);
  transition: var(--transition);
}
.navbar-brand-logo:hover { transform: scale(1.08); box-shadow: 0 6px 18px rgba(26,86,219,.45); }
.navbar-brand-logo svg { width: 20px; height: 20px; }

.navbar-custom {
  background: rgba(255,255,255,.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,232,240,.7);
  box-shadow: 0 1px 20px rgba(0,0,0,.06);
  padding: .75rem 0;
}

.nav-brand-name {
  font-weight: 700;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-custom .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: .9rem;
  padding: .45rem .9rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-light);
}

.btn-admin-nav {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff !important;
  border-radius: var(--radius-md) !important;
  padding: .45rem 1.2rem !important;
  font-weight: 600;
  font-size: .85rem;
  box-shadow: 0 4px 12px rgba(26,86,219,.3);
  transition: var(--transition);
}
.btn-admin-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26,86,219,.4);
  color: #fff !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a56db 100%);
  overflow: hidden;
  padding: 100px 0 80px;
  min-height: 420px;
  display: flex; align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 50%, rgba(14,165,233,.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(26,86,219,.3) 0%, transparent 60%);
}

.hero-particles {
  position: absolute; inset: 0; overflow: hidden;
}
.hero-particles span {
  position: absolute;
  width: 2px; height: 2px;
  background: rgba(255,255,255,.5);
  border-radius: 50%;
  animation: float-particle 8s infinite;
}
.hero-particles span:nth-child(1)  { top: 20%; left: 15%; animation-delay: 0s;   animation-duration: 7s; }
.hero-particles span:nth-child(2)  { top: 60%; left: 25%; animation-delay: 1s;   animation-duration: 9s; width:3px; height:3px; }
.hero-particles span:nth-child(3)  { top: 35%; left: 70%; animation-delay: 2s;   animation-duration: 6s; }
.hero-particles span:nth-child(4)  { top: 75%; left: 80%; animation-delay: .5s;  animation-duration: 8s; width:4px; height:4px; }
.hero-particles span:nth-child(5)  { top: 15%; left: 55%; animation-delay: 3s;   animation-duration: 10s; }
.hero-particles span:nth-child(6)  { top: 50%; left: 90%; animation-delay: 1.5s; animation-duration: 7s; width:3px; height:3px; }
.hero-particles span:nth-child(7)  { top: 85%; left: 45%; animation-delay: 4s;   animation-duration: 9s; }
.hero-particles span:nth-child(8)  { top: 10%; left: 40%; animation-delay: 2.5s; animation-duration: 8s; width:2px; height:2px; }

@keyframes float-particle {
  0%, 100% { transform: translateY(0) scale(1);   opacity: .4; }
  50%       { transform: translateY(-30px) scale(1.5); opacity: 1; }
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  padding: .35rem 1rem;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-title .highlight {
  background: linear-gradient(135deg, #60c5ff, #a5f3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  max-width: 560px;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-stats {
  display: flex; gap: 2rem; flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 500;
}

.hero-globe {
  position: absolute;
  right: -60px; top: 50%;
  transform: translateY(-50%);
  opacity: .08;
  font-size: 320px;
  line-height: 1;
  user-select: none;
  animation: globe-rotate 30s linear infinite;
}
@keyframes globe-rotate {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

/* ============================================================
   YEAR SELECTOR
   ============================================================ */
.year-selector-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  position: sticky; top: 64px; z-index: 40;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.year-btn {
  padding: .55rem 1.5rem;
  border-radius: 99px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.year-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}
.year-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(26,86,219,.35);
  transform: translateY(-2px);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  margin-bottom: 2rem;
}
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .5rem;
}
.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.section-title span { color: var(--primary); }

/* ============================================================
   COUNTRY CARDS
   ============================================================ */
.country-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}
.country-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
  color: inherit;
  text-decoration: none;
}
.country-card:hover .country-card-bar { transform: scaleX(1); }

.country-card-inner { padding: 2rem 1.5rem; text-align: center; }

.country-flag-wrap {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 2.5rem;
  box-shadow: 0 4px 16px rgba(26,86,219,.15);
  transition: var(--transition);
}
.country-card:hover .country-flag-wrap {
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(26,86,219,.25);
}

.country-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .5rem;
}

.country-events-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: .3rem .85rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.country-card-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

/* Image-based country card variant */
.country-card-img {
  height: 200px;
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.country-card-img .flag-big {
  font-size: 5rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
  transition: transform .35s ease;
}
.country-card:hover .flag-big { transform: scale(1.2) rotate(-5deg); }
.country-card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.7) 0%, transparent 60%);
}

/* ============================================================
   EVENT CARDS
   ============================================================ */
.event-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
  color: inherit;
  text-decoration: none;
}

.event-card-thumb {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1e3a5f, #164e9a);
  flex-shrink: 0;
}
.event-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.event-card:hover .event-card-thumb img { transform: scale(1.08); }

.event-card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
}
.event-card-thumb-placeholder span { font-size: 3.5rem; opacity: .6; }

.event-card-badge {
  position: absolute; top: .75rem; left: .75rem;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-radius: 99px;
  padding: .2rem .7rem;
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .03em;
}

.event-card-body {
  padding: 1.35rem;
  display: flex; flex-direction: column; flex: 1;
}

.event-card-meta {
  display: flex; align-items: center; gap: .4rem;
  color: var(--text-muted);
  font-size: .78rem;
  margin-bottom: .6rem;
}
.event-card-meta svg { width: 13px; height: 13px; flex-shrink: 0; }

.event-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .6rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-desc {
  font-size: .85rem;
  color: var(--text-secondary);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.event-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .85rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.event-card-media-icons {
  display: flex; gap: .4rem;
}
.media-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem;
}
.media-dot.img  { background: #dbeafe; color: var(--primary); }
.media-dot.vid  { background: #fce7f3; color: #db2777; }
.media-dot.file { background: #d1fae5; color: #059669; }
.event-card-arrow {
  color: var(--text-muted);
  transition: var(--transition);
}
.event-card:hover .event-card-arrow { color: var(--primary); transform: translateX(4px); }

/* ============================================================
   PAGE HEADER BANNER
   ============================================================ */
.page-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1a4db8 100%);
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 100% at 90% 50%, rgba(14,165,233,.2) 0%, transparent 70%);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner-back {
  display: inline-flex; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: var(--transition);
  cursor: pointer;
  background: transparent; border: none; padding: 0;
}
.page-banner-back:hover { color: #fff; transform: translateX(-4px); }
.page-banner-back svg { width: 16px; height: 16px; }

.page-banner-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: .5rem;
  line-height: 1.2;
}
.page-banner-subtitle {
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  font-weight: 400;
}
.page-banner-flag {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}

/* ============================================================
   EVENT DETAIL PAGE
   ============================================================ */
.event-detail-wrap { padding: 2.5rem 0 4rem; }

.content-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.content-card-header {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.content-card-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.content-card-icon.blue  { background: #dbeafe; color: var(--primary); }
.content-card-icon.pink  { background: #fce7f3; color: #db2777; }
.content-card-icon.green { background: #d1fae5; color: #059669; }
.content-card-icon.amber { background: #fef3c7; color: #d97706; }

.content-card-icon svg { width: 18px; height: 18px; }

.content-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.content-card-count {
  margin-left: auto;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 99px;
  padding: .15rem .65rem;
  font-size: .78rem;
  font-weight: 700;
}
.content-card-body { padding: 1.5rem; }

/* Photo Gallery Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
}
.photo-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  position: relative;
}
.photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.photo-item:hover img { transform: scale(1.06); }
.photo-overlay {
  position: absolute; inset: 0;
  background: rgba(15,23,42,.45);
  opacity: 0;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .3s ease;
}
.photo-item:hover .photo-overlay { opacity: 1; }
.photo-overlay-icon { color: #fff; font-size: 1.5rem; }

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.video-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid var(--border);
}
.video-item video {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
}
.video-placeholder {
  aspect-ratio: 16/9;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  border-radius: var(--radius-md);
}
.video-play-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.video-play-icon svg { color: #fff; width: 22px; height: 22px; }

/* File List */
.file-list { display: flex; flex-direction: column; gap: .6rem; }
.file-item {
  display: flex; align-items: center; gap: .9rem;
  padding: .9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  cursor: pointer;
}
.file-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  transform: translateX(4px);
}
.file-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: #dbeafe;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.file-icon svg { width: 18px; height: 18px; }
.file-name { flex: 1; font-weight: 500; font-size: .9rem; }
.file-size { font-size: .78rem; color: var(--text-muted); }
.file-download { color: var(--text-muted); font-size: 1.1rem; transition: var(--transition); }
.file-item:hover .file-download { color: var(--primary); }

/* Text Content */
.text-content {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  white-space: pre-line;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1060;
  background: rgba(0,0,0,.92);
  align-items: center; justify-content: center;
  padding: 1rem;
  animation: fade-in .2s ease;
}
.lightbox-overlay.active { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox-close {
  position: fixed; top: 1.25rem; right: 1.5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.lightbox-close:hover { background: rgba(255,255,255,.22); transform: scale(1.1); }
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.lightbox-nav:hover { background: rgba(255,255,255,.22); }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-counter {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  background: rgba(0,0,0,.5);
  padding: .35rem 1rem;
  border-radius: 99px;
  backdrop-filter: blur(8px);
}

/* ============================================================
   ADMIN PAGE
   ============================================================ */
.admin-wrap { padding: 2.5rem 0 4rem; }

.admin-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.admin-card-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 2rem;
  color: #fff;
}
.admin-card-header h5 { font-weight: 700; font-size: 1.05rem; margin: 0; }
.admin-card-header p { margin: .35rem 0 0; opacity: .8; font-size: .85rem; }
.admin-card-body { padding: 2rem; }

.form-label-custom {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .45rem;
  display: block;
}
.form-label-custom .req { color: #ef4444; }

.form-control-custom,
.form-select-custom {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: .65rem 1rem;
  font-size: .93rem;
  color: var(--text-primary);
  background: var(--surface);
  width: 100%;
  transition: var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-control-custom:focus,
.form-select-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}
.form-control-custom::placeholder { color: var(--text-muted); }

textarea.form-control-custom {
  min-height: 130px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--surface-alt);
  position: relative;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
}
.upload-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.upload-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .85rem;
  transition: var(--transition);
}
.upload-icon.blue  { background: #dbeafe; color: var(--primary); }
.upload-icon.pink  { background: #fce7f3; color: #db2777; }
.upload-icon.green { background: #d1fae5; color: #059669; }
.upload-icon svg { width: 24px; height: 24px; }
.upload-text { font-weight: 600; font-size: .9rem; color: var(--text-primary); margin-bottom: .25rem; }
.upload-hint { font-size: .78rem; color: var(--text-muted); }

.file-preview-list { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.file-preview-item {
  display: flex; align-items: center; gap: .75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .55rem .85rem;
}
.file-preview-icon { font-size: 1.1rem; }
.file-preview-name { flex: 1; font-size: .85rem; font-weight: 500; color: var(--text-primary); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.file-preview-remove {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fee2e2;
  color: #ef4444;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: .9rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.file-preview-remove:hover { background: #ef4444; color: #fff; }

/* Success Toast */
.success-toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 1070;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: flex; align-items: center; gap: .75rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px); opacity: 0;
  transition: all .4s cubic-bezier(.34,1.56,.64,1);
  max-width: 340px;
}
.success-toast.show { transform: translateY(0); opacity: 1; }
.success-toast-icon { color: #16a34a; font-size: 1.4rem; }
.success-toast-text { font-weight: 600; color: #15803d; font-size: .9rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-custom {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: .92rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(26,86,219,.35);
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(26,86,219,.45);
  color: #fff;
}
.btn-primary-custom:active { transform: translateY(0); }

.btn-ghost-custom {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent;
  color: var(--text-secondary);
  padding: .55rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-ghost-custom:hover { background: var(--surface); color: var(--primary); transform: translateX(-3px); }

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}
.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: .4;
}
.empty-state-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .5rem;
}
.empty-state-text { color: var(--text-muted); font-size: .9rem; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-custom {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 1rem;
}
.breadcrumb-custom a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumb-custom a:hover { color: #fff; }
.breadcrumb-custom .sep { opacity: .4; }
.breadcrumb-custom .current { color: rgba(255,255,255,.9); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0f172a;
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 1.75rem;
  font-size: .82rem;
  margin-top: auto;
}
.footer a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer a:hover { color: #fff; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}

.animate-fade-in  { animation: fade-in  .5s ease both; }
.animate-slide-up { animation: slide-up .5s ease both; }
.animate-scale-in { animation: scale-in .4s ease both; }

/* Stagger children */
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 60ms; }
.stagger > *:nth-child(3) { animation-delay: 120ms; }
.stagger > *:nth-child(4) { animation-delay: 180ms; }
.stagger > *:nth-child(5) { animation-delay: 240ms; }
.stagger > *:nth-child(6) { animation-delay: 300ms; }
.stagger > *:nth-child(7) { animation-delay: 360ms; }
.stagger > *:nth-child(8) { animation-delay: 420ms; }

/* ============================================================
   UTILITIES
   ============================================================ */
.gap-section { margin-top: 3.5rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 768px) {
  .hero-section { padding: 70px 0 60px; min-height: auto; }
  .hero-globe { display: none; }
  .hero-stats { gap: 1.25rem; }
  .year-selector-wrap { top: 56px; }
  .lightbox-nav { display: none; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .admin-card-body { padding: 1.25rem; }
  .breadcrumb-custom { display: none; }
}
