/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  --primary-red: #dc2626;
  --primary-orange: #ea580c;
  --dark-bg: #0a0a0a;
  --darker-bg: #000000;
  --card-bg: #1a1a1a;
}

/* ========================================
   BASE STYLES
   ======================================== */
body {
  font-family: "Inter", sans-serif;
  background-color: var(--darker-bg);
  color: #fff;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.gradient-bg {
  background: linear-gradient(135deg, #450a0a 0%, #000000 70%);
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.glass-effect {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
}

.arabic-text {
  direction: rtl;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.8;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  from {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
  }
  to {
    box-shadow: 0 0 40px rgba(220, 38, 38, 0.8);
  }
}

.fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.floating-hero {
  animation: floatingHero 6s ease-in-out infinite;
}

@keyframes floatingHero {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.urgent-banner {
  background: linear-gradient(90deg, #dc2626, #991b1b, #dc2626);
  background-size: 200% 100%;
  animation: urgentGradient 3s ease infinite;
}

@keyframes urgentGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ========================================
   PARTICLE EFFECTS
   ======================================== */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle 15s linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0.7;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* ========================================
   NAVIGATION & MENU
   ======================================== */
.hamburger {
  cursor: pointer;
  width: 24px;
  height: 24px;
  transition: all 0.25s;
  position: relative;
}

.hamburger-top,
.hamburger-middle,
.hamburger-bottom {
  position: absolute;
  width: 24px;
  height: 2px;
  top: 0;
  left: 0;
  background: #fff;
  transform: rotate(0);
  transition: all 0.5s;
}

.hamburger-middle {
  transform: translateY(7px);
}

.hamburger-bottom {
  transform: translateY(14px);
}

.open .hamburger-top {
  transform: rotate(45deg) translateY(6px) translateX(6px);
}

.open .hamburger-middle {
  display: none;
}

.open .hamburger-bottom {
  transform: rotate(-45deg) translateY(6px) translateX(-6px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--dark-bg);
  z-index: 100;
  transition: right 0.4s ease;
  padding: 2rem;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
}

.mobile-menu.open {
  right: 0;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   SECTION TITLES & TYPOGRAPHY
   ======================================== */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), var(--primary-orange));
  border-radius: 2px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
  background: var(--primary-red);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  background: #b91c1c;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 0.8rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-outline:hover {
  background: white;
  color: black;
  transform: translateY(-3px);
}

/* ========================================
   CARDS & CONTAINERS
   ======================================== */
.memorial-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.memorial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(220, 38, 38, 0.2);
}

.memorial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(220, 38, 38, 0.1),
    rgba(0, 0, 0, 0.3)
  );
  z-index: 1;
}

.memorial-content {
  position: relative;
  z-index: 2;
}

.stat-card {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.15);
}

.impact-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  height: 100%;
}

.impact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(220, 38, 38, 0.2);
}

.article-card {
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  text-decoration: none;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(234, 88, 12, 0.15);
  border-color: var(--primary-orange);
}

.article-meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

.testimony-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  border-left: 4px solid var(--primary-orange);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-top: 3rem;
  transition: all 0.3s ease;
}

.testimony-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(234, 88, 12, 0.2);
}

/* ========================================
   SPECIALIZED CONTENT SECTIONS
   ======================================== */
.demand-item {
  background: rgba(55, 65, 81, 0.3);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-orange);
}

.demand-item:hover {
  background: rgba(55, 65, 81, 0.5);
  transform: translateX(5px);
}

.hashtag-pill {
  display: inline-block;
  background: rgba(55, 65, 81, 0.7);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  margin: 0.3rem;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.hashtag-pill:hover {
  background: var(--primary-red);
  transform: scale(1.05);
}

.day-marker {
  position: relative;
  padding: 1.5rem;
  border-left: 4px solid #dc2626;
  margin-bottom: 2rem;
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.1),
    rgba(0, 0, 0, 0.3)
  );
  border-radius: 0 12px 12px 0;
  transition: all 0.3s ease;
}

.day-marker:hover {
  transform: translateX(5px);
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.2),
    rgba(0, 0, 0, 0.4)
  );
}

.day-marker::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 1.5rem;
  width: 16px;
  height: 16px;
  background: #dc2626;
  border-radius: 50%;
  border: 2px solid #000;
}

.strike-status {
  background: linear-gradient(
    135deg,
    rgba(234, 88, 12, 0.2),
    rgba(234, 88, 12, 0.4)
  );
  border: 2px solid rgba(234, 88, 12, 0.5);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(234, 88, 12, 0.2);
}

