/**
 * PCBuildMate Theme Variables
 * Dark/Light mode CSS custom properties
 */

/* Dark Theme (Default) - PCPartPicker Style */
.dark,
html.dark {
    --bg-primary: #1a1a1a;
    --bg-secondary: #242424;
    --bg-tertiary: #2d2d2d;
    --bg-modal: #1e1e1e;
    --bg-hover: #333333;
    --bg-overlay: rgba(0, 0, 0, 0.75);
    --bg-secondary-rgb: 36, 36, 36;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    /* Brand Colors - Logo Blue Based */
    --brand-primary: #3077A6;
    --brand-primary-light: #4a9fd4;
    --brand-primary-dark: #1e5a82;
    --brand-primary-rgb: 48, 119, 166;
    --brand-secondary: #1e40af;
    --brand-secondary-light: #3b82f6;
    --brand-secondary-rgb: 30, 64, 175;
    --accent: #4a9fd4;
    --accent-hover: #3077A6;
    --accent-light: rgba(74, 159, 212, 0.15);
    --accent-rgb: 74, 159, 212;
    --accent-secondary: #1e40af;
    --accent-secondary-hover: #1e3a8a;
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    --success: #4ade80;
    --success-rgb: 74, 222, 128;
    --success-bg: rgba(74, 222, 128, 0.1);
    --warning: #fbbf24;
    --warning-rgb: 251, 191, 36;
    --warning-bg: rgba(251, 191, 36, 0.1);
    --error: #f87171;
    --error-rgb: 248, 113, 113;
    --error-bg: rgba(248, 113, 113, 0.1);
    --info: #38b6ff;
    --info-rgb: 56, 182, 255;
    --info-bg: rgba(56, 182, 255, 0.1);
    --border: #333333;
    --border-light: #404040;
    --border-primary: var(--bg-tertiary);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);

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

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Light Theme */
.light,
html.light {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #e8e8e8;
    --bg-modal: #ffffff;
    --bg-hover: #f0f0f0;
    --bg-overlay: rgba(255, 255, 255, 0.85);
    --bg-secondary-rgb: 245, 245, 245;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    /* Brand Colors - Logo Blue Based */
    --brand-primary: #3077A6;
    --brand-primary-light: #4a9fd4;
    --brand-primary-dark: #1e5a82;
    --brand-primary-rgb: 48, 119, 166;
    --brand-secondary: #1e40af;
    --brand-secondary-light: #3b82f6;
    --brand-secondary-rgb: 30, 64, 175;
    --accent: #3077A6;
    --accent-hover: #1e5a82;
    --accent-light: rgba(48, 119, 166, 0.1);
    --accent-rgb: 48, 119, 166;
    --accent-secondary: #1e40af;
    --accent-secondary-hover: #1e3a8a;
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    --success: #22c55e;
    --success-rgb: 34, 197, 94;
    --success-bg: rgba(34, 197, 94, 0.1);
    --warning: #f59e0b;
    --warning-rgb: 245, 158, 11;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --error: #ef4444;
    --error-rgb: 239, 68, 68;
    --error-bg: rgba(239, 68, 68, 0.1);
    --info: #0284c7;
    --info-rgb: 2, 132, 199;
    --info-bg: rgba(2, 132, 199, 0.1);
    --border: #e0e0e0;
    --border-light: #d0d0d0;
    --border-primary: var(--bg-tertiary);
    --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 25px rgba(0, 0, 0, 0.1);

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

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Default to light (Light theme as default) */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #e8e8e8;
    --bg-modal: #ffffff;
    --bg-hover: #f0f0f0;
    --bg-overlay: rgba(255, 255, 255, 0.85);
    --bg-secondary-rgb: 245, 245, 245;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    /* Brand Colors - Logo Blue Based */
    --brand-primary: #3077A6;
    --brand-primary-light: #4a9fd4;
    --brand-primary-dark: #1e5a82;
    --brand-primary-rgb: 48, 119, 166;
    --brand-secondary: #1e40af;
    --brand-secondary-light: #3b82f6;
    --brand-secondary-rgb: 30, 64, 175;
    --accent: #3077A6;
    --accent-hover: #1e5a82;
    --accent-light: rgba(48, 119, 166, 0.1);
    --accent-rgb: 48, 119, 166;
    --accent-secondary: #1e40af;
    --accent-secondary-hover: #1e3a8a;
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    --success: #22c55e;
    --success-rgb: 34, 197, 94;
    --success-bg: rgba(34, 197, 94, 0.1);
    --warning: #f59e0b;
    --warning-rgb: 245, 158, 11;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --error: #ef4444;
    --error-rgb: 239, 68, 68;
    --error-bg: rgba(239, 68, 68, 0.1);
    --info: #0284c7;
    --info-rgb: 2, 132, 199;
    --info-bg: rgba(2, 132, 199, 0.1);
    --border: #e0e0e0;
    --border-light: #d0d0d0;
    --border-primary: var(--bg-tertiary);
    --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 25px rgba(0, 0, 0, 0.1);

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

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Alpine.js cloak - hide elements until Alpine initializes */
[x-cloak] {
    display: none !important;
}

/* Base body styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #ffffff !important;
    margin: 0;
    padding: 0;
}

html.dark {
    background-color: #1a1a1a !important;
}

html.light {
    background-color: #ffffff !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

html.dark body {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

html.light body {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    font: inherit;
}

/* Force dark theme colors on key elements */
html.dark .site-header,
html.dark .site-footer {
    background-color: #242424 !important;
}

/* Builder elements should be transparent (no gray blocks) */
html.dark .parts-list,
html.dark .pc-schematic-wrapper {
    background-color: transparent !important;
}

html.dark .page-title,
html.dark .site-title,
html.dark .schematic-title,
html.dark .footer-title {
    color: #ffffff !important;
}

html.dark .page-subtitle,
html.dark .footer-text {
    color: #a0a0a0 !important;
}

/* ============================================================================
   HEADER - ELEGANT 1-ROW DESIGN (PCPartPicker Style)
   Desktop (>1100px): Logo | Nav (centered) | Actions
   Tablet/Mobile (<1100px): Logo | Actions | Hamburger
   ============================================================================ */

/* Logo Images */
.logo-img {
    height: clamp(24px, 3vw, 32px);
    width: auto;
}

.logo-img--dark { display: none; }
html.dark .logo-img--light { display: none; }
html.dark .logo-img--dark { display: block; }

/* Site Header Container */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    height: 60px;
}

