/* ==========================================================
   Dark Cyber X — Router Chef | الهوية البصرية والموقع الرسمي
   تصميم عربي متجاوب RTL - Dark / Cyberpunk / Clean Theme
   ========================================================== */

:root {
  --bg-deep: #0B0F19;
  --bg-card: #121826;
  --bg-card-hover: #1A2234;
  --bg-input: #0F172A;
  --border-color: #1E293B;
  --border-highlight: #334155;
  --accent-cyan: #00FFCC;
  --accent-cyan-dim: #00B4D8;
  --accent-blue: #3B82F6;
  --success-green: #10B981;
  --warning-orange: #F59E0B;
  --danger-red: #EF4444;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --container-max: 1160px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
  line-height: 1.7;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-deep);
  overflow-x: hidden;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================
   Header & Navbar
   ========================================================== */
.site-header {
  background-color: rgba(18, 24, 38, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-badge {
  background-color: var(--bg-input);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.brand-name span {
  color: var(--accent-cyan);
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-cyan);
  background-color: rgba(0, 255, 204, 0.08);
}

.nav-cta {
  background: var(--accent-cyan) !important;
  color: var(--bg-deep) !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.25);
}

.nav-cta:hover {
  background: #38EF7D !important;
  color: var(--bg-deep) !important;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 20px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================
   Hero Section
   ========================================================== */
.hero-section {
  padding: 60px 0 40px;
  background: radial-gradient(circle at 50% 20%, rgba(0, 255, 204, 0.06) 0%, transparent 70%);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-highlight);
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-title .highlight {
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}

.hero-lead {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 30px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.btn-primary {
  background-color: var(--accent-cyan);
  color: var(--bg-deep);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.35);
}

.btn-primary:hover {
  background-color: #38EF7D;
  color: var(--bg-deep);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: var(--bg-card);
  border-color: var(--border-highlight);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background-color: var(--bg-card-hover);
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

.hero-badges span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================
   Ad Banner Slots
   ========================================================== */
.ad-slot-wrapper {
  margin: 25px 0;
  text-align: center;
  display: flex;
  justify-content: center;
}

.ad-slot {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-placeholder-box {
  width: 100%;
  background: linear-gradient(135deg, #0d1424, #121826);
  border: 1px dashed var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  transition: border-color 0.2s;
}

.ad-placeholder-box:hover {
  border-color: var(--accent-cyan);
}

.ad-placeholder-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ad-tag {
  background-color: var(--bg-input);
  color: var(--accent-cyan);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.ad-desc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.ad-desc-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.ad-cta-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  color: var(--accent-cyan);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.ad-cta-btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-deep);
}

/* ==========================================================
   Features Grid
   ========================================================== */
.section {
  padding: 50px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.section-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.25s ease;
}

.feature-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  background-color: var(--bg-card-hover);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================
   Article & Content Section (Real Comprehensive Text)
   ========================================================== */
.article-section {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 50px 0;
}

.article-content {
  max-width: 860px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-top: 25px;
  margin-bottom: 10px;
}

.article-content p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.article-content ul, .article-content ol {
  margin: 15px 30px 20px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.callout-box {
  background-color: var(--bg-input);
  border-right: 4px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 25px 0;
}

.callout-box.warning {
  border-right-color: var(--warning-orange);
}

.callout-box.security {
  border-right-color: var(--success-green);
}

.callout-box h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.callout-box p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* ==========================================================
   Card Layouts for Other Pages (About, Privacy, etc.)
   ========================================================== */
.page-header {
  padding: 40px 0 25px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(circle at 50% 10%, rgba(0, 255, 204, 0.04) 0%, transparent 60%);
}

.page-header h1 {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 15px;
  color: var(--text-secondary);
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  margin-bottom: 25px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.contact-item {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
}

.contact-item .icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.contact-item h4 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  margin-top: auto;
  background-color: #070A12;
  border-top: 1px solid var(--border-color);
  padding: 40px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-col ul li a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    flex-direction: column;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-title {
    font-size: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}