.event-highlight {
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.1),
    rgba(234, 88, 12, 0.1)
  );
  border-left: 4px solid var(--primary-orange);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.qr-section {
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.1),
    rgba(0, 0, 0, 0.8)
  );
  border: 2px solid rgba(220, 38, 38, 0.3);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
}

/* ========================================
   SIEGE COUNTER
   ======================================== */
.siege-counter {
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.2),
    rgba(234, 88, 12, 0.2)
  );
  border: 2px solid rgba(220, 38, 38, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  margin: 2rem auto;
  max-width: 500px;
  backdrop-filter: blur(10px);
  animation: pulse 2s infinite;
}

.siege-days {
  font-size: 4rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.7);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.siege-label {
  font-size: 1.2rem;
  color: #fca5a5;
  font-weight: 600;
  letter-spacing: 1px;
}

.siege-date {
  color: #fed7aa;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ========================================
   TIMELINE STYLES
   ======================================== */
.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 3rem;
  border-left: 3px solid var(--primary-red);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-red);
  border: 4px solid var(--darker-bg);
}

.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-container::after {
  content: "";
  position: absolute;
  width: 6px;
  background: linear-gradient(
    to bottom,
    var(--primary-red),
    var(--primary-orange)
  );
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 10px;
}

.timeline-container .timeline-item {
  position: relative;
  width: 45%;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
  padding-left: 0;
  border-left: none;
}

.timeline-container .timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-container .timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 60px;
}

.timeline-container .timeline-item:nth-child(even) {
  left: 55%;
  padding-left: 60px;
}

.timeline-container .timeline-item::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  background: var(--primary-red);
  border: 4px solid var(--darker-bg);
  border-radius: 50%;
  top: 20px;
}

.timeline-container .timeline-item:nth-child(odd)::after {
  right: -13px;
}

.timeline-container .timeline-item:nth-child(even)::after {
  left: -13px;
}

.timeline-container .timeline-item::before {
  display: none;
}

.timeline-date {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-orange);
  margin-bottom: 10px;
}

.timeline-content {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-red);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(220, 38, 38, 0.2);
}

.timeline-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: white;
}

.timeline-content p {
  color: #d1d5db;
  line-height: 1.6;
}

.timeline-content a {
  color: #60a5fa;
  text-decoration: underline;
}

/* ========================================
   EVENT CARDS
   ======================================== */
.event-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.3);
}

.event-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.05);
}

.event-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-red);
  color: white;
  padding: 8px 15px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.event-content {
  padding: 1.5rem;
}

.event-details {
  align-items: center;
  margin-bottom: 1rem;
  color: #d1d5db;
}

.event-detail {
  display: flex;
  align-items: center;
  margin-right: 1.5rem;
  font-size: 0.9rem;
}

.event-detail i {
  margin-right: 0.5rem;
  color: var(--primary-orange);
}

.past-event {
  opacity: 0.85;
}

.past-event:hover {
  opacity: 1;
}

.past-event .event-date {
  background: #666;
}

/* ========================================
   COUNTDOWN
   ======================================== */
.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.countdown-item {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 1rem;
  min-width: 80px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.countdown-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-orange);
  line-height: 1;
}

.countdown-label {
  font-size: 0.8rem;
  color: #d1d5db;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* ========================================
   VIDEO & MEDIA
   ======================================== */
.video-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(220, 38, 38, 0.2);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-overlay:hover {
  background: rgba(0, 0, 0, 0.8);
}

.play-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  transition: all 0.3s ease;
}

.play-button:hover {
  background: var(--primary-red);
  transform: scale(1.1);
}

.warning-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(220, 38, 38, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   MODALS
   ======================================== */
.warning-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.warning-modal.active {
  opacity: 1;
  visibility: visible;
}

.warning-content {
  background: var(--card-bg);
  border: 2px solid var(--primary-red);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  margin: 1rem;
  text-align: center;
}

.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-content {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1rem;
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  background: var(--primary-red);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   LOADING & MISC
   ======================================== */
.loading-spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid var(--primary-red);
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media screen and (max-width: 768px) {
  .timeline-container::after {
    left: 31px;
  }

  .timeline-container .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-container .timeline-item:nth-child(odd),
  .timeline-container .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-container .timeline-item:nth-child(odd)::after,
  .timeline-container .timeline-item:nth-child(even)::after {
    left: 18px;
  }
}
