/* ==========================================================
   Álbum Digital — Mary & Nati
   Design System + Responsive Styles
   ========================================================== */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* ── Custom Properties ────────────────────────────────────── */
:root {
  /* Palette */
  --warm-white: #FFFAF5;
  --gold: #D4A853;
  --gold-light: #E8CFA0;
  --gold-dark: #B8912F;
  --blush: #F5E6D3;
  --blush-light: #FFF0E5;
  --charcoal: #2C2C2C;
  --charcoal-50: rgba(44, 44, 44, 0.5);
  --white: #FFFFFF;
  --overlay: rgba(255, 250, 245, 0.92);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(212, 168, 83, 0.25);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Sizing */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(44, 44, 44, 0.06);
  --shadow-md: 0 8px 30px rgba(44, 44, 44, 0.08);
  --shadow-lg: 0 16px 50px rgba(44, 44, 44, 0.10);
  --shadow-gold: 0 4px 20px rgba(212, 168, 83, 0.25);

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 0.35s;
}

/* ── Reset ────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--charcoal);
  background-color: var(--warm-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

a:hover {
  color: var(--gold-dark);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
}

/* ── Utilities ────────────────────────────────────────────── */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5em;
  color: var(--charcoal);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--charcoal-50);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-weight: 300;
}

.gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 0 auto 2rem;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes scrollIndicator {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  50% {
    opacity: 0.3;
    transform: translateY(12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Navigation Bar ───────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    padding var(--duration) var(--ease-out);
}

.navbar.scrolled {
  background: var(--overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 0.6rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  transition: color var(--duration) var(--ease-out);
  letter-spacing: 0.02em;
}

.navbar.scrolled .nav-logo {
  color: var(--charcoal);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--duration) var(--ease-out);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--duration) var(--ease-out);
}

.nav-links a:hover::after {
  width: 100%;
}

.navbar.scrolled .nav-links a {
  color: var(--charcoal-50);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--duration) var(--ease-out);
}

.navbar.scrolled .nav-toggle span {
  background: var(--charcoal);
}

/* ══════════════════════════════════════════════════════════
   1. HERO SECTION
   ══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(212, 168, 83, 0.15) 0%,
      rgba(245, 230, 211, 0.4) 40%,
      rgba(255, 250, 245, 0.6) 100%),
    url('../Hero-Photo.jpg') center/cover no-repeat;
  filter: brightness(0.85);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(44, 44, 44, 0.35) 0%,
      rgba(44, 44, 44, 0.15) 50%,
      rgba(255, 250, 245, 0.6) 100%);
  z-index: -1;
}

.hero-content {
  animation: fadeInUp 1.2s var(--ease-out);
  padding: 0 1rem;
}

.hero-pretitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.3em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.15);
}

.hero-title .ampersand {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 400;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.hero-date {
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollIndicator 2s ease-in-out infinite;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
}

/* ══════════════════════════════════════════════════════════
   2. UPLOAD SECTION
   ══════════════════════════════════════════════════════════ */
.upload-section {
  background: linear-gradient(180deg, var(--warm-white) 0%, var(--blush-light) 100%);
}

.drop-zone {
  position: relative;
  border: 2px dashed var(--gold-light);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--duration) var(--ease-out);
  cursor: pointer;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.08);
  box-shadow: var(--shadow-gold);
  transform: scale(1.01);
}

.drop-zone.drag-over {
  border-style: solid;
}

.drop-zone-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
  color: var(--gold);
}

.drop-zone-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.drop-zone-subtext {
  font-size: 0.95rem;
  color: var(--charcoal-50);
  margin-bottom: 1.5rem;
}

.drop-zone input[type="file"] {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-xl);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all var(--duration) var(--ease-out);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 83, 0.4);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold-light);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* Upload progress area */
.upload-progress-area {
  margin-top: 2rem;
  display: none;
}

.upload-progress-area.active {
  display: block;
  animation: fadeIn 0.4s var(--ease-out);
}

.upload-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.upload-stat {
  text-align: center;
}

