/* ==========================================================================
   Bahiry Group - WordPress-style 6 Theme Engine Stylesheet
   Complete Layout, Geometry, Typography & Structure Customizer

   Themes:
   1. theme-royal_navy (Classic Luxury Navy & Gold - Royal Framing)
   2. theme-obsidian_flame (Ultra Dark Mode & Flame Orange - Cyber HUD Geometry)
   3. theme-emerald_agro (Fresh Organic Nature & Emerald Green - Leaf Geometry)
   4. theme-maritime_ocean (Global Logistics & Azure Cargo - Industrial Manifest)
   5. theme-modern_minimal (Swiss High-Tech & Electric Cobalt - Architectural Grid)
   6. theme-sahara_gold (Heritage Sahara Bronze & Desert Amber - Moorish Arch)
   ========================================================================== */

/* Import Google Fonts for all 6 Theme Archetypes */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Barlow+Condensed:wght@500;700;800&family=Cairo:wght@400;600;700;800;900&family=JetBrains+Mono:wght@400;600;800&family=Outfit:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@400;600;700;800&family=Playfair+Display:wght@700;900&display=swap');

/* ==========================================================================
   1. Theme: Royal Navy (Classic Luxury & Royal Gold Framing)
   ========================================================================== */
body.theme-royal_navy {
  --primary-navy: #0d1b2a;
  --primary-navy-light: #1b263b;
  --accent-gold: #c59b27;
  --accent-gold-hover: #b0881e;
  --accent-emerald: #10b981;
  --text-main: #1f2937;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --border-color-dark: #cbd5e1;
  font-family: 'Cairo', 'Amiri', serif;
}

body.theme-royal_navy .hero-title,
body.theme-royal_navy .section-title,
body.theme-royal_navy .page-banner h1 {
  font-family: 'Amiri', 'Playfair Display', 'Cairo', serif;
  letter-spacing: 0.5px;
  font-weight: 700;
  position: relative;
}

body.theme-royal_navy .section-title::after {
  content: ' ❖ ';
  display: block;
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin-top: 6px;
}

