/**
 * Excel Handig Theme - Design System
 * Dutch Excel Templates - excel-handig.com
 *
 * Design Principles:
 * - Clean, professional, trustworthy
 * - Orange ONLY for CTAs and key highlights
 * - Blue for primary/authority
 * - Generous whitespace, clear hierarchy
 * - Consistent 16px radius for cards, 12px for buttons
 */

/* =====================================================
   DESIGN TOKENS
   ===================================================== */
:root {
    /* Brand Colors */
    --eh-orange: #FF6B00;
    --eh-orange-light: #FF8533;
    --eh-orange-dark: #E05E00;
    --eh-orange-glow: rgba(255, 107, 0, 0.25);
    --eh-orange-bg: #FFF7ED;
    --eh-blue: #1E3A8A;
    --eh-blue-light: #2563EB;
    --eh-blue-dark: #172554;
    --eh-green: #059669;

    /* Neutral */
    --eh-gray-50: #F8FAFC;
    --eh-gray-100: #F1F5F9;
    --eh-gray-200: #E2E8F0;
    --eh-gray-300: #CBD5E1;
    --eh-gray-600: #475569;
    --eh-gray-900: #0F172A;

    /* Shadows */
    --eh-shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --eh-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --eh-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --eh-shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --eh-shadow-xl: 0 20px 40px -8px rgba(0,0,0,0.12);
    --eh-shadow-orange: 0 10px 25px -5px rgba(255,107,0,0.25);

    /* Transitions */
    --eh-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --eh-duration: 200ms;
}

html { scroll-behavior: smooth; }

/* =====================================================
   WORDPRESS CORE
   ===================================================== */
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; max-width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }

/* Navigation */
.nav-links { display: flex; justify-content: center; gap: 0.375rem; flex-wrap: wrap; }
.nav-links a, .nav-links span {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--eh-gray-200);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all var(--eh-duration) var(--eh-ease);
}
.nav-links .current {
    background: var(--eh-orange);
    color: white;
    border-color: var(--eh-orange);
}
.nav-links a:hover {
    background: var(--eh-orange-bg);
    border-color: var(--eh-orange);
    color: var(--eh-orange);
}

/* Logo & Menu */
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { max-height: 40px; width: auto; }
.menu-item a { color: #334155; font-weight: 500; transition: color 150ms; }
.menu-item a:hover { color: var(--eh-blue-light); }
.current-menu-item a { color: var(--eh-blue-light); }

/* Widgets */
.widget { margin-bottom: 2rem; }
.widget-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    color: white;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { margin-bottom: 0.375rem; }
.widget ul li a { color: #94A3B8; transition: color 150ms; font-size: 0.9375rem; }
.widget ul li a:hover { color: white; }

/* =====================================================
   BUTTONS
   ===================================================== */

/* Primary CTA - Orange gradient */
.eh-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, var(--eh-orange) 0%, var(--eh-orange-dark) 100%);
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 0.625rem;
    transition: all 300ms var(--eh-ease);
    position: relative;
    overflow: hidden;
    box-shadow: var(--eh-shadow);
}
.eh-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--eh-shadow-orange);
}
.eh-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
.eh-btn-primary:hover::before { left: 100%; }

/* Secondary button */
.eh-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    background: white;
    color: var(--eh-gray-900);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.625rem;
    border: 1px solid var(--eh-gray-200);
    transition: all var(--eh-duration) var(--eh-ease);
    box-shadow: var(--eh-shadow-sm);
}
.eh-btn-secondary:hover {
    border-color: var(--eh-gray-300);
    box-shadow: var(--eh-shadow-md);
    transform: translateY(-1px);
}

/* Download button orange */
.download-btn { position: relative; overflow: hidden; }
.download-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.download-btn:active::after { width: 300px; height: 300px; }

.download-btn-orange {
    background: linear-gradient(135deg, var(--eh-orange) 0%, var(--eh-orange-dark) 100%);
    transition: all 300ms var(--eh-ease);
}
.download-btn-orange:hover {
    box-shadow: var(--eh-shadow-orange);
    transform: translateY(-2px);
}

/* =====================================================
   CARDS
   ===================================================== */
.eh-card {
    background: white;
    border: 1px solid var(--eh-gray-200);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 200ms var(--eh-ease);
}
.eh-card:hover {
    border-color: var(--eh-gray-300);
    box-shadow: var(--eh-shadow-md);
}

