/* Reset & Variables */
:root {
  --bg-dark: #0a0e17;
  --bg-card: rgba(30, 41, 59, 0.4);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --gold-primary: #e5c158;
  --gold-hover: #f1d272;
  --gold-glow: rgba(229, 193, 88, 0.35);
  --danger-red: #ef4444;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Blur Lights */
.bg-blur {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

.blur-1 {
  top: -100px;
  right: -50px;
  background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
}

.blur-2 {
  top: 600px;
  left: -200px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
}

/* Layout Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Hero Header */
.hero-header {
  padding: 80px 0 60px 0;
  text-align: center;
  position: relative;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(229, 193, 88, 0.1);
  border: 1px solid rgba(229, 193, 88, 0.25);
  border-radius: 100px;
  color: var(--gold-primary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  text-transform: uppercase;
  animation: pulse-border 3s infinite alternate;
}

@keyframes pulse-border {
  0% { border-color: rgba(229, 193, 88, 0.2); box-shadow: 0 0 5px rgba(229, 193, 88, 0.05); }
  100% { border-color: rgba(229, 193, 88, 0.5); box-shadow: 0 0 15px rgba(229, 193, 88, 0.2); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px auto;
  font-weight: 300;
}

/* Countdown Section */
.countdown-wrapper {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 30px;
  max-width: 700px;
  margin: 0 auto;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.countdown-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: 600;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.time-block {
  flex: 1;
  max-width: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.time-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.time-block .number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gold-primary);
  line-height: 1.1;
  text-shadow: 0 0 10px var(--gold-glow);
}

.time-block .label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.expiry-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  text-align: left;
  font-size: 0.9rem;
  color: #fca5a5;
  line-height: 1.4;
}

.expiry-alert strong {
  color: #ef4444;
}

.expiry-alert .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--danger-red);
}

/* Sections Shared */
.section {
  margin-bottom: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 36px;
  backdrop-filter: blur(20px);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: rgba(229, 193, 88, 0.1);
  border: 1px solid rgba(229, 193, 88, 0.2);
  border-radius: 14px;
  color: var(--gold-primary);
}

.section-icon svg {
  width: 22px;
  height: 22px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-primary) 0%, #d4af37 100%);
  color: #000000;
  box-shadow: 0 4px 14px var(--gold-glow);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-hover) 0%, var(--gold-primary) 100%);
  box-shadow: 0 6px 20px rgba(229, 193, 88, 0.5);
  transform: translateY(-2px);
}

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

.icon {
  width: 18px;
  height: 18px;
}

/* Video Section Specifics */
.video-player-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-player-container video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  outline: none;
}

.video-info-overlay {
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Search Box styling */
.search-box {
  position: relative;
  max-width: 320px;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 12px rgba(229, 193, 88, 0.15);
}

/* Photos Grid Section */
.photos-header-flex {
  align-items: flex-end;
}

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

/* Photo Card */
.photo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: var(--transition);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  background: #111827; /* Dark loader bg */
}

/* Skeleton Loading Effect */
.photo-card.loading {
  background: linear-gradient(110deg, #111827 8%, #1f2937 18%, #111827 33%);
  background-size: 200% 100%;
  animation: shine 1.5s infinite linear;
}

@keyframes shine {
  to { background-position-x: -200%; }
}

.photo-card:hover {
  transform: translateY(-5px);
  border-color: rgba(229, 193, 88, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(229, 193, 88, 0.1);
}

.photo-card:hover img {
  transform: scale(1.08);
}

/* Overlay info on hover */
.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 23, 0.9) 0%, rgba(10, 14, 23, 0.3) 50%, transparent 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.photo-card:hover .photo-overlay {
  opacity: 1;
}

.photo-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-actions {
  display: flex;
  gap: 8px;
  pointer-events: auto; /* Allow buttons to be clicked */
}

.photo-btn {
  flex: 1;
  padding: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  transition: var(--transition);
}

.photo-btn-view {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.photo-btn-view:hover {
  background: rgba(255, 255, 255, 0.25);
}

.photo-btn-download {
  background: var(--gold-primary);
  color: #000000;
}

.photo-btn-download:hover {
  background: var(--gold-hover);
}

/* Scroll Loader */
.scroll-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state svg {
  width: 64px;
  height: 64px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(6, 9, 15, 0.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(15px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1010;
}

.lightbox-close:hover {
  background: var(--danger-red);
  border-color: var(--danger-red);
  transform: rotate(90deg);
}

.lightbox-close svg {
  width: 22px;
  height: 22px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1010;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--gold-primary);
}

.lightbox-nav svg {
  width: 28px;
  height: 28px;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-content {
  position: relative;
  max-width: 80%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.lightbox-caption {
  margin-top: 20px;
  text-align: center;
}

.lightbox-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
}

.lightbox-size {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.lightbox-actions {
  position: absolute;
  bottom: 40px;
  z-index: 1010;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 40px;
}

.footer-note {
  font-size: 0.8rem;
  margin-top: 6px;
  color: var(--gold-primary);
  opacity: 0.8;
}

/* Media Queries */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
  }
  
  .countdown {
    gap: 8px;
  }
  
  .time-block {
    padding: 10px 4px;
  }
  
  .time-block .number {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 24px;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .lightbox-nav {
    width: 44px;
    height: 44px;
  }
  
  .lightbox-nav svg {
    width: 20px;
    height: 20px;
  }
  
  .lightbox-prev {
    left: 12px;
  }
  
  .lightbox-next {
    right: 12px;
  }
  
  .lightbox-content {
    max-width: 90%;
  }
  
  .search-box {
    max-width: 100%;
  }
}
