/* ==========================================================
========= Omnicom QA Tools Suite - SHARED STYLES CSS ========
========================================================== */

/* ====================== VARIABLES ====================== */
:root {
/* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

/* Default theme */
    --bg-primary: #1A1D21;
    --bg-secondary: #24272b;
    --border-color: #3a3d41;
    --card-bg: #2a2d31;
    --hover-bg: #33363a;
    --text-primary: #FFFFFF;
    --text-secondary: #a0a0a0;
    
/* Gradients */
    --gradient-primary: linear-gradient(90deg, #30BEF4 0%, #3DE5B4 100%);
    --gradient-accent: linear-gradient(90deg, #3CE0E1 0%, #3DE5B4 100%);

/* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5);

/* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

/* Special colors */
    --primary-color: #3CE0E1;
    --secondary-color: #30BEF4;
    --accent-color: #3DE5B4;
    --success-color: #3DE5B4;
    --warning-color: #f59e0b;
    --error-color: #FA8787;
    --alert-color: #FA8787;
    --info-color: #3CE0E1;
    
/* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
    
/* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* LIGHT THEME VARIANT */
[data-theme="light"] {
    --bg-primary: #FFFFFF;
    --bg-secondary: #f8f9fa;
    --card-bg: #a0a0a0;
    --text-primary: #1A1D21;
    --text-secondary: #24272b;
    --border-color: #e5e7eb;
    --hover-bg: #cecece;
    --hover-bg-light: #a0a0a0;
    
/* Adjusted shadows for light theme */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* ===================== RESET & BASE ==================== */
/* Calculating border */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Smoothes scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Basic body CSS */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color var(--transition-base), color var(--transition-base);
}
/* ===================== TYPOGRAPHY ====================== */
/* Heading formatting */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}
/* Heading sizing */
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* LIGHT THEME VARIANT HEADING STROKES */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    text-shadow: 0 0 1px rgba(26, 29, 33, 0.1);
}

/* Paragraph formatting */
p {
    margin-bottom: var(--spacing-md);
}

/* Link formatting */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Link hover formatting */
a:hover {
    color: var(--secondary-color);
}

/* Monotype formatting */
code {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.9em;
    padding: 0.2em 0.4em;
}

/* ======================== HEADER ======================= */
/* Top bar */
.header-top {
    align-items: center;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    height: 60px;
    justify-content: space-between;
    left: 0;
    padding: 0.5rem 2rem;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
}

/* Header title */
.site-title {
    background: var(--gradient-primary);
    background-clip: text;
    letter-spacing: 2px;
    font-family: 'Orbitron', 'Trebuchet MS', 'Lucida Sans Unicode', sans-serif;
    font-size: clamp(2.5rem, 3vw, 1.75rem);
    font-weight: 1000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* LIGHT THEME VARIANT HEADER TITLE */
[data-theme="light"] .site-title {
    background: none;
    color: #000;
    text-shadow: none;
    -webkit-text-fill-color: #000;
}

/* Header controls */
.header-controls {
    align-items: center;
    display: flex;
    gap: 1rem;
}

/* Theme toggle */
.theme-toggle {
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    font-size: 1.25rem;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

/* ==================== NAVIGATION BAR =================== */
/* Nav bar */
.header-nav {
    align-items: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
    height: 40px;
    left: 0;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0.75rem 2rem;
    position: fixed;
    right: 0;
    top: 60px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 999;
}

.header-nav.nav-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
}

.nav-link {
    align-items: center;
    border-bottom: 2px solid transparent;
    border-radius: 6px;
    color: var(--text-secondary);
    display: flex;
    font-size: 0.95rem;
    font-weight: 500;
    gap: 0.25rem;
    padding: .5rem .5rem;
    position: relative;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-color);
  background: var(--hover-bg);
}

.nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-link .nav-arrow {
  font-size: 0.7rem;
  margin-left: 0.25rem;
}

/* Nav Dropdowns */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1002;
  margin-top: 0.5rem;
}

.nav-dropdown .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown .dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.nav-dropdown .dropdown-menu a:hover {
  background: var(--hover-bg);
  color: var(--primary-color);
}

.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* =================== DROPDOWN SHARED =================== */
/* Dropdowns */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-family: inherit;
    padding: 1rem 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.dropdown-toggle:hover {
    color: var(--text-primary);
    background: var(--hover-bg);
}

.dropdown-toggle.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform var(--transition-base);
    margin-left: 0.25rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: -2px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.nav-dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
    border-left-color: var(--primary-color);
}

.dropdown-item.active {
    background: var(--gradient-primary);
    color: var(--text-primary);
    font-weight: 600;
    border-left-color: var(--accent-color);
}

/* LIGHT THEME DROPDOWN ADJUSTMENTS */
[data-theme="light"] .dropdown-menu {
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .dropdown-item:hover {
    background: var(--hover-bg);
}

[data-theme="light"] .dropdown-item.active {
    text-shadow: 
        -1px -1px 0 rgba(255, 255, 255, 0.5),
        1px -1px 0 rgba(255, 255, 255, 0.5),
        -1px 1px 0 rgba(255, 255, 255, 0.5),
        1px 1px 0 rgba(255, 255, 255, 0.5);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    margin: 0 auto;
    margin-top: 110px;
    max-width: 1400px;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero {
    text-align:center;
    margin-bottom: 3rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}