.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* ============================================================================
   ANCHOR LINK SCROLL OFFSET
   Ensures headings are visible below sticky header when using anchor links
   ============================================================================ */

/* Global anchor offset for all headings with IDs */
h1[id], h2[id], h3[id], h4[id], h5[id], h6[id],
[id].scroll-target {
    scroll-margin-top: 80px;
}

/* With admin bar on desktop */
.admin-bar h1[id], .admin-bar h2[id], .admin-bar h3[id],
.admin-bar h4[id], .admin-bar h5[id], .admin-bar h6[id],
.admin-bar [id].scroll-target {
    scroll-margin-top: 112px;
}

/* With admin bar on mobile */
@media (max-width: 782px) {
    .admin-bar h1[id], .admin-bar h2[id], .admin-bar h3[id],
    .admin-bar h4[id], .admin-bar h5[id], .admin-bar h6[id],
    .admin-bar [id].scroll-target {
        scroll-margin-top: 126px;
    }
}

/* Header Inner - Flexbox one-row layout */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2.5vw, 2rem);
    height: 100%;
    gap: 2rem;
}

/* ============================================================================
   HEADER LOGO
   ============================================================================ */

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
}

.header-logo:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.header-logo:hover {
    opacity: 0.8;
}

/* ============================================================================
   HEADER NAVIGATION - Centered, text-only (no icons)
   Hidden on tablet/mobile, shown on desktop (>1100px)
   ============================================================================ */

.header-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}

