/* css/style.css */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Orbitron:wght@500;700;900&display=swap");

:root {
  --bg-dark: #020617;
  --bg-card: #0f172a;
  --accent: #f43f5e;
  --gold: #fbbf24;
  --green: #4ade80;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --glass-border: rgba(255, 255, 255, 0.08);
  --container-width: 1400px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: "Outfit", sans-serif;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
.container {
  width: 95%;
  max-width: var(--container-width);
  margin: 0 auto;
}
.font-clock {
  font-family: "Orbitron", sans-serif;
}
.hidden {
  display: none !important;
}

/* UTILITIES */
.text-center {
  text-align: center;
}
.text-accent {
  color: var(--accent) !important;
}
.text-gold {
  color: var(--gold) !important;
}
.text-green {
  color: var(--green) !important;
}
.text-yellow {
  color: #ff0;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: 70px;
  background: rgba(2, 6, 23, 0.95);
  border-bottom: 1px solid var(--glass-border);
}
.nav-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo i {
  color: var(--accent);
}
.clock-animate {
  color: var(--accent);
  text-shadow: 0 0 5px var(--accent);
  animation: neon-pulse 2s infinite alternate;
}
.power-text {
  font-size: 0.5em;
  color: var(--text-muted);
  vertical-align: super;
  margin-left: 2px;
  letter-spacing: 1px;
  border: 1px solid var(--glass-border);
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}
@keyframes neon-pulse {
  0% {
    text-shadow: 0 0 5px var(--accent);
    opacity: 0.9;
  }
  100% {
    text-shadow:
      0 0 15px var(--accent),
      0 0 25px var(--accent);
    opacity: 1;
  }
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-link {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.nav-link:hover {
  color: white;
}
.btn-donate-nav {
  background: linear-gradient(90deg, #ca8a04, #ea580c);
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 0.8rem;
  color: white;
}

/* HERO */
header {
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3rem;
  background:
    linear-gradient(to top, var(--bg-dark) 10%, transparent),
    url("images/RAJA-SAAB-POSTER-2.png");
  background-size: cover;
  background-position: top center;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: white;
}
.badge-featured {
  background: var(--accent);
  color: white;
  margin-bottom: 1rem;
  display: inline-block;
}
.hero-desc {
  color: #cbd5e1;
  max-width: 600px;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* STATS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: -3rem;
  position: relative;
  z-index: 5;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 1.2rem;
  text-align: center;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.stat-value {
  font-size: 1.5rem;
}

/* URGENT ALERT (GLOWING) */
.urgent-alert {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  background: rgba(69, 10, 10, 0.6);
  border: 2px solid #ef4444;
  color: #fca5a5;
  padding: 1.2rem;
  border-radius: 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.2);
  animation: criticalPulse 2s infinite alternate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  backdrop-filter: blur(5px);
}
.alert-title {
  font-weight: 900;
  color: #ef4444;
  text-transform: uppercase;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-title i {
  animation: shake 2s infinite;
}
.alert-desc {
  font-size: 0.85rem;
  color: #e5e7eb;
  margin-top: 5px;
}
.alert-sub {
  display: block;
  color: #fca5a5;
  margin-top: 2px;
}
.days-count {
  color: #fff;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--gold);
  padding: 0 5px;
  color: var(--gold);
}

@keyframes criticalPulse {
  0% {
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
  }
  100% {
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.6);
    border-color: rgba(239, 68, 68, 1);
  }
}
@keyframes shake {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}

/* SEARCH & FILTER */
.search-wrapper {
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.search-input:focus {
  border-color: var(--accent);
}

.filter-bar {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.3);
}

/* EMOTIONAL BOX */
.emotional-box {
  background: linear-gradient(135deg, #1f0505, #000);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
}
.emo-text {
  flex: 1;
  position: relative;
  z-index: 2;
}
.emo-subhead {
  color: #f87171;
  font-weight: bold;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.emo-header {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}
.emo-para {
  color: #cbd5e1;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.emo-qr {
  flex-shrink: 0;
  text-align: center;
  position: relative;
  z-index: 2;
}
.qr-wrapper {
  background: white;
  padding: 8px;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}
.qr-img {
  width: 120px;
  height: 120px;
  mix-blend-mode: multiply;
}
.qr-label {
  margin-top: 0.5rem;
  font-weight: bold;
  font-size: 0.75rem;
  color: white;
}
.progress-container {
  width: 100%;
  height: 8px;
  background: #333;
  border-radius: 10px;
  margin: 15px 0;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #dc2626, #fbbf24);
  width: 0%;
  transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.8);
}
.donation-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: bold;
  text-transform: uppercase;
}
.pulse-text {
  animation: pulseRed 2s infinite;
  color: var(--accent);
}
@keyframes pulseRed {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

/* SECONDARY EMOTIONAL BOX */
.emo-box-secondary {
  background: var(--bg-card);
  border-color: var(--glass-border);
}
.icon-gold-lg {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.emo-sub-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
}
.emo-sub-desc {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}
.qr-wrapper-sm {
  background: white;
  padding: 8px;
  border-radius: 8px;
  display: inline-block;
}
.qr-img-sm {
  width: 100px;
  height: 100px;
  mix-blend-mode: multiply;
}

/* TABLE */
.movie-table-container {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 4rem;
}
.grid-row {
  display: grid;
  grid-template-columns: 3fr 0.8fr 1.5fr 1.5fr 1.2fr 1fr;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  gap: 1rem;
}
.header-row {
  background: rgba(2, 6, 23, 0.95);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.content-row:hover {
  background: rgba(255, 255, 255, 0.02);
}
.cell-title {
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}
.badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}
.badge-new {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}
.q-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 3px;
  border: 1px solid transparent;
  display: inline-block;
}
.q-4k {
  color: var(--gold);
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.05);
}
.q-1080p {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(96, 165, 250, 0.05);
}
.q-cam {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}
.btn-get {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-get:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.load-more-wrapper {
  text-align: center;
  padding: 2rem;
}
.btn-wide {
  width: auto;
  padding: 0.8rem 2.5rem;
}

/* COMPARISON */
.comparison-section {
  margin-bottom: 4rem;
}
.comp-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.comp-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.table-scroll {
  overflow-x: auto;
}
.comp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.comp-table th,
.comp-table td {
  padding: 1rem;
  border: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.comp-table th {
  background: rgba(2, 6, 23, 0.8);
  color: white;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.th-feature {
  text-align: left;
}
.td-feature {
  text-align: left;
  font-weight: 600;
  color: #cbd5e1;
}

.comp-us-col {
  background: rgba(244, 63, 94, 0.05);
  border-left: 2px solid var(--accent) !important;
  border-right: 2px solid var(--accent) !important;
}
.comp-us-head {
  background: var(--accent) !important;
  color: white !important;
  border: 2px solid var(--accent) !important;
}
.comp-highlight {
  color: var(--accent);
  font-weight: bold;
}
.comp-check {
  color: #4ade80;
  font-weight: bold;
}
.comp-cross {
  color: #ef4444;
}

/* REALITY CHECK BOX */
.reality-check {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-top: none;
  padding: 1.5rem;
  border-radius: 0 0 1rem 1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.reality-check h3 {
  color: white;
  margin-bottom: 0.5rem;
}
.reality-check p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* FOOTER */
.main-footer {
  text-align: center;
  padding: 3rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* FLOATERS */
.float-wa {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
}
#back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s ease;
  z-index: 900;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(-5px);
}
#back-to-top:hover {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 30px rgba(244, 63, 94, 0.5);
}

/* =========================================
   MOBILE DEDICATED LAYOUT (< 900px)
   ========================================= */
@media (max-width: 900px) {
  .header-row {
    display: none;
  }
  .grid-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(2, 6, 23, 0.4);
  }
  .cell-title {
    width: 100%;
    justify-content: space-between;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .emotional-box {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
  }
  .emo-qr {
    margin-top: 1.5rem;
  }
  .nav-links {
    display: none;
  }
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  .filter-btn {
    flex-shrink: 0;
  }
  .urgent-alert {
    width: 95%;
    font-size: 0.8rem;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }

  /* --- ADJUSTED BUTTON FOR MOBILE --- */
  .btn-get {
    width: 100%;
    padding: 1rem; /* Increased Padding for easier tapping */
    margin-top: 1rem; /* More spacing from quality tags */
    font-size: 1rem; /* Larger text */
    letter-spacing: 1px;
    font-weight: 800;

    /* Make button solid color by default on mobile (better CTR) */
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
  }
}
