/**
 * Scrutiny Global — Enterprise Research Intelligence Platform CSS
 * Theme: Cybernetic Slate & Electric Cyan Custom Design Tokens
 * Author: Antigravity (Google DeepMind Team)
 * Version: 2.0 (Premium consulting aesthetics)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Refactored HSL Tailored for Maximum Contrast & Readability */
  --bg-dark-primary: #080b10;      /* Graphite canvas background */
  --bg-dark-surface: #0d1321;      /* Elevated Slate card container background */
  --bg-dark-surface-elevated: #131b2e; /* Dynamic elevated surface for active states */
  --color-cyan: #00f0ff;           /* Cyber glow cyan accent */
  --color-cobalt: #0b56ff;         /* Action cobalt primary */
  --color-white: #ffffff;          /* Core typography title white */
  
  /* Text Colors - Strictly WCAG AA/AAA Compliant on Dark Canvas */
  --text-primary: #ffffff;         /* Dominating white for headers and active text */
  --text-secondary: #e2e8f0;       /* Highly readable slate-white for body paragraphs & FAQs */
  --text-muted: #94a3b8;           /* Standard readable gray for secondary tags & subtext */
  
  /* Gradients */
  --gradient-cyber: linear-gradient(135deg, var(--color-cobalt) 0%, var(--color-cyan) 100%);
  --gradient-dark: linear-gradient(180deg, var(--bg-dark-primary) 0%, var(--bg-dark-surface) 100%);
  --gradient-surface: linear-gradient(180deg, rgba(13, 19, 33, 0.95) 0%, rgba(8, 11, 16, 0.98) 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.1) 0%, rgba(11, 86, 255, 0) 80%);

  /* UI Tokens */
  --glass-bg: rgba(13, 19, 33, 0.85);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(0, 240, 255, 0.45);
  --shadow-premium: 0 10px 40px -10px rgba(0, 0, 0, 0.7);
  
  /* Fonts */
  --font-headline: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Global Reset & Base */
body.enterprise-theme {
  background-color: var(--bg-dark-primary);
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Scrollbar styling */
body.enterprise-theme::-webkit-scrollbar {
  width: 10px;
}
body.enterprise-theme::-webkit-scrollbar-track {
  background: var(--bg-dark-primary);
}
body.enterprise-theme::-webkit-scrollbar-thumb {
  background: var(--bg-dark-surface);
  border: 2px solid var(--bg-dark-primary);
  border-radius: 5px;
}
body.enterprise-theme::-webkit-scrollbar-thumb:hover {
  background: var(--color-cyan);
}

/* Typography Scale & Absolute Contrast Hierarchy */
body.enterprise-theme h1, 
body.enterprise-theme h2, 
body.enterprise-theme h3, 
body.enterprise-theme h4, 
body.enterprise-theme h5 {
  font-family: var(--font-headline);
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

body.enterprise-theme p {
  color: var(--text-secondary); /* High contrast gray-white */
  font-size: 1.025rem;
  font-weight: 400;
  line-height: 1.75; /* Improved readability line-height */
}

/* Muted tags and labels */
.text-muted-custom {
  color: var(--text-muted) !important;
}

/* Cyber Glow Accents - Controlled, non-blurring text shadow */
.glow-text-cyan {
  color: var(--color-cyan) !important;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.35);
}

.gradient-text {
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Glassmorphic Components */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  box-shadow: var(--shadow-premium);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 45px 0 rgba(0, 240, 255, 0.15);
  transform: translateY(-4px);
}


/* Scan line animation overlay */
.glass-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(0, 240, 255, 0.03) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  transition: 0.8s;
  pointer-events: none;
  opacity: 0;
}

.glass-card:hover::after {
  opacity: 1;
  animation: scan-line 3s linear infinite;
}