@media (min-width: 1100px) {
    .header-nav {
        display: flex;
    }
}

/* Navigation Links */
.nav-link {
    padding: 0.5rem 0.875rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.15s ease, background-color 0.15s ease;
    white-space: nowrap;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: rgba(0, 0, 0, 0.04);
}

html.dark .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.nav-link.is-active {
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
}

.nav-link.is-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.875rem;
    right: 0.875rem;
    height: 2px;
    background: var(--brand-primary);
    border-radius: 1px;
}

/* Active state voor dropdown triggers */
.nav-dropdown.is-active .nav-dropdown-trigger {
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
}

.nav-dropdown.is-active .nav-dropdown-trigger::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.875rem;
    right: 0.875rem;
    height: 2px;
    background: var(--brand-primary);
    border-radius: 1px;
}

.nav-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Primary Builder Link - same style as other nav links */
.nav-link--primary {
    font-weight: 600;
}

/* Nav Icon - Minimalistisch */
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.nav-icon svg {
    width: 100%;
    height: 100%;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.nav-link:hover .nav-icon svg,
.nav-link.is-active .nav-icon svg {
    opacity: 1;
}

/* Nav Label */
.nav-label {
    white-space: nowrap;
}

/* Dropdown Trigger */
.nav-dropdown-trigger {
    position: relative;
}

.dropdown-arrow {
    width: 12px;
    height: 12px;
    opacity: 0.5;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

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

/* ============================================================================
   DROPDOWNS - Centered below trigger
   ============================================================================ */

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    white-space: nowrap;
}

.nav-dropdown:hover .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Grid Dropdown (Products - 2 columns) */
.nav-dropdown__menu--grid {
    width: min(90vw, 420px);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    white-space: normal;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 6px;
    transition: background-color 0.15s ease;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    white-space: normal;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
}

.dropdown-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 6px;
    flex-shrink: 0;
}

.dropdown-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.dropdown-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.dropdown-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.dropdown-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* List Dropdown (FPS Calculator) */
.nav-dropdown__menu--list {
    min-width: 160px;
}

.nav-dropdown__menu--list .dropdown-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.nav-dropdown__menu--list .dropdown-item:hover {
    color: var(--text-primary);
}

/* ============================================================================
   HEADER ACTIONS - Search, Theme, User, Mobile Menu
   ============================================================================ */

.header-actions {
    display: flex;
    align-items: center;
    gap: clamp(0.25rem, 1vw, 0.75rem);
    flex-shrink: 0;
}

/* Header Button Base */
.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
    flex-shrink: 0;
}

.header-btn:hover {
    color: var(--text-primary);
    background-color: rgba(0, 0, 0, 0.04);
}

html.dark .header-btn:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.header-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.header-btn svg {
    width: 20px;
    height: 20px;
}

.header-btn--mobile {
    display: flex;
}

@media (min-width: 1100px) {
    .header-btn--mobile {
        display: none !important;
    }
}

/* Builder Quick Access Button - Mobile/Tablet only */
.header-btn--builder {
    display: none; /* Hidden on desktop - nav link is visible there */
    color: var(--text-secondary);
    text-decoration: none;
}

.header-btn--builder:hover,
.header-btn--builder:focus {
    color: var(--text-primary);
    background-color: rgba(0, 0, 0, 0.04);
}

html.dark .header-btn--builder:hover,
html.dark .header-btn--builder:focus {
    background-color: rgba(255, 255, 255, 0.06);
}

.header-btn--builder svg {
    width: 20px;
    height: 20px;
}

/* Show builder button on mobile/tablet (<1100px) */
@media (max-width: 1099px) {
    .header-btn--builder {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 6px;
        transition: color 0.15s ease, background-color 0.15s ease;
    }
}

/* Theme Toggle Icons */
.theme-icon {
    transition: opacity 0.15s ease;
}

.theme-icon.hidden {
    display: none;
}

/* Auth Links */
.header-auth {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.15s ease, background-color 0.15s ease;
    white-space: nowrap;
    display: none;
}

