/* ==========================================================================
   DRONE-TELEMETRY.CSS — Aerial Drone Survey & Inspection Telemetry
   التصوير الجوي والمسح الميداني بالدرون للمشاريع الإنشائية
   ========================================================================== */

/* 1. Drone Rotor & Hover Animations */
@keyframes rotor-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes drone-hover-float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(1deg);
  }
}

@keyframes beacon-blink {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 10px #10B981;
  }
  50% {
    opacity: 0.3;
    box-shadow: none;
  }
}

@keyframes radar-sweep {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 2. Opening Drone Header for Each Project Card */
.drone-card-opening {
  background: linear-gradient(180deg, rgba(14, 22, 36, 0.95) 0%, rgba(9, 14, 24, 0.85) 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .drone-card-opening {
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  border-bottom-color: rgba(212, 175, 55, 0.35);
}

.drone-aircraft-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.drone-aircraft-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(10, 16, 26, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--showcase-gold, #D4AF37);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  animation: drone-hover-float 3s ease-in-out infinite;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drone-card:hover .drone-aircraft-avatar {
  transform: translateY(-4px) scale(1.1);
  border-color: var(--showcase-gold, #D4AF37);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
}

.drone-rotor-blade {
  transform-origin: center;
  animation: rotor-spin 0.4s linear infinite;
}

.drone-card:hover .drone-rotor-blade {
  animation-duration: 0.12s;
}

.drone-beacon-led {
  animation: beacon-blink 1.2s infinite ease-in-out;
}

.drone-aircraft-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.drone-model-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--showcase-gold-light, #E5C365);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.drone-project-tag {
  font-family: 'Alexandria', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .drone-project-tag {
  color: #0F172A;
}

.drone-telemetry-status-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

[dir="ltr"] .drone-telemetry-status-box {
  align-items: flex-start;
}

.drone-alt-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.drone-rec-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: #EF4444;
  display: flex;
  align-items: center;
  gap: 4px;
}

.drone-rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 6px #EF4444;
  animation: beacon-blink 0.8s infinite;
}

/* 3. Drone Project Bento Card */
.drone-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 26px;
  margin-bottom: 50px;
}

.drone-card {
  background: rgba(10, 16, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

[data-theme="light"] .drone-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
}

.drone-card:hover {
  transform: translateY(-5px);
  border-color: var(--showcase-gold, #D4AF37);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.2);
}

/* 4. Viewfinder Media Container with HUD Overlay */
.drone-media-container {
  position: relative;
  width: 100%;
  height: 230px;
  background: #04070C;
  overflow: hidden;
  cursor: pointer;
}

.drone-media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  filter: brightness(0.9);
}

.drone-card:hover .drone-media-container img {
  transform: scale(1.06);
  filter: brightness(1);
}

/* Flight HUD Corner Brackets */
.hud-corner-bracket {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 5;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.drone-card:hover .hud-corner-bracket {
  opacity: 1;
  width: 20px;
  height: 20px;
}

.hud-tl {
  top: 10px;
  right: 10px;
  border-top: 2px solid var(--showcase-gold, #D4AF37);
  border-right: 2px solid var(--showcase-gold, #D4AF37);
}

.hud-tr {
  top: 10px;
  left: 10px;
  border-top: 2px solid var(--showcase-gold, #D4AF37);
  border-left: 2px solid var(--showcase-gold, #D4AF37);
}

.hud-bl {
  bottom: 10px;
  right: 10px;
  border-bottom: 2px solid var(--showcase-gold, #D4AF37);
  border-right: 2px solid var(--showcase-gold, #D4AF37);
}

.hud-br {
  bottom: 10px;
  left: 10px;
  border-bottom: 2px solid var(--showcase-gold, #D4AF37);
  border-left: 2px solid var(--showcase-gold, #D4AF37);
}

/* Center Crosshair */
.hud-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  transition: all 0.3s ease;
}

.hud-crosshair::before,
.hud-crosshair::after {
  content: '';
  position: absolute;
  background: var(--showcase-gold, #D4AF37);
}

.hud-crosshair::before {
  top: 50%;
  left: -6px;
  right: -6px;
  height: 1px;
  transform: translateY(-50%);
}

.hud-crosshair::after {
  left: 50%;
  top: -6px;
  bottom: -6px;
  width: 1px;
  transform: translateX(-50%);
}

.drone-card:hover .hud-crosshair {
  border-color: var(--showcase-gold, #D4AF37);
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.4);
}

/* Central Video Play Trigger */
.play-badge-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 7, 13, 0.35);
  transition: all 0.3s ease;
  z-index: 6;
}

.drone-card:hover .play-badge-overlay {
  background: rgba(4, 7, 13, 0.15);
}

.play-button-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(14, 22, 36, 0.88);
  border: 2px solid var(--showcase-gold, #D4AF37);
  color: var(--showcase-gold, #D4AF37);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.drone-card:hover .play-button-circle {
  transform: scale(1.15);
  background: var(--showcase-gold, #D4AF37);
  color: #04070C;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.6);
}

/* Telemetry Overlay Bar at bottom of media */
.hud-telemetry-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 10, 16, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.85);
  z-index: 6;
  letter-spacing: 0.5px;
}

.hud-gps-tag {
  color: var(--showcase-gold-light, #E5C365);
}

/* 5. Drone Card Content Body */
.drone-content {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 10px;
}

.drone-mission-pill {
  align-self: flex-start;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--showcase-gold, #D4AF37);
  font-family: 'Alexandria', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 2px;
}

.drone-title {
  margin: 0;
  font-family: 'Alexandria', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.4;
}

[data-theme="light"] .drone-title {
  color: #0F172A;
}

.drone-location-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-tertiary, #64748B);
}

.drone-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text-secondary, #94A3B8);
  flex-grow: 1;
}

[data-theme="light"] .drone-desc {
  color: #475569;
}

.drone-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

[data-theme="light"] .drone-card-footer {
  border-top-color: #E2E8F0;
}

.btn-drone-action {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--showcase-gold, #D4AF37);
  font-family: 'Alexandria', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.btn-drone-action:hover {
  background: var(--showcase-gold, #D4AF37);
  color: #04070C;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

/* 6. Viewfinder HUD Modal Player Styling */
.modal-drone-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(6, 10, 16, 0.9);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--showcase-gold, #D4AF37);
  gap: 12px;
  flex-wrap: wrap;
}

.hud-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #E2E8F0;
}

/* 7. Responsive Breakpoints */
@media (max-width: 768px) {
  .drone-gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .drone-media-container {
    height: 200px;
  }
  .drone-title {
    font-size: 0.98rem;
  }
}

/* ==========================================================================
   8. IMAX Cinema Theater Screen & Multi-Media Lightbox
   تكبير شاشة تشغيل الفيديو واستعراض الصور بالكامل بدقة سينمائية
   ========================================================================== */
#mediaModal {
  max-width: min(1500px, 97vw) !important;
  width: 97vw !important;
  max-height: 96vh !important;
  border-radius: 20px !important;
  background: #05080E !important;
  border: 1px solid rgba(212, 175, 55, 0.45) !important;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.95), 0 0 50px rgba(212, 175, 55, 0.22) !important;
  overflow: hidden !important;
}

[data-theme="light"] #mediaModal {
  background: #080D15 !important;
  border-color: rgba(212, 175, 55, 0.5) !important;
}

#mediaModal::backdrop {
  background: rgba(2, 4, 8, 0.94) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
}

#mediaModal .modal-header {
  padding: 14px 24px !important;
  background: linear-gradient(180deg, rgba(14, 22, 36, 0.98) 0%, rgba(8, 12, 20, 0.95) 100%) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.28) !important;
}

#mediaModal .modal-title {
  color: #FFFFFF !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

#mediaModal .modal-body {
  padding: 16px 24px 22px !important;
  max-height: calc(96vh - 72px) !important;
  overflow-y: auto !important;
  background: radial-gradient(circle at center top, rgba(18, 28, 44, 0.55) 0%, #04060B 100%) !important;
}

#mediaModal .modal-media-wrap {
  max-height: none !important;
  height: auto !important;
  background: transparent !important;
  margin-bottom: 12px !important;
  overflow: visible !important;
}

/* Widescreen Theater Stage for 4K Video and High-Res Aerial Surveys */
.theater-stage-box {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #020408;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theater-stage-box video {
  width: 100%;
  height: auto;
  max-height: 76vh;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  display: block;
  background: #000;
  outline: none;
}

.theater-stage-box img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Floating Navigation Arrows Inside Theater Stage */
.theater-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(10, 16, 26, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #FFFFFF;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.theater-nav-arrow:hover {
  background: var(--showcase-gold, #D4AF37);
  color: #04070C;
  transform: translateY(-50%) scale(1.14);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.55);
}

.theater-nav-arrow.arrow-prev,
.theater-nav-arrow.theater-prev {
  inset-inline-start: 16px;
}

.theater-nav-arrow.arrow-next,
.theater-nav-arrow.theater-next {
  inset-inline-end: 16px;
}

/* Thumbnail Carousel Strip under the Screen */
.theater-thumbs-strip {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.theater-thumb-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(12, 20, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Alexandria', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  outline: none;
}

.theater-thumb-btn img {
  width: 36px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
}

.theater-thumb-btn:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--showcase-gold-light, #E5C365);
  transform: translateY(-2px);
}

.theater-thumb-btn.active {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--showcase-gold, #D4AF37);
  color: var(--showcase-gold-light, #E5C365);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
}
