﻿@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Cinzel:wght@600;700;900&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --egyptian-gold: #d4af37;
  --gold-light: #f5d77f;
  --gold-dark: #aa8218;
  --gold-glow: rgba(212, 175, 55, 0.35);
  
  --theatrical-velvet: #5c0d1b;
  --theatrical-velvet-dark: #3b0710;
  --theatrical-red: #a81c34;
  
  --bg-deep: #070a10;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(28, 38, 58, 0.85);
  --bg-dark-accent: #0c1017;
  
  --text-gold: #f5d77f;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-gold: rgba(212, 175, 55, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.09);
}

body {
  background: radial-gradient(circle at 50% 0%, #30060e 0%, #0c1017 55%, #05070a 100%);
  color: var(--text-main);
  min-height: 100vh;
  margin: 0;
  padding-bottom: 70px;
}

/* Typography for Arabic vs Latin */
html[dir="rtl"] body {
  font-family: "Cairo", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;
  letter-spacing: 0;
}

html[dir="ltr"] body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.font-cinzel {
  font-family: "Cinzel", "Cairo", serif;
  letter-spacing: 1px;
}

/* Navbar */
.theatrical-nav {
  background: rgba(7, 10, 16, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-gold);
}

.festival-brand {
  font-family: "Cairo", "Cinzel", serif;
  font-weight: 800;
  color: var(--egyptian-gold) !important;
  font-size: 1.35rem;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: var(--border-gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.15);
}

.card-gold-accent {
  border: 1px solid var(--border-gold);
  background: linear-gradient(145deg, rgba(92, 13, 27, 0.35) 0%, rgba(18, 24, 38, 0.85) 100%);
}

/* Nominee Selection Cards */
.nominee-card {
  background: rgba(18, 24, 38, 0.8);
  border: 2px solid var(--border-subtle);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.nominee-card:hover {
  transform: translateY(-5px);
  border-color: var(--egyptian-gold);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.25);
}

.nominee-card.selected {
  border-color: var(--egyptian-gold);
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.18), rgba(92, 13, 27, 0.35));
  box-shadow: 0 0 30px var(--gold-glow);
}

.nominee-photo {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  transition: transform 0.4s ease;
}

.nominee-card:hover .nominee-photo {
  transform: scale(1.03);
}

.nominee-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(7, 10, 16, 0.75);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.2s ease;
}

html[dir="rtl"] .nominee-check {
  right: auto;
  left: 12px;
}

.nominee-card.selected .nominee-check {
  background: var(--egyptian-gold);
  border-color: var(--egyptian-gold);
  color: #070a10;
  font-weight: 900;
}

/* Countdown Clock */
.countdown-box {
  background: rgba(7, 10, 16, 0.85);
  border: 1px solid var(--egyptian-gold);
  border-radius: 14px;
  padding: 12px 18px;
  min-width: 80px;
  display: inline-block;
  box-shadow: 0 0 20px var(--gold-glow);
}

.countdown-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold-light);
  font-family: monospace;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* Elegant Buttons */
.btn-gold {
  background: linear-gradient(135deg, #d4af37 0%, #aa8218 100%);
  color: #070a10 !important;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  transition: all 0.2s ease;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #e5c158 0%, #b38728 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.55);
  color: #000 !important;
}

.btn-velvet {
  background: linear-gradient(135deg, #5c0d1b 0%, #3b0710 100%);
  color: #f5d77f !important;
  border: 1px solid var(--border-gold);
  font-weight: 700;
  border-radius: 10px;
}

.btn-velvet:hover {
  background: linear-gradient(135deg, #741224 0%, #4a0914 100%);
  color: #fff !important;
}

/* RTL adjustment helpers */
html[dir="rtl"] .dropdown-menu {
  text-align: right;
}

/* Printable Code Slip Styles */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    padding: 0 !important;
  }
  .no-print {
    display: none !important;
  }
  .slip-box {
    border: 2px dashed #333 !important;
    page-break-inside: avoid;
    margin-bottom: 12px;
    padding: 12px;
    background: #fff !important;
    color: #000 !important;
  }
  .slip-code {
    color: #000 !important;
    background: #eee !important;
  }
}