@media (min-width: 1100px) {
    .header-auth {
        display: inline-block;
    }
}

.header-auth:hover {
    color: var(--text-primary);
}

.header-auth:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.header-auth--primary {
    background: var(--brand-primary);
    color: #fff;
    font-weight: 600;
}

.header-auth--primary:hover {
    background: var(--brand-primary-dark);
    color: #fff;
}

/* User Menu */
.header-user {
    position: relative;
}

.header-user__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.15s ease;
    flex-shrink: 0;
}

.header-user__btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

html.dark .header-user__btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.header-user__btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.header-user__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.header-user__badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--error);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
}

.header-user__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.header-user__info {
    padding: 10px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 8px;
}

.header-user__info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.header-user__info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.header-user__menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

.header-user__menu a:hover {
    background: rgba(0, 0, 0, 0.04);
}

html.dark .header-user__menu a:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* User Menu Icons */
.menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.menu-icon svg {
    width: 100%;
    height: 100%;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.header-user__menu a:hover .menu-icon svg {
    opacity: 0.8;
}

.header-user__menu a.logout .menu-icon svg {
    opacity: 0.7;
}

.header-user__menu a .badge {
    margin-left: auto;
    padding: 2px 6px;
    background: var(--error);
    color: #fff;
    font-size: 0.625rem;
    border-radius: 4px;
}

.header-user__menu a.logout {
    color: var(--error);
}

/* ============================================================================
   HEADER NOTIFICATIONS - Messages Dropdown
   ============================================================================ */

.header-notifications {
    position: relative;
}

.header-notifications__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
}

.header-notifications__btn svg {
    width: 20px;
    height: 20px;
}

.header-notifications__btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
}

html.dark .header-notifications__btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.header-notifications__btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.header-notifications__badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--error);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    border: 2px solid var(--bg-primary);
}

.header-notifications__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-height: 400px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    z-index: 1000;
}

html.dark .header-notifications__dropdown {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.header-notifications__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}

.header-notifications__header strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.header-notifications__header a {
    font-size: 0.75rem;
    color: var(--accent);
    text-decoration: none;
}

.header-notifications__header a:hover {
    text-decoration: underline;
}

.header-notifications__list {
    max-height: 320px;
    overflow-y: auto;
}

.header-notifications__empty {
    padding: 24px 16px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.header-notifications__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border-light);
}

.header-notifications__item:last-child {
    border-bottom: none;
}

.header-notifications__item:hover {
    background: rgba(0, 0, 0, 0.02);
}

html.dark .header-notifications__item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.header-notifications__item.is-unread {
    background: rgba(48, 119, 166, 0.06);
}

html.dark .header-notifications__item.is-unread {
    background: rgba(48, 119, 166, 0.12);
}

.header-notifications__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.header-notifications__content {
    flex: 1;
    min-width: 0;
}

.header-notifications__name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-notifications__preview {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.header-notifications__time {
    font-size: 0.6875rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Mobile: hide dropdown, show as badge only */
@media (max-width: 768px) {
    .header-notifications__dropdown {
        right: -60px;
        width: 280px;
    }
}

/* ============================================================================
   MOBILE NAVIGATION - Fullscreen Overlay
   ============================================================================ */

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 999;
    overflow-y: auto;
    padding-top: clamp(52px, 8vw, 64px);
}

.admin-bar .mobile-nav {
    padding-top: calc(32px + clamp(52px, 8vw, 64px));
}

@media (max-width: 782px) {
    .admin-bar .mobile-nav {
        padding-top: calc(46px + clamp(52px, 8vw, 64px));
    }
}

.mobile-nav.hidden {
    display: none;
}

.mobile-nav__item {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1rem);
    padding: clamp(0.9rem, 2vw, 1.25rem) clamp(1rem, 2.5vw, 2rem);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

.mobile-nav__item:hover {
    background: rgba(0, 0, 0, 0.04);
}

html.dark .mobile-nav__item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.mobile-nav__item svg {
    width: clamp(20px, 3vw, 28px);
    height: clamp(20px, 3vw, 28px);
    opacity: 0.6;
    flex-shrink: 0;
}

.mobile-nav__item--highlight {
    color: var(--brand-primary);
    font-weight: 600;
}

.mobile-nav__item--highlight svg {
    opacity: 1;
    color: var(--brand-primary);
}

.mobile-nav__sub {
    display: flex;
    flex-direction: column;
    padding-left: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
}

.mobile-nav__sub a {
    padding: clamp(0.8rem, 1.5vw, 1rem) clamp(0.75rem, 1.5vw, 1rem);
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-nav__sub a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
}

html.dark .mobile-nav__sub a:hover {
    background: rgba(255, 255, 255, 0.06);
}

.mobile-nav__divider {
    height: 1px;
    background: var(--border-light);
    margin: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2.5vw, 2rem);
}