/* Buttons & CTAs */
.glow-button {
  background: var(--gradient-cyber);
  color: var(--bg-dark-primary) !important;
  font-family: var(--font-headline);
  font-weight: 600;
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  transition: all 0.3s ease;
}

.glow-button:hover {
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
  transform: scale(1.03);
}

.glow-button i {
  transition: transform 0.3s ease;
}

.glow-button:hover i {
  transform: translateX(4px);
}

/* Secondary Outline Button */
.outline-button {
  background: transparent;
  color: var(--color-white) !important;
  font-family: var(--font-headline);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 28px;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.outline-button:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-cyan);
  color: var(--color-cyan) !important;
}

/* Header/Navigation Styles */
.enterprise-navbar {
  background: rgba(8, 11, 16, 0.8) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.4s ease;
}

.enterprise-navbar .nav-link {
  color: var(--color-silver) !important;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.enterprise-navbar .nav-link:hover,
.enterprise-navbar .nav-link.active {
  color: var(--color-cyan) !important;
}

.enterprise-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-cyber);
  transition: width 0.3s ease;
}

.enterprise-navbar .nav-link:hover::after,
.enterprise-navbar .nav-link.active::after {
  width: 100%;
}

/* Hero Command Center Layout */
.hero-command-center {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background-image: var(--gradient-glow);
  background-position: center;
  background-size: cover;
}

.hero-command-center::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(11, 86, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Real-Time Dashboard KPI Cards */
.kpi-ticker {
  background: rgba(13, 19, 31, 0.7);
  border-left: 3px solid var(--color-cyan);
  padding: 16px;
  border-radius: 4px 12px 12px 4px;
}

.kpi-value {
  font-size: 2rem;
  font-family: var(--font-headline);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
}

.kpi-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-silver);
  margin-top: 4px;
}

/* Pulsing SVG Map nodes */
.pulsing-node {
  animation: pulse-glow 2s infinite ease-in-out;
  transform-origin: center;
}

/* Interactive Feasibility Est. Slider */
.cyber-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-dark-primary);
  outline: none;
  margin: 15px 0;
}

.cyber-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--color-cyan);
  transition: transform 0.1s ease;
}

.cyber-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Data grid tables */
.enterprise-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.enterprise-table th {
  color: var(--color-white);
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 2px solid var(--glass-border);
}