/* =====================================================
   BREADCRUMBS
   ===================================================== */
.eh-breadcrumbs { font-size: 0.75rem; color: #64748B; }
.eh-breadcrumbs a { color: #64748B; transition: color 150ms; }
.eh-breadcrumbs a:hover { color: var(--eh-orange); }
.eh-breadcrumbs .separator { margin: 0 0.375rem; color: #CBD5E1; }

/* =====================================================
   CATEGORY CHIPS
   ===================================================== */
.category-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--eh-gray-200);
    background: white;
    color: #334155;
    transition: all var(--eh-duration) var(--eh-ease);
    cursor: pointer;
    white-space: nowrap;
}
.category-chip:hover {
    border-color: var(--eh-orange-light);
    color: var(--eh-orange);
    background: var(--eh-orange-bg);
}
.category-chip.active {
    background: var(--eh-orange);
    color: white;
    border-color: var(--eh-orange);
    font-weight: 600;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.eh-sidebar-active {
    background: var(--eh-orange-bg);
    color: #C2410C;
    border-left: 3px solid var(--eh-orange);
    font-weight: 600;
}

/* =====================================================
   PRICING
   ===================================================== */
.eh-price-crossed {
    text-decoration: line-through;
    color: #94A3B8;
    font-size: 0.875rem;
}
.eh-price-free {
    color: var(--eh-green);
    font-weight: 700;
    font-size: 1.25rem;
}

/* =====================================================
   HERO DECORATIVE ELEMENTS
   ===================================================== */
.eh-hero-blur-orange {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,107,0,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.eh-hero-blur-blue {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Hero mesh gradient background */
.eh-hero-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(at 20% 80%, rgba(37,99,235,0.15) 0%, transparent 50%),
        radial-gradient(at 80% 20%, rgba(255,107,0,0.08) 0%, transparent 50%),
        radial-gradient(at 50% 50%, rgba(30,58,138,0.05) 0%, transparent 80%);
    pointer-events: none;
}

/* =====================================================
   FAQ - Minimalist accordion
   ===================================================== */
.faq-chevron {
    transition: transform 0.3s var(--eh-ease);
}
.faq-toggle[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
}

/* =====================================================
   SECTION STYLING
   ===================================================== */

/* Subtle section divider */
.eh-section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--eh-gray-200) 50%, transparent 100%);
}