.mobile-nav__auth {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    margin: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2.5vw, 2rem);
    padding: clamp(1rem, 2vw, 1.5rem) 0;
    border-top: 1px solid var(--border-light);
}

.mobile-nav__auth .btn {
    flex: 1;
    padding: clamp(0.8rem, 1.5vw, 1rem) clamp(1rem, 2vw, 1.5rem);
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.mobile-nav__auth .btn--outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.mobile-nav__auth .btn--outline:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--text-primary);
}

html.dark .mobile-nav__auth .btn--outline:hover {
    background: rgba(255, 255, 255, 0.06);
}

.mobile-nav__auth .btn--primary {
    background: var(--brand-primary);
    color: #fff;
    border: none;
}

.mobile-nav__auth .btn--primary:hover {
    background: var(--brand-primary-dark);
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   Mobile First: Navigation hidden by default, shown at 1100px+ (desktop)
   ============================================================================ */

/* Desktop (1100px+) - Show nav, hide mobile menu button */
@media (min-width: 1100px) {
    .header-nav {
        display: flex !important;
    }

    .header-btn--mobile {
        display: none !important;
    }

    .header-auth {
        display: inline-block !important;
    }
}

/* Tablet + Mobile (<1100px) - Hide nav, show mobile menu */
@media (max-width: 1099px) {
    .header-nav {
        display: none !important;
    }

    .header-auth {
        display: none !important;
    }

    .header-btn--mobile {
        display: flex !important;
    }
}

/* Extra small screens */
@media (max-width: 600px) {
    .header-inner {
        gap: 1rem;
        padding: 0 1rem;
    }

    .header-actions {
        gap: 0.25rem;
    }
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--bg-hover);
}

/* Hidden utility */
.hidden {
    display: none !important;
}

[x-cloak] {
    display: none !important;
}

/* ============================================================================
   BASE LAYOUT
   ============================================================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: min(1400px, 100% - 2rem);
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 2.5vw, 1.5rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* Brand kolom takes full width on mobile by default */
.footer-column--brand {
    grid-column: 1 / -1;
}

/* Small mobile (400-639px): 2 kolommen, brand full width */
@media (min-width: 400px) and (max-width: 639px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-column--brand {
        grid-column: 1 / -1;
    }
}

/* Tablet: 3 kolommen */
@media (min-width: 640px) and (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Brand kolom spans 3 kolommen op tablet voor betere layout */
    .footer-column--brand {
        grid-column: 1 / -1;
    }
}

/* Desktop: 6 kolommen (ingelogd) of 5 kolommen (uitgelogd) */
@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr;
    }

    .footer-column--brand {
        grid-column: auto;
    }

    /* Compact footer grid voor uitgelogde gebruikers (5 kolommen) */
    .footer-grid--compact {
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    }
}