body.theme-royal_navy .product-card,
body.theme-royal_navy .sector-card,
body.theme-royal_navy .cert-card,
body.theme-royal_navy .card {
  border-radius: 12px;
  border: 1px solid rgba(197, 155, 39, 0.25);
  box-shadow: 0 4px 15px rgba(13, 27, 42, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

body.theme-royal_navy .product-card:hover,
body.theme-royal_navy .sector-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
  box-shadow: 0 12px 30px rgba(197, 155, 39, 0.18);
}

body.theme-royal_navy .btn-primary,
body.theme-royal_navy .btn-gold {
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid var(--accent-gold);
  background: linear-gradient(135deg, #c59b27 0%, #b0881e 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.3);
}

body.theme-royal_navy .topbar {
  background: #09121d;
  border-bottom: 2px solid var(--accent-gold);
}

body.theme-royal_navy .brand-logo-icon {
  border-radius: 8px;
  border: 1px solid var(--accent-gold);
  background: linear-gradient(135deg, #0d1b2a, #1b263b);
  color: var(--accent-gold);
}

/* ==========================================================================
   2. Theme: Obsidian Flame (Ultra Dark Mode & Fiery Tech HUD Geometry)
   ========================================================================== */
body.theme-obsidian_flame {
  --primary-navy: #ff7a00;
  --primary-navy-light: #ff9433;
  --accent-gold: #ffa726;
  --accent-gold-hover: #ff6f00;
  --accent-emerald: #ffa726;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --bg-light: #0b0c10;
  --bg-white: #15171e;
  --border-color: #272a38;
  --border-color-dark: #3b3f54;
  background-color: #0b0c10 !important;
  color: #f3f4f6 !important;
  font-family: 'Cairo', 'JetBrains Mono', sans-serif;
}

body.theme-obsidian_flame .topbar {
  background-color: #050608;
  border-bottom: 1px solid rgba(255, 122, 0, 0.3);
}

body.theme-obsidian_flame .topbar-badge {
  background: rgba(255, 122, 0, 0.15);
  color: #ff9433;
  border: 1px solid rgba(255, 122, 0, 0.5);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}

body.theme-obsidian_flame .navbar {
  background: rgba(21, 23, 30, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #272a38;
}

body.theme-obsidian_flame .nav-link {
  color: #d1d5db;
}

body.theme-obsidian_flame .nav-link:hover,
body.theme-obsidian_flame .nav-link.active {
  color: #ff9433;
  text-shadow: 0 0 10px rgba(255, 122, 0, 0.5);
}

/* Cyber Clipped Polygon Geometry */
body.theme-obsidian_flame .product-card,
body.theme-obsidian_flame .sector-card,
body.theme-obsidian_flame .card,
body.theme-obsidian_flame .blog-card,
body.theme-obsidian_flame .faq-card {
  background-color: #15171e !important;
  border: 1px solid #272a38 !important;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  color: #f3f4f6 !important;
}

body.theme-obsidian_flame .product-card:hover,
body.theme-obsidian_flame .sector-card:hover {
  transform: translateY(-5px);
  border-color: #ff7a00 !important;
  box-shadow: 0 0 25px rgba(255, 122, 0, 0.3) !important;
}

body.theme-obsidian_flame .hero {
  background: linear-gradient(135deg, #090a0d 0%, #15171e 50%, #1f140a 100%) !important;
  border-bottom: 1px solid rgba(255, 122, 0, 0.3);
}

body.theme-obsidian_flame .hero-title {
  color: #ffffff !important;
  text-shadow: 0 0 20px rgba(255, 122, 0, 0.4);
}

body.theme-obsidian_flame .hero-stat-card {
  background: rgba(21, 23, 30, 0.8) !important;
  border: 1px solid rgba(255, 122, 0, 0.3) !important;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

body.theme-obsidian_flame .hero-stat-number {
  color: #ff9433 !important;
  font-family: 'JetBrains Mono', monospace;
}

body.theme-obsidian_flame .btn-primary,
body.theme-obsidian_flame .btn-gold {
  background: linear-gradient(135deg, #ff7a00, #ff5500) !important;
  color: #ffffff !important;
  border: 1px solid #ffa726 !important;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  box-shadow: 0 0 18px rgba(255, 122, 0, 0.45);
  font-weight: 800;
}

body.theme-obsidian_flame .btn-outline {
  border-color: #ff7a00 !important;
  color: #ff9433 !important;
  background: transparent !important;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

body.theme-obsidian_flame .badge {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
  background: rgba(255, 122, 0, 0.15) !important;
  color: #ff9433 !important;
  border: 1px solid rgba(255, 122, 0, 0.4) !important;
}

body.theme-obsidian_flame .footer {
  background: #050608 !important;
  border-top: 1px solid rgba(255, 122, 0, 0.3);
}

body.theme-obsidian_flame .form-control,
body.theme-obsidian_flame .form-select {
  background-color: #121318 !important;
  border-color: #272a38 !important;
  color: #f3f4f6 !important;
}

body.theme-obsidian_flame .form-control:focus,
body.theme-obsidian_flame .form-select:focus {
  border-color: #ff7a00 !important;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.25) !important;
}

/* ==========================================================================
   3. Theme: Emerald Agro (Fresh Organic Nature & Asymmetric Leaf Geometry)
   ========================================================================== */
body.theme-emerald_agro {
  --primary-navy: #064e3b;
  --primary-navy-light: #047857;
  --accent-gold: #10b981;
  --accent-gold-hover: #059669;
  --accent-emerald: #10b981;
  --text-main: #132a22;
  --text-muted: #4b6358;
  --bg-light: #f0fdf4;
  --bg-white: #ffffff;
  --border-color: #d1fae5;
  --border-color-dark: #a7f3d0;
  font-family: 'Outfit', 'Cairo', sans-serif;
}

body.theme-emerald_agro .topbar {
  background: #022c22;
  border-bottom: 2px solid #10b981;
}

body.theme-emerald_agro .topbar-badge {
  background: #10b981;
  color: #ffffff;
  border-radius: 30px;
  font-weight: 700;
}

body.theme-emerald_agro .hero {
  background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #065f46 100%) !important;
  position: relative;
}

/* Asymmetric Organic Leaf Geometry */
body.theme-emerald_agro .product-card,
body.theme-emerald_agro .sector-card,
body.theme-emerald_agro .blog-card,
body.theme-emerald_agro .cert-card {
  border-radius: 28px 6px 28px 6px !important;
  border: 1px solid #a7f3d0 !important;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(6, 78, 59, 0.06);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.theme-emerald_agro .product-card:hover,
body.theme-emerald_agro .sector-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: #10b981 !important;
  box-shadow: 0 16px 32px rgba(16, 185, 129, 0.2) !important;
  border-radius: 6px 28px 6px 28px !important;
}

body.theme-emerald_agro .card {
  border-radius: 20px !important;
  border: 1px solid #d1fae5;
}

body.theme-emerald_agro .btn-primary,
body.theme-emerald_agro .btn-gold {
  border-radius: 30px !important;
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  border: none;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
  font-weight: 700;
  padding-left: 26px;
  padding-right: 26px;
}

body.theme-emerald_agro .btn-outline {
  border-radius: 30px !important;
  border: 2px solid #10b981 !important;
  color: #065f46 !important;
}

body.theme-emerald_agro .badge {
  border-radius: 20px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

body.theme-emerald_agro .brand-logo-icon {
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #047857);
}

body.theme-emerald_agro .footer {
  background: #022c22 !important;
  border-top: 4px solid #10b981;
}

/* ==========================================================================
   4. Theme: Maritime Ocean (Industrial Logistics, Harbor Cargo & Barcode Badges)
   ========================================================================== */
body.theme-maritime_ocean {
  --primary-navy: #003049;
  --primary-navy-light: #0284c7;
  --accent-gold: #38bdf8;
  --accent-gold-hover: #0284c7;
  --accent-emerald: #0ea5e9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --bg-light: #f0f9ff;
  --bg-white: #ffffff;
  --border-color: #bae6fd;
  --border-color-dark: #7dd3fc;
  font-family: 'Cairo', 'Barlow Condensed', sans-serif;
}

body.theme-maritime_ocean .hero-title,
body.theme-maritime_ocean .section-title {
  font-family: 'Barlow Condensed', 'Cairo', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
}

body.theme-maritime_ocean .topbar {
  background: #001f30;
  border-bottom: 2px solid #0284c7;
}

/* Industrial Cargo Container Aesthetic - Sharp 4px Corners & Manifest Ribs */
body.theme-maritime_ocean .product-card,
body.theme-maritime_ocean .sector-card,
body.theme-maritime_ocean .card,
body.theme-maritime_ocean .blog-card {
  border-radius: 4px !important;
  border: 2px solid #bae6fd !important;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
  position: relative;
}

body.theme-maritime_ocean .product-card::before {
  content: 'PORT CONTAINER MANIFEST';
  display: block;
  background: #0284c7;
  color: #ffffff;
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 8px;
  letter-spacing: 1px;
  font-weight: bold;
}

body.theme-maritime_ocean .product-card:hover,
body.theme-maritime_ocean .sector-card:hover {
  transform: translateY(-4px);
  border-color: #0284c7 !important;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.22) !important;
}

body.theme-maritime_ocean .btn-primary,
body.theme-maritime_ocean .btn-gold {
  border-radius: 4px !important;
  background: linear-gradient(135deg, #003049, #0284c7) !important;
  color: #ffffff !important;
  border: 1px solid #38bdf8;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 48, 73, 0.25);
}

body.theme-maritime_ocean .btn-outline {
  border-radius: 4px !important;
  border: 2px solid #0284c7 !important;
  color: #003049 !important;
  font-weight: 700;
}

body.theme-maritime_ocean .badge {
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
  font-weight: 700;
}

body.theme-maritime_ocean .hero {
  background: linear-gradient(135deg, #001f30 0%, #003049 60%, #0284c7 100%) !important;
}

body.theme-maritime_ocean .footer {
  background: #001724 !important;
  border-top: 3px solid #0284c7;
}

/* ==========================================================================
   5. Theme: Modern Minimal (Swiss High-Tech, Crisp Flat Architectural Grid)
   ========================================================================== */
body.theme-modern_minimal {
  --primary-navy: #18181b;
  --primary-navy-light: #2563eb;
  --accent-gold: #2563eb;
  --accent-gold-hover: #1d4ed8;
  --accent-emerald: #2563eb;
  --text-main: #09090b;
  --text-muted: #52525b;
  --bg-light: #fafafa;
  --bg-white: #ffffff;
  --border-color: #e4e4e7;
  --border-color-dark: #d4d4d8;
  font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif;
  letter-spacing: -0.2px;
}

body.theme-modern_minimal .topbar {
  background: #09090b;
  border-bottom: 1px solid #27272a;
}

body.theme-modern_minimal .topbar-badge {
  background: #2563eb;
  color: #ffffff;
  border-radius: 2px;
  font-weight: 600;
}

body.theme-modern_minimal .navbar {
  background: #ffffff;
  border-bottom: 1px solid #e4e4e7;
}

/* Ultra Crisp Architectural Grid - Zero Shadows & Clean Dividers */
body.theme-modern_minimal .product-card,
body.theme-modern_minimal .sector-card,
body.theme-modern_minimal .card,
body.theme-modern_minimal .blog-card {
  border-radius: 0px !important;
  border: 1px solid #e4e4e7 !important;
  box-shadow: none !important;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

body.theme-modern_minimal .product-card:hover,
body.theme-modern_minimal .sector-card:hover {
  border-color: #2563eb !important;
  transform: none !important;
}

body.theme-modern_minimal .hero {
  background: #09090b !important;
  border-bottom: 1px solid #27272a;
}

body.theme-modern_minimal .hero-stat-card {
  border-radius: 0px !important;
  border: 1px solid #27272a !important;
  background: #18181b !important;
}

body.theme-modern_minimal .btn-primary,
body.theme-modern_minimal .btn-gold {
  border-radius: 0px !important;
  background: #2563eb !important;
  color: #ffffff !important;
  border: none;
  font-weight: 600;
  box-shadow: none !important;
}

body.theme-modern_minimal .btn-outline {
  border-radius: 0px !important;
  border: 1px solid #09090b !important;
  color: #09090b !important;
  background: transparent;
}

body.theme-modern_minimal .badge {
  border-radius: 0px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-weight: 600;
}

body.theme-modern_minimal .footer {
  background: #09090b !important;
  border-top: 1px solid #27272a;
}

/* ==========================================================================
   6. Theme: Sahara Gold (Desert Amber, Moorish Arch & Ancient Caravan Trade)
   ========================================================================== */
body.theme-sahara_gold {
  --primary-navy: #78350f;
  --primary-navy-light: #92400e;
  --accent-gold: #d97706;
  --accent-gold-hover: #b45309;
  --accent-emerald: #d97706;
  --text-main: #292524;
  --text-muted: #57534e;
  --bg-light: #fefce8;
  --bg-white: #fffdf5;
  --border-color: #fde68a;
  --border-color-dark: #fcd34d;
  background-color: #fefce8 !important;
  font-family: 'Amiri', 'Cairo', serif;
}

body.theme-sahara_gold .hero-title,
body.theme-sahara_gold .section-title,
body.theme-sahara_gold .page-banner h1 {
  font-family: 'Amiri', serif;
  font-weight: 700;
}

body.theme-sahara_gold .topbar {
  background: #451a03;
  border-bottom: 2px solid #d97706;
}

body.theme-sahara_gold .topbar-badge {
  background: rgba(217, 119, 6, 0.2);
  color: #fef3c7;
  border: 1px solid #d97706;
  border-radius: 16px;
}

/* Moorish & Andalusian Arch Top Headers */
body.theme-sahara_gold .product-card,
body.theme-sahara_gold .sector-card,
body.theme-sahara_gold .cert-card,
body.theme-sahara_gold .blog-card {
  border-radius: 24px 24px 8px 8px !important;
  border: 1px solid #fde68a !important;
  background: #fffdf5;
  box-shadow: 0 4px 16px rgba(120, 53, 15, 0.08);
  transition: all 0.3s ease;
}

body.theme-sahara_gold .product-card:hover,
body.theme-sahara_gold .sector-card:hover {
  transform: translateY(-6px);
  border-color: #d97706 !important;
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.22) !important;
}

body.theme-sahara_gold .hero {
  background: linear-gradient(135deg, #451a03 0%, #78350f 50%, #b45309 100%) !important;
  border-bottom: 3px solid #d97706;
}

body.theme-sahara_gold .hero-stat-card {
  border-radius: 16px 16px 6px 6px !important;
  background: rgba(69, 26, 3, 0.7) !important;
  border: 1px solid rgba(217, 119, 6, 0.4) !important;
}

body.theme-sahara_gold .btn-primary,
body.theme-sahara_gold .btn-gold {
  border-radius: 20px !important;
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  color: #ffffff !important;
  border: 1px solid #fcd34d;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

body.theme-sahara_gold .btn-outline {
  border-radius: 20px !important;
  border: 2px solid #d97706 !important;
  color: #78350f !important;
  font-weight: 700;
}

body.theme-sahara_gold .badge {
  border-radius: 12px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-weight: 700;
}

body.theme-sahara_gold .footer {
  background: #451a03 !important;
  border-top: 4px solid #d97706;
}

/* ==========================================================================
   Live Theme Floating Preview Bar
   ========================================================================== */
.theme-preview-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 40px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  font-weight: 600;
  animation: slideUpPreview 0.4s ease forwards;
}

.theme-preview-banner .preview-theme-badge {
  background: var(--accent-gold);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.85rem;
}

.theme-preview-banner .btn-preview-action {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.theme-preview-banner .btn-preview-action:hover {
  transform: scale(1.05);
}

@keyframes slideUpPreview {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
