/* =========================================================================
   KontorTjek.dk - Nordic Design & Conversion Optimization (Light/Dark Mode)
   ========================================================================= */

:root {
    /* LIGHT MODE DEFAULTS */
    --primary: #1C242C;
    /* Headers / Dark elements */
    --secondary: #F3F4F6;
    /* Body bg */
    --accent: #E56B42;
    /* Copper-orange CTA */
    --accent-hover: #CC5A35;
    --text-main: #333333;
    --text-muted: #6B7280;
    --bg-white: #FFFFFF;
    /* Header, cards */

    /* Quiz specific */
    --quiz-bg: #1C242C;
    --quiz-text: #FFFFFF;
    --quiz-inner-bg: rgba(255, 255, 255, 0.05);
    --quiz-border: rgba(255, 255, 255, 0.1);
    --option-bg: #FFFFFF;
    --option-text: #1C242C;

    --font-heading: 'Inter', -apple-system, sans-serif;
    --font-body: 'Roboto', sans-serif;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    /* DARK MODE OVERRIDES */
    --primary: #F8FAFC;
    /* Headers become light */
    --secondary: #0F172A;
    /* Body bg becomes dark navy */
    --text-main: #CBD5E1;
    /* Light grey text */
    --text-muted: #94A3B8;
    --bg-white: #1E293B;
    /* Cards and header become dark */

    /* Quiz specific */
    --quiz-bg: #1E293B;
    /* matches header/cards in dark mode */
    --quiz-text: #F8FAFC;
    --quiz-inner-bg: #0F172A;
    --quiz-border: #334155;
    --option-bg: #334155;
    --option-text: #1C242C;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--secondary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    transition: color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
}

/* HEADER */
header {
    background: var(--bg-white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--accent);
}

.theme-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 4px;
    transition: 0.2s;
    color: var(--text-main);
}

.theme-btn:hover {
    background: rgba(128, 128, 128, 0.2);
}

/* HERO / QUIZ */
.hero-quiz {
    background: var(--quiz-bg);
    color: var(--quiz-text);
    padding: 4rem 2rem;
    text-align: center;
    transition: background-color 0.3s;
}

.quiz-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--quiz-inner-bg);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--quiz-border);
}

.quiz-container h1 {
    color: var(--quiz-text);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.quiz-container p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 10px rgba(229, 107, 66, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* QUIZ UI OVERRIDES (JS INJECTED) */
.quiz-step {
    text-align: left;
    animation: fadeIn 0.3s;
}

.quiz-step h2 {
    color: var(--quiz-text);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.quiz-option {
    background: var(--option-bg);
    color: var(--option-text);
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.quiz-option:hover {
    border-color: var(--accent);
    transform: scale(1.02);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PRODUCT GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, background-color 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #EEE;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-cat {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 10px;
    font-weight: normal;
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    color: var(--text-muted);
    margin-top: 2rem;
    transition: background-color 0.3s;
}