.footer-links__separator {
    margin: clamp(0.3rem, 0.8vw, 0.5rem) 0;
    padding: 0;
    border-top: 1px solid var(--border);
    list-style: none;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

/* Footer Logo */
.footer-logo-link {
    display: inline-block;
    transition: opacity 0.15s ease;
}

.footer-logo-link:hover {
    opacity: 0.8;
}

.footer-logo-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.footer-logo-img {
    height: clamp(24px, 4vw, 36px);
    max-height: 32px;
    width: auto;
}

/* Limit logo size on very small screens */
@media (max-width: 399px) {
    .footer-logo-img {
        height: 24px;
        max-height: 24px;
    }
}

/* Light/dark mode logo switching */
.footer-logo-img--dark { display: none; }
html.dark .footer-logo-img--light { display: none; }
html.dark .footer-logo-img--dark { display: block; }

.footer-description {
    font-size: clamp(0.875rem, 1.5vw + 0.25rem, 0.9375rem);
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.5rem, 1.5vw, 0.875rem);
    margin-top: clamp(1rem, 2vw, 1.5rem);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    transition: all 0.2s;
    flex-shrink: 0;
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.social-icon {
    width: clamp(1rem, 1.5vw + 0.25rem, 1.25rem);
    height: clamp(1rem, 1.5vw + 0.25rem, 1.25rem);
}

.footer-title {
    font-size: clamp(0.875rem, 1.5vw + 0.25rem, 1rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 clamp(0.875rem, 1.5vw + 0.25rem, 1.25rem) 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1vw, 0.625rem);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: clamp(0.875rem, 1.5vw + 0.25rem, 0.9375rem);
    transition: color 0.2s;
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: clamp(1rem, 2vw, 1.5rem);
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    align-items: center;
    text-align: center;
}

/* Very small mobile: tighter spacing, stacked layout */
@media (max-width: 399px) {
    .footer-bottom-content {
        gap: 0.75rem;
    }
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
        gap: clamp(1.5rem, 3vw, 2rem);
    }
}

.footer-copyright p {
    margin: 0;
    font-size: clamp(0.8125rem, 1.25vw + 0.25rem, 0.875rem);
    color: var(--text-secondary);
}

/* Very small mobile: slightly smaller copyright text */
@media (max-width: 399px) {
    .footer-copyright p {
        font-size: 0.8125rem;
    }
}

.footer-disclaimer {
    flex: 1;
    max-width: min(500px, 100%);
}

.footer-disclaimer p {
    margin: 0;
    font-size: clamp(0.75rem, 1.1vw + 0.15rem, 0.8125rem);
    color: var(--text-muted);
    line-height: 1.5;
}

/* Very small mobile: ensure disclaimer is readable */
@media (max-width: 399px) {
    .footer-disclaimer {
        max-width: 100%;
        padding: 0 0.25rem;
    }

    .footer-disclaimer p {
        font-size: 0.75rem;
        line-height: 1.6;
    }
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    font-size: clamp(0.8125rem, 1.25vw + 0.25rem, 0.875rem);
    justify-content: center;
}

/* Mobile: 2x2 grid voor legal links */
@media (max-width: 639px) {
    .footer-legal {
        display: grid;
        grid-template-columns: repeat(2, auto);
        gap: 0.5rem 1.5rem;
        justify-content: center;
        width: 100%;
    }

    .footer-legal a {
        padding: 0.5rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }

    .footer-legal-separator {
        display: none;
    }
}

@media (min-width: 640px) and (max-width: 767px) {
    .footer-legal {
        gap: 0.5rem 1.25rem;
    }
}

@media (min-width: 768px) {
    .footer-legal {
        justify-content: flex-start;
    }
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--accent);
}

.footer-credit {
    margin-top: clamp(1rem, 2vw, 1.5rem);
    padding-top: clamp(0.75rem, 1.5vw, 1rem);
    border-top: 1px solid var(--border);
}