.upload-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.upload-stat-label {
  font-size: 0.8rem;
  color: var(--charcoal-50);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.overall-progress {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  height: 6px;
  background: var(--blush);
  border-radius: 3px;
  overflow: hidden;
}

.overall-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  border-radius: 3px;
  width: 0%;
  transition: width 0.4s var(--ease-out);
}

.file-list {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.file-item-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}

.file-item-name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-item-status {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
}

.file-item-status.done {
  color: #4CAF50;
}

.file-item-status.error {
  color: #E53935;
}

.file-item-progress {
  width: 80px;
  height: 4px;
  background: var(--blush);
  border-radius: 2px;
  overflow: hidden;
}

.file-item-progress-bar {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width 0.3s;
}

/* ══════════════════════════════════════════════════════════
   3. AI ALBUMS SECTION
   ══════════════════════════════════════════════════════════ */
.albums-section {
  background: var(--warm-white);
}

.albums-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.album-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.album-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
}

.album-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-light);
}

.album-card:hover::before {
  opacity: 1;
}

.album-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.album-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.album-count {
  font-size: 0.85rem;
  color: var(--charcoal-50);
  margin-bottom: 1.5rem;
}

.album-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
  aspect-ratio: 16/9;
}

.album-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration) var(--ease-out);
}

.album-card:hover .album-preview-img {
  transform: scale(1.05);
}

.album-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/9;
  background: var(--blush-light);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  color: var(--charcoal-50);
  font-size: 0.9rem;
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════
   4. GALLERY VIEW (expanded album)
   ══════════════════════════════════════════════════════════ */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--overlay);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  overflow-y: auto;
  animation: fadeIn 0.3s var(--ease-out);
}

.gallery-modal.active {
  display: block;
}

.gallery-header {
  position: sticky;
  top: 0;
  background: var(--overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.5rem 0;
  z-index: 10;
  border-bottom: 1px solid var(--glass-border);
}

.gallery-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
}

.gallery-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--charcoal);
  transition: all var(--duration) var(--ease-out);
}

.btn-close:hover {
  background: var(--gold);
  color: var(--white);
}

.gallery-grid {
  padding: 2rem 0 4rem;
}

.gallery-grid .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--blush-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(44, 44, 44, 0.5) 100%);
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-download {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s var(--ease-out);
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: var(--white);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: var(--white);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.lightbox-download {
  position: absolute;
  bottom: 1.5rem;
  left: calc(50% - 5rem);
}

.lightbox-delete {
  position: absolute;
  bottom: 1.5rem;
  left: calc(50% + 2rem);
}

/* ══════════════════════════════════════════════════════════
   5. VIDEO SECTION
   ══════════════════════════════════════════════════════════ */
.video-section {
  background: linear-gradient(180deg, var(--blush-light) 0%, var(--warm-white) 100%);
}

.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.video-player-container {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
}

.video-player-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  gap: 1rem;
}

.video-placeholder-icon {
  font-size: 4rem;
}

.video-placeholder-text {
  font-size: 1rem;
  font-weight: 300;
}

.video-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.video-progress {
  display: none;
  max-width: 500px;
  margin: 1.5rem auto 0;
}

.video-progress.active {
  display: block;
  animation: fadeIn 0.4s var(--ease-out);
}

.video-progress-text {
  font-size: 0.85rem;
  color: var(--charcoal-50);
  margin-bottom: 0.5rem;
}

.video-progress-bar-wrap {
  height: 6px;
  background: var(--blush);
  border-radius: 3px;
  overflow: hidden;
}

.video-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  width: 0%;
  transition: width 0.3s var(--ease-out);
}

/* ══════════════════════════════════════════════════════════
   6. FOOTER
   ══════════════════════════════════════════════════════════ */
.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0;
  text-align: center;
}

.footer-heart {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

.footer-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}

.footer-sub {
  font-size: 0.75rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ══════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  padding: 1rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: fadeInUp 0.4s var(--ease-out);
  border-left: 4px solid var(--gold);
  max-width: 360px;
}

.toast.success {
  border-left-color: #4CAF50;
}

.toast.error {
  border-left-color: #E53935;
}

