/*
Theme Name: Dashboard SOS
Theme URI: https://example.com/dashboard-sos
Author: Cascade AI
Author URI: https://example.com
Description: قالب ووردبريس عربي لمدونة أعطال السيارات مع لوحة تحكم تفاعلية لرموز التحذير.
Version: 1.0.0
Text Domain: dashboard-sos
*/

:root {
  --bg: #050910;
  --bg-soft: #0f1826;
  --card: rgba(9, 16, 28, 0.7);
  --primary: #ffcc00;
  --accent: #ff5f1f;
  --muted: #aab4c5;
  --text: #f4f6fb;
  --danger: #ff3b3b;
  --success: #12d18e;
  --warning: #ff9f0a;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Cairo", "Noto Kufi Arabic", system-ui, sans-serif;
  background: linear-gradient(135deg, #02070f, #0d1828 50%, #1b273a);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

.site-header {
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06), transparent 45%),
    linear-gradient(120deg, rgba(5, 9, 16, 0.95), rgba(7, 13, 24, 0.85));
  position: relative;
  overflow: hidden;
  padding: 1.5rem 2rem 2.5rem;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.primary-menu a {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-hero {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cluster-image {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.cluster-image img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.cluster-hotspots {
  position: absolute;
  inset: 0;
}

.cluster-hotspot {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
}

.cluster-hotspot span {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  background: rgba(255, 204, 0, 0.7);
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.8);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.85);
    opacity: 0.9;
  }
}

.cluster-caption {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.cluster-caption h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

.cluster-caption p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.1rem;
}

.cluster-image {
  width: 100%;
}

.hero-lights-strip {
  margin-top: 2.2rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  background: rgba(5, 9, 16, 0.7);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-light {
  border: none;
  border-radius: 18px;
  padding: 0.8rem 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-light span {
  display: block;
  font-size: 2rem;
}

.hero-light:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

main#primary {
  position: relative;
  z-index: 1;
  margin-top: -80px;
  padding: 0 2rem 4rem;
}

.warning-section {
  background: var(--card);
  border-radius: 32px;
  padding: 2.5rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 40px 60px rgba(0, 0, 0, 0.35);
}

.warning-section h3 {
  margin-top: 0;
  font-size: 1.7rem;
}

.warning-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
}

.warning-light-card {
  border: none;
  border-radius: 22px;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease;
  border: 1px solid transparent;
}

.warning-light-card:hover,
.warning-light-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.15);
}

.warning-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 0.8rem;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #050910;
  font-weight: 700;
  border: 4px solid rgba(0, 0, 0, 0.4);
}

.warning-label {
  font-weight: 600;
  display: block;
}

.warning-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.article-view {
  margin-top: 2.5rem;
  background: rgba(4, 8, 16, 0.9);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.article-view h4 {
  margin-top: 0;
}

.latest-articles {
  margin-top: 3rem;
}

.latest-articles h3 {
  margin-bottom: 1.5rem;
}

.post-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.warning-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 16, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 99;
}

.warning-modal.is-visible {
  display: flex;
}

.warning-modal__content {
  max-width: 560px;
  background: #04070f;
  border-radius: 22px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.warning-modal__close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (min-width: 992px) {
  .dashboard-hero {
    gap: 2.4rem;
  }

  .cluster-image {
    border-radius: 42px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 1.2rem 1.2rem 4rem;
  }

  main#primary {
    padding: 0 1.2rem 3rem;
  }

  .warning-section {
    padding: 1.5rem;
  }

  .cluster-caption p {
    font-size: 1rem;
  }
}