.footer-credit p {
    margin: 0;
    font-size: clamp(0.7rem, 1vw + 0.15rem, 0.75rem);
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.footer-credit strong {
    color: var(--accent);
    font-weight: 600;
}

/* ============================================================================
   HERO SECTION - MODERN REDESIGN
   ============================================================================ */

.hero-section {
    position: relative;
    padding: 6rem 0 5rem;
    text-align: center;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
}

.hero-badge svg {
    color: var(--accent);
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.25rem, 5vw + 0.25rem, 3.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
    max-width: 600px;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.hero-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Button Large Size */
.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: 10px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.hero-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Hero Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0 3rem;
        min-height: auto;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

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

/* ============================================================================
   FEATURES SECTION
   ============================================================================ */

.features-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 2rem;
    text-align: center;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--accent);
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.feature-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ============================================================================
   HOW IT WORKS SECTION
   ============================================================================ */

.how-it-works {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.step-card {
    padding: 2rem;
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--gradient-accent);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.step-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ============================================================================
   FEATURED BUILDS SECTION
   ============================================================================ */

.featured-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 0;
    text-align: center;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.featured-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.featured-image {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.featured-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    width: fit-content;
    margin-bottom: 0.75rem;
}

.featured-badge--popular {
    background: var(--accent-light);
    color: var(--accent);
}

.featured-badge--premium {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.featured-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.featured-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 1rem;
    flex: 1;
}

.featured-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.section-footer {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.section-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================================================
   CTA SECTION
   ============================================================================ */

.cta-section {
    padding: 5rem 0;
    text-align: center;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0 0 2rem;
    line-height: 1.7;
}


/* ============================================================================
   MODERN EFFECTS - Glassmorphism, Mesh Gradients, Depth
   ============================================================================ */

/* Glass Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

html.dark .glass-card {
    background: rgba(36, 36, 36, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .glass-card {
        background: var(--bg-secondary);
    }
}

/* Mesh Gradient Background */
.mesh-gradient {
    background:
        radial-gradient(at 40% 20%, rgba(48, 119, 166, 0.12) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(16, 185, 129, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(48, 119, 166, 0.08) 0px, transparent 50%),
        radial-gradient(at 80% 50%, rgba(139, 92, 246, 0.06) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(48, 119, 166, 0.1) 0px, transparent 50%),
        var(--bg-primary);
}

html.dark .mesh-gradient {
    background:
        radial-gradient(at 40% 20%, rgba(48, 119, 166, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(16, 185, 129, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(48, 119, 166, 0.12) 0px, transparent 50%),
        radial-gradient(at 80% 50%, rgba(139, 92, 246, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(48, 119, 166, 0.12) 0px, transparent 50%),
        var(--bg-primary);
}

/* Gradient Text Effect */
.accent-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Depth Card with Hover Effect */
.depth-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.depth-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.06),
        0 8px 16px rgba(0, 0, 0, 0.06),
        0 16px 32px rgba(0, 0, 0, 0.06);
    border-color: var(--accent);
}

html.dark .depth-card {
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1);
}

html.dark .depth-card:hover {
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.25),
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 16px 32px rgba(0, 0, 0, 0.15);
}

/* Glow Effect for Buttons */
.btn-glow {
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(48, 119, 166, 0.4);
}

html.dark .btn-glow:hover {
    box-shadow: 0 0 30px rgba(48, 119, 166, 0.5);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .glass-card,
    .depth-card,
    .btn-glow {
        transition: none;
    }

    .depth-card:hover {
        transform: none;
    }

    .btn-glow:hover {
        box-shadow: none;
    }
}

/* ============================================================================
   GLOBAL BREADCRUMB
   ============================================================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px 0;
    font-size: 0.875rem;
}

.breadcrumb__link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb__link:hover {
    color: var(--accent);
}

.breadcrumb__separator {
    color: var(--text-muted);
}

.breadcrumb__current {
    color: var(--text-primary);
    font-weight: 500;
}

@media (max-width: 640px) {
    .breadcrumb {
        margin-bottom: 16px;
        font-size: 0.8125rem;
    }
}

/* ============================================================================
   GLOBAL PAGE CONTAINER
   Standard padding for all content pages
   ============================================================================ */

.page-container {
    padding: 24px 0 80px;
    background-color: var(--bg-primary);
}

@media (max-width: 640px) {
    .page-container {
        padding: 16px 0 60px;
    }
}