/* ══════════════════════════════════════════════════════════
   LOADING SKELETON
   ══════════════════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, var(--blush-light) 25%, var(--blush) 50%, var(--blush-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ══════════════════════════════════════════════════════════
   ADMIN CONTROLS
   ══════════════════════════════════════════════════════════ */
.admin-toolbar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}

.admin-modal.active {
  display: flex;
  animation: fadeIn 0.3s var(--ease-out);
}

.admin-modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.admin-modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.admin-modal-subtitle {
  font-size: 0.9rem;
  color: var(--charcoal-50);
  margin-bottom: 1.5rem;
}

.admin-album-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  max-height: 300px;
  overflow-y: auto;
}

.admin-album-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--blush-light);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: all var(--duration) var(--ease-out);
  cursor: pointer;
  text-align: left;
}

.admin-album-option:hover:not(:disabled) {
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.08);
}

.admin-album-option.active {
  border-color: var(--gold-light);
  background: var(--blush);
  cursor: default;
}

.admin-album-option small {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--charcoal-50);
}

.admin-modal-close {
  width: 100%;
  justify-content: center;
}

/* Album card delete button */
.album-delete-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(229, 57, 53, 0.1);
  color: #E53935;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--duration) var(--ease-out);
  z-index: 5;
}

.album-card:hover .album-delete-btn {
  opacity: 1;
}

.album-delete-btn:hover {
  background: #E53935;
  color: var(--white);
}

/* Gallery admin buttons */
.gallery-item-admin-btns {
  margin-left: auto;
  display: flex;
  gap: 0.3rem;
}

.gallery-admin-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration);
  color: var(--white);
}

.gallery-admin-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.gallery-admin-btn-del:hover {
  background: rgba(229, 57, 53, 0.7);
}

/* ══════════════════════════════════════════════════════════
   GALLERY VIDEO ITEMS
   ══════════════════════════════════════════════════════════ */
.gallery-item-video {
  cursor: pointer;
}

.gallery-item-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item-play {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.gallery-item-overlay {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Album preview video placeholder */
.album-preview-video {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  color: var(--white);
  font-size: 1.5rem;
}

/* File list video thumb */
.file-item-thumb-video {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ══════════════════════════════════════════════════════════
   MULTI-SELECT SYSTEM
   ══════════════════════════════════════════════════════════ */

/* Checkbox on each gallery item */
.gallery-item-checkbox {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  pointer-events: none;
}

.gallery-item-checkbox.checked {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(212, 168, 83, 0.5);
}

/* Selected item highlight */
.gallery-item-selected {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
  box-shadow: 0 0 0 6px rgba(212, 168, 83, 0.2);
}

.gallery-item-selected::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(212, 168, 83, 0.12);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

/* In selection mode, cursor changes */
.selection-mode .gallery-item {
  cursor: pointer;
}

.selection-mode .gallery-item:hover {
  outline: 3px solid var(--gold-light);
  outline-offset: -3px;
}

/* Floating selection toolbar */
.selection-toolbar {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5000;
  background: rgba(44, 44, 44, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  transition: bottom 0.4s var(--ease-out);
  max-width: 95vw;
  flex-wrap: wrap;
  justify-content: center;
}

.selection-toolbar.active {
  bottom: 1.5rem;
}

.selection-toolbar-info {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.selection-count {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
}

.selection-toolbar-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Small button variant */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* Danger button */
.btn-danger {
  background: #E53935;
  color: var(--white);
  border: none;
}

.btn-danger:hover {
  background: #C62828;
  transform: translateY(-1px);
}

.btn-danger:disabled {
  background: rgba(229, 57, 53, 0.4);
  cursor: not-allowed;
  transform: none;
}

/* Override outline btn inside dark toolbar */
.selection-toolbar .btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

.selection-toolbar .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .albums-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--overlay);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open a {
    color: var(--charcoal);
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .albums-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .drop-zone {
    padding: 3rem 1.5rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .gallery-grid .container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
  }

  .lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-pretitle {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
  }

  .upload-stats {
    gap: 1rem;
  }

  .video-actions {
    flex-direction: column;
    align-items: center;
  }

  .gallery-grid .container {
    grid-template-columns: repeat(2, 1fr);
  }
}