/* Orange gradient text */
.eh-text-gradient {
    background: linear-gradient(135deg, var(--eh-orange) 0%, var(--eh-orange-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================================================
   MOBILE MENU
   ===================================================== */
#mobile-menu.active { display: block; }

/* =====================================================
   COOKIE BANNER
   ===================================================== */
#cookie-banner.show { display: block; animation: slideUp 0.3s ease; }
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* =====================================================
   SCROLL TO TOP
   ===================================================== */
#scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 2.75rem;
    height: 2.75rem;
    background: var(--eh-blue);
    color: white;
    border-radius: 0.75rem;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--eh-shadow-md);
    transition: all 300ms var(--eh-ease);
    z-index: 40;
}
#scroll-to-top:hover { background: var(--eh-blue-light); transform: translateY(-2px); }
#scroll-to-top.show { display: flex; }

/* =====================================================
   ACCESSIBILITY
   ===================================================== */
:focus-visible {
    outline: 2px solid var(--eh-blue-light);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================
   PRINT
   ===================================================== */
@media print {
    header, footer, .download-btn, #cookie-banner, #scroll-to-top { display: none !important; }
    body { font-size: 12pt; }
}

/* =====================================================
   SKELETON LOADING
   ===================================================== */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =====================================================
   EXCEL MOCKUP
   ===================================================== */
.excel-mockup-container {
    position: relative;
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.4s var(--eh-ease);
}
.excel-mockup-container:hover {
    transform: perspective(1200px) rotateY(-1deg) rotateX(0.5deg);
}

.excel-window {
    background: #f3f3f3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.35);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 11px;
}

.excel-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #217346 0%, #1a5c38 100%);
    padding: 7px 12px;
    color: white;
}
.excel-titlebar-left { display: flex; align-items: center; gap: 8px; }
.excel-icon { width: 18px; height: 18px; }
.excel-filename { font-size: 12px; font-weight: 500; opacity: 0.95; }
.excel-titlebar-buttons { display: flex; gap: 8px; }
.excel-btn { width: 12px; height: 12px; border-radius: 50%; }
.excel-btn.minimize { background: #f5c242; }
.excel-btn.maximize { background: #3dc04f; }
.excel-btn.close { background: #ed594a; }

.excel-ribbon { background: #217346; padding: 4px 12px; border-bottom: 1px solid #1a5c38; }
.excel-ribbon-tabs { display: flex; gap: 16px; color: white; font-size: 11px; }
.excel-ribbon-tabs span { padding: 4px 0; opacity: 0.7; cursor: pointer; }
.excel-ribbon-tabs span.active { opacity: 1; border-bottom: 2px solid white; }

.excel-formula-bar { display: flex; align-items: center; background: white; border-bottom: 1px solid #d6d6d6; padding: 4px 8px; gap: 8px; }
.excel-cell-ref { min-width: 50px; padding: 2px 6px; background: #f5f5f5; border: 1px solid #d6d6d6; font-size: 10px; text-align: center; }
.excel-fx { color: #666; font-style: italic; font-size: 10px; }
.excel-formula-input { flex: 1; padding: 2px 6px; background: white; border: 1px solid #d6d6d6; font-size: 10px; color: #333; min-height: 18px; }

.excel-sheet-area { background: white; overflow: hidden; }
.excel-grid { display: grid; grid-template-columns: 30px repeat(5, 1fr); border: 1px solid #d6d6d6; }
.excel-corner { background: #f5f5f5; border-right: 1px solid #c0c0c0; border-bottom: 1px solid #c0c0c0; }
.excel-col-header, .excel-row-header { background: #f5f5f5; border-right: 1px solid #c0c0c0; border-bottom: 1px solid #c0c0c0; padding: 4px; text-align: center; font-weight: 500; color: #333; }
.excel-cell { border-right: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0; padding: 4px 6px; min-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #333; }
.excel-cell.header-cell { background: #217346; color: white; font-weight: 600; }
.excel-cell.number-cell { text-align: right; font-variant-numeric: tabular-nums; }
.excel-cell.currency-cell { text-align: right; color: #1a5c38; font-weight: 500; }
.excel-cell.total-label { font-weight: 600; text-align: right; }
.excel-cell.total-cell { font-weight: 700; text-align: right; background: #f0f7f4; }
.excel-cell.total-cell.highlight { background: #d4edda; color: #155724; }
.excel-cell.positive { color: #28a745; }
.excel-cell.warning { color: #ffc107; }
.excel-cell.critical { color: #dc3545; font-weight: 600; }

.excel-sheet-tabs { display: flex; align-items: flex-end; background: #e0e0e0; padding: 4px 8px 0; gap: 2px; }
.excel-sheet-tab { background: #f5f5f5; padding: 4px 12px; border-radius: 4px 4px 0 0; font-size: 10px; color: #666; cursor: pointer; border: 1px solid #c0c0c0; border-bottom: none; }
.excel-sheet-tab.active { background: white; color: #333; font-weight: 500; }
.excel-sheet-tab-add { padding: 4px 8px; color: #888; cursor: pointer; font-size: 12px; }

.excel-status-bar { display: flex; justify-content: space-between; align-items: center; background: #217346; padding: 3px 12px; color: white; font-size: 10px; }
.excel-status-left { opacity: 0.9; }
.excel-zoom { opacity: 0.8; }

.excel-mockup-shadow { position: absolute; bottom: -15px; left: 10%; right: 10%; height: 20px; background: radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, transparent 70%); filter: blur(10px); z-index: -1; }
.excel-mockup-reflection { position: absolute; top: 0; left: 0; right: 0; height: 40%; background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%); pointer-events: none; border-radius: 10px 10px 0 0; }

.excel-preview-notice { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 12px 16px; background: rgba(255,255,255,0.08); border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); }
.excel-preview-notice .notice-icon { width: 18px; height: 18px; flex-shrink: 0; color: rgba(255,255,255,0.7); margin-top: 2px; }
.excel-preview-notice p { margin: 0; font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.5; }
.excel-preview-notice strong { color: white; }

/* =====================================================
   MOBILE REFINEMENTS
   ===================================================== */
@media (max-width: 768px) {
    .eh-card:hover { transform: none; }
    .category-chip { padding: 0.3rem 0.75rem; font-size: 0.6875rem; }
    .download-btn-orange { width: 100%; justify-content: center; }
}
