/* ==========================================================================
   YaquTech Solution - Luxury Editorial Legal-Tech & Enterprise Advisory Design System
   "Lex & Tech Prestige" - Ultra-Modern Asymmetric Aesthetic
   ========================================================================== */

:root {
  /* Editorial Light Mode: Warm Porcelain Slate, Titanium Silver & Imperial Gold */
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --border-subtle: #e2e8f0;
  --border-prestige: rgba(212, 175, 55, 0.35);
  
  --text-headline: #0b0f17;
  --text-editorial: #1e293b;
  --text-muted: #64748b;
  --text-gold: #b48c26;

  /* Luxury Accents */
  --gold-primary: #d4af37;
  --gold-gradient: linear-gradient(135deg, #f5e6b3 0%, #d4af37 50%, #aa771c 100%);
  --sapphire-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --obsidian-gradient: linear-gradient(180deg, #07090e 0%, #0e131f 100%);
}

.dark {
  /* Editorial Dark Mode: Ultra-Deep Obsidian Glass, Luminous Titanium & Liquid Champagne */
  --bg-canvas: #07090e;
  --bg-surface: #0b0f17;
  --bg-elevated: #101622;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-prestige: rgba(212, 175, 55, 0.3);
  
  --text-headline: #ffffff;
  --text-editorial: #e2e8f0;
  --text-muted: #94a3b8;
  --text-gold: #f3d47d;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-editorial);
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* Typography Editorial Accents */
.font-serif-display {
  font-family: 'Playfair Display', Georgia, serif;
}

.text-gold-gradient {
  background: linear-gradient(135deg, #faeed1 0%, #d4af37 45%, #b7892b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-sapphire-gradient {
  background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 50%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Prestige Glass Panels */
.glass-panel-luxury {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.03);
}

.dark .glass-panel-luxury {
  background: rgba(11, 15, 23, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Bento Grid Elevation */
.bento-card {
  position: relative;
  border-radius: 1.5rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 20px 40px -15px rgba(212, 175, 55, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
}

.dark .bento-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.1);
}

/* Luxury Interactive Tabs */
.dossier-tab-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.03) 100%);
  border-left: 3px solid #d4af37;
  color: #d4af37;
}

/* ==========================================================================
   Buttons & Interactive CTAs (High-Contrast & Ultra-Clear System)
   ========================================================================== */

/* Primary Gold Glow Action Button */
.gold-glow-btn {
  background: linear-gradient(135deg, #f5d77f 0%, #d4af37 50%, #b88d22 100%) !important;
  color: #07090e !important;
  font-weight: 700 !important;
  border: 1px solid #b88d22 !important;
  box-shadow: 0 4px 14px -2px rgba(212, 175, 55, 0.45) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.gold-glow-btn:hover {
  background: linear-gradient(135deg, #fef08a 0%, #f5d77f 50%, #d4af37 100%) !important;
  color: #000000 !important;
  border-color: #d4af37 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -2px rgba(212, 175, 55, 0.65) !important;
}

.gold-glow-btn svg, .gold-glow-btn i {
  color: #07090e !important;
}

/* Secondary Obsidian Button (Adaptive High Visibility) */
.obsidian-ghost-btn {
  background: #0b0f17 !important;
  color: #ffffff !important;
  border: 1.5px solid #1e293b !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px -1px rgba(11, 15, 23, 0.18) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.obsidian-ghost-btn:hover {
  background: #d4af37 !important;
  color: #07090e !important;
  border-color: #d4af37 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -2px rgba(212, 175, 55, 0.4) !important;
}

.dark .obsidian-ghost-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
}

.dark .obsidian-ghost-btn:hover {
  background: #d4af37 !important;
  color: #07090e !important;
  border-color: #d4af37 !important;
}

/* Card Secondary Action Button (Dossier / Details) */
.btn-card-secondary {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.btn-card-secondary:hover {
  background: #0b0f17 !important;
  color: #ffffff !important;
  border-color: #0b0f17 !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px -2px rgba(11, 15, 23, 0.25) !important;
}

.dark .btn-card-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
}

.dark .btn-card-secondary:hover {
  background: #d4af37 !important;
  color: #07090e !important;
  border-color: #d4af37 !important;
}

/* Subtle Animated Grid Background */
.bg-subtle-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #07090e;
}
::-webkit-scrollbar-thumb {
  background: #2a3447;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d4af37;
}

/* ==========================================================================
   Mobile-Only Horizontal Snap Carousel / Slider
   (Cards side-by-side with smooth touch scroll on mobile only)
   ========================================================================== */
@media (max-width: 767px) {
  .mobile-horizontal-snap {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE & Edge */
    gap: 1.25rem !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    padding-bottom: 0.75rem !important;
    margin-left: -1rem !important;
    margin-right: -1rem !important;
  }

  .mobile-horizontal-snap::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
    width: 0 !important;
    height: 0 !important;
  }

  .mobile-horizontal-snap > * {
    flex: 0 0 86% !important;
    min-width: 280px !important;
    max-width: 340px !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
  }
}

