/* ============================================
   AUTELA DEALER WEB (ADW) - Štýly
   ============================================ */

:root {
    --primary: #ef4444;
    --primary-dark: #dc2626;
    --bg-dark: #0f172a;
    --card-bg: #1e293b;
    --card-bg-light: #ffffff;
    --text-light: #f1f5f9;
    --text-dark: #0f172a;
    --border-dark: #334155;
    --border-light: #e2e8f0;
    --chip-bg: #86efac;
    --chip-text: #14532d;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.5;
    transition: background 0.3s, color 0.3s;
}

body.light-theme {
    background-color: #f1f5f9;
    color: var(--text-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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



/* Glass card */
.glass-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
}
body.light-theme .glass-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Filter inputy */
.filter-input {
    background: var(--card-bg);
    border-color: var(--border-dark);
    color: var(--text-light);
}
.filter-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}
body.light-theme .filter-input {
    background: white;
    border-color: var(--border-light);
    color: var(--text-dark);
}

/* Tlačidlá */
.btn-primary {
    background: var(--primary);
    transition: all 0.2s;
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

/* Karta auta */
.car-card {
    background: var(--card-bg);
    border: 1px solid var(--border-dark);
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 1rem;
}
.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}
body.light-theme .car-card {
    background: white;
    border-color: var(--border-light);
}
body.light-theme .car-card:hover {
    border-color: var(--primary);
}

/* Chips (výbava) */
.equipment-chip {
    background: var(--chip-bg);
    color: var(--chip-text);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}
body.light-theme .equipment-chip {
    background: #bbf7d0;
    color: #14532d;
}

/* Technické karty */
.tech-card {
    background: var(--card-bg);
    border: 1px solid var(--border-dark);
    border-radius: 1rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
body.light-theme .tech-card {
    background: white;
    border-color: var(--border-light);
}

/* Kalkulačka */
.loan-calculator {
    background: var(--card-bg);
    border: 1px solid var(--border-dark);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}
body.light-theme .loan-calculator {
    background: white;
    border-color: var(--border-light);
}
.loan-calculator input,
.loan-calculator select {
    background: #334155;
    border: 1px solid #475569;
    color: white;
    border-radius: 0.5rem;
    padding: 0.5rem;
}
body.light-theme .loan-calculator input,
body.light-theme .loan-calculator select {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

/* WhatsApp tlačidlo */
.whatsapp-btn {
    background: #25D366;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 700;
    transition: all 0.2s;
}
.whatsapp-btn:hover {
    background: #128C7E;
    transform: scale(1.02);
}

/* Galéria */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.gallery-modal.active {
    display: flex;
}
.gallery-modal img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}
.gallery-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}
.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    padding: 20px;
}
.gallery-prev { left: 20px; }
.gallery-next { right: 20px; }

/* Footer */
.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}
body.light-theme .site-footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* Responzivita */
@media (max-width: 768px) {
    .gallery-prev, .gallery-next { font-size: 30px; padding: 10px; }
}
/* Logo responzívne */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.6rem;
    font-weight: 900;
    text-decoration: none;
}
.logo-img {
    height: 42px;
    width: auto;
    max-height: 42px;
    object-fit: contain;
}
.logo-text {
    font-size: 1.4rem;
    white-space: nowrap;
}

/* Mobilné zobrazenie (menšie logo) */
@media (max-width: 768px) {
    .logo-img {
        height: 32px;
    }
    .logo-text {
        font-size: 1rem;
    }
}