.enterprise-table td {
  background: rgba(13, 19, 31, 0.4);
  padding: 16px;
  color: var(--color-silver);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.enterprise-table tr td:first-child {
  border-left: 1px solid var(--glass-border);
  border-radius: 8px 0 0 8px;
}

.enterprise-table tr td:last-child {
  border-right: 1px solid var(--glass-border);
  border-radius: 0 8px 8px 0;
}

.enterprise-table tr:hover td {
  background: rgba(13, 19, 31, 0.8);
  border-color: rgba(0, 240, 255, 0.2);
}

/* Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.active {
  background: rgba(0, 240, 255, 0.1);
  color: var(--color-cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.status-badge.high {
  background: rgba(11, 86, 255, 0.1);
  color: #a4c2ff;
  border: 1px solid rgba(11, 86, 255, 0.25);
}

/* Animations */
@keyframes pulse-glow {
  0% {
    r: 4px;
    opacity: 0.3;
  }
  50% {
    r: 10px;
    opacity: 0.9;
  }
  100% {
    r: 4px;
    opacity: 0.3;
  }
}

@keyframes scan-line {
  0% {
    transform: translate(-30%, -30%) rotate(30deg);
  }
  100% {
    transform: translate(30%, 30%) rotate(30deg);
  }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.floating-element {
  animation: float 6s ease-in-out infinite;
}

/* Compliance Badges Area */
.certification-badge {
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 12px;
  background: rgba(8, 11, 16, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.certification-badge:hover {
  border-color: var(--color-cyan);
  background: rgba(13, 19, 31, 0.5);
}

/* ==========================================================================
   🏛️ ACCORDION & FAQ READABILITY OVERHAUL (WCAG AA/AAA COMPLIANT)
   ========================================================================== */

/* Overriding Bootstrap default accordion styles for premium dark mode */
body.enterprise-theme .accordion-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px !important;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover effect on accordion item */
body.enterprise-theme .accordion-item:hover {
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Accordion open state - Subtle elevation & soft border illumination */
body.enterprise-theme .accordion-item:has(.show),
body.enterprise-theme .accordion-item.active-item {
  background: var(--bg-dark-surface-elevated);
  border-color: var(--color-cyan);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.12);
  transform: translateY(-2px);
}

body.enterprise-theme .accordion-button {
  background: transparent;
  color: var(--color-white) !important;
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 20px 24px;
  border: none;
  box-shadow: none !important;
  transition: all 0.3s ease;
}

body.enterprise-theme .accordion-button:not(.collapsed) {
  color: var(--color-cyan) !important;
  background: rgba(0, 240, 255, 0.03);
}

body.enterprise-theme .accordion-button::after {
  filter: invert(1) hue-rotate(180deg) brightness(1.5); /* Make arrow highly visible and cyan-tinted */
  transition: transform 0.3s ease;
}

body.enterprise-theme .accordion-button:focus {
  border-color: var(--color-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15) !important;
}

body.enterprise-theme .accordion-body {
  padding: 24px;
  color: var(--text-secondary) !important; /* Brighter high contrast slate-white */
  font-size: 1.05rem;
  line-height: 1.85; /* Accessible, highly scannable line height */
  border-top: 1px solid var(--glass-border);
  background: rgba(8, 11, 16, 0.2);
}

/* ==========================================================================
   📰 PREMIUM EDITORIAL INSIGHTS & BLOG SYSTEM STYLING
   ========================================================================== */

/* Reading progress bar */
.blog-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--gradient-cyber);
  width: 0;
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Featured Insight Hero Banner */
.blog-featured-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--glass-border);
  margin-bottom: 48px;
}

.blog-hero-overlay {
  background: linear-gradient(180deg, rgba(8, 11, 16, 0.3) 0%, rgba(8, 11, 16, 0.95) 100%);
  padding: 60px 40px;
}

/* Editorial Content Cards */
.blog-editorial-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow-premium);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-editorial-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.12);
  transform: translateY(-5px);
}

.blog-card-image-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.blog-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.blog-editorial-card:hover .blog-card-image-wrapper img {
  transform: scale(1.06);
}

.blog-card-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(8, 11, 16, 0) 40%, rgba(8, 11, 16, 0.8) 100%);
  pointer-events: none;
}

.blog-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(13, 19, 33, 0.85);
  color: var(--color-cyan);
  border: 1px solid var(--color-cyan);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.blog-bookmark-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(13, 19, 33, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-bookmark-btn:hover {
  background: var(--color-cyan);
  color: var(--bg-dark-primary);
  border-color: var(--color-cyan);
}

.blog-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
}

.blog-card-title a {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card-title a:hover {
  color: var(--color-cyan);
}

.blog-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Category filter buttons */
.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-filter-btn {
  background: rgba(13, 19, 33, 0.5);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
  background: var(--color-cyan);
  border-color: var(--color-cyan);
  color: var(--bg-dark-primary) !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* Author Profile Summary */
.blog-author-strip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-cyber);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Downloadable Reports Sidebar item */
.blog-report-panel {
  background: linear-gradient(180deg, rgba(11, 86, 255, 0.05) 0%, rgba(0, 240, 255, 0.05) 100%);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 16px;
  padding: 24px;
}

/* Trending Insights Lists */
.blog-trending-item {
  display: flex;
  align-items: start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 16px;
}

.blog-trending-number {
  font-family: var(--font-headline);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--glass-border-hover);
  line-height: 1;
}

.blog-trending-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.blog-trending-title a {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-trending-title a:hover {
  color: var(--color-cyan);
}

