/* ===== UNIFIED STYLES - Pro hlavnÃ­ strÃ¡nku i cenÃ­k ===== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&display=swap');

/* ===== CSS VARIABLES - THEME COLORS ===== */
:root {
    /* === PRIMARY === */
    --primary-color: #7adeff;               /* hlavní CTA */
    --primary-hover: #4ccdf5;               /* hover / active */
    --primary-light: #dff5ff;               /* badge, highlight bg */
    --primary-soft: #f1fbff;                /* velmi jemné pozadí */

    /* === BACKGROUNDS === */
    --bg-primary: #f7fbfe;                  /* hlavní pozadí */
    --bg-secondary: #ffffff;                /* karty */
    --bg-tertiary: #edf7fd;                 /* sekce */
    --accent-bg: rgba(122, 222, 255, 0.55); /* CTA bloky / glass */

    /* === TEXT === */
    --text-primary: #0f2a3d;                /* hlavní text */
    --text-secondary: #35566e;              /* běžný text */
    --text-muted: #6f8fa3;                  /* popisky */

    /* === UI DETAILS === */
    --border-color: rgba(122, 222, 255, 0.35);
    --shadow-color: rgba(122, 222, 255, 0.22);

    /* === GRADIENTS === */
    --gradient-start: #7adeff;
    --gradient-end: #4ccdf5;

    /* === COMPONENTS === */
    --card-bg: #ffffff;
    --nav-bg: rgba(247, 251, 254, 0.94);
    --nav-scrolled: rgba(255, 255, 255, 0.98);

    /* === RGB HELPERS === */
    --primary-color-rgb: 122, 222, 255;
    --bg-secondary-rgb: 255, 255, 255;
}

/* Dark Theme */
[data-theme="dark"] {
    /* === PRIMARY (cyan) === */
    --primary-color: #7adeff;
    --primary-hover: #4ccdf5;            /* tmavší cyan pro hover */
    --primary-light: #dff5ff;            /* světlý cyan pro badge/texty na dark */
    --primary-soft: rgba(122, 222, 255, 0.10); /* jemné podbarvení */

    /* === BACKGROUNDS (ponechávám tmavé) === */
    --bg-primary: rgb(3, 7, 18);
    --bg-secondary: rgb(17, 24, 39);
    --bg-tertiary: rgb(31 41 55 / 1);

    /* === TEXT (ponechávám) === */
    --text-primary: #ffffff;
    --text-secondary: rgb(229, 231, 235);
    --text-muted: rgb(156, 163, 175);

    /* === UI DETAILS === */
    --border-color: rgb(31 41 55 / 1);
    --shadow-color: rgba(122, 222, 255, 0.28); /* glow místo červené */

    /* === GRADIENTS === */
    --gradient-start: #7adeff;
    --gradient-end: #4ccdf5;

    /* === ACCENTS / SURFACES === */
    --accent-bg: rgba(122, 222, 255, 0.10);    /* místo červené 0.08 */
    --card-bg: rgba(17, 24, 39, 0.8);
    --nav-bg: rgba(3, 7, 18, 0.8);
    --nav-scrolled: rgba(3, 7, 18, 0.95);

    /* === RGB HELPERS === */
    --primary-color-rgb: 122, 222, 255;
    --bg-secondary-rgb: 17, 24, 39;
}

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

/* Body - zÃ¡kladnÃ­ */
body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback for browsers that don't support background-clip */
}

/* Ensure gradient text children don't override */
.gradient-text * {
    background: inherit;
    -webkit-background-clip: inherit;
    -webkit-text-fill-color: inherit;
    background-clip: inherit;
}

/* ===== THEME SWITCHER ===== */
.theme-switcher {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9998;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all 0.3s ease;
}

.theme-switcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--shadow-color);
}

.theme-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    background: transparent;
}

.theme-btn.active {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    transform: scale(1.1);
}

.theme-btn:not(.active) {
    opacity: 0.5;
}

.theme-btn:hover:not(.active) {
    opacity: 0.8;
    background: var(--accent-bg);
}

/* ===== LOGO SWITCHER ===== */
.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

.logo-invert {
    filter: invert(1) brightness(1);
}

[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: block;
}

/* Logo transition animation */
.logo-light,
.logo-dark {
    transition: opacity 0.3s ease;
}

/* ===== NAVIGATION ===== */
nav {
    backdrop-filter: blur(10px);
    background: var(--nav-bg);
    transition: all 0.3s ease;
    z-index: 10001;
}

nav.scrolled {
    background: var(--nav-scrolled);
    box-shadow: 0 4px 20px var(--shadow-color);
}

nav a {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    transition: all 0.3s ease;
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px var(--shadow-color);
    filter: brightness(1.1);
}

.btn-secondary {
    border: 2px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--shadow-color);
}

/* Border button utility - ensures proper hover */
.btn-border {
    border: 2px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.btn-border:hover {
    background: var(--text-primary) !important;
    color: var(--bg-primary) !important;
    border-color: var(--text-primary) !important;
    transform: scale(1.05);
}

/* Primary border button */
.btn-border-primary {
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-border-primary:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    transform: scale(1.05);
}

/* Utility classes for borders */
.border-primary {
    border-color: var(--primary-color) !important;
}

.text-primary-color {
    color: var(--primary-color) !important;
}

.hover-bg-primary:hover {
    background: var(--primary-color) !important;
    color: white !important;
}

/* ===== CARD HOVER EFFECT ===== */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-bg);
    border-color: var(--border-color);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: var(--primary-color);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--nav-scrolled);
    backdrop-filter: blur(20px);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -5px 0 20px var(--shadow-color);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: var(--text-primary);
}

.mobile-menu a:hover {
    color: var(--primary-color);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hamburger {
    width: 28px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 10002;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 10px;
}

.hamburger span:nth-child(3) {
    top: 20px;
}

.hamburger.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    position: fixed;
    top: 20px;
    right: 24px;
    width: 28px;
    height: 24px;
    cursor: pointer;
    z-index: 10002;
    display: none;
}

.mobile-menu-close span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transition: .25s ease-in-out;
}

.mobile-menu-close span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.mobile-menu-close span:nth-child(2) {
    top: 10px;
    transform: rotate(-135deg);
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 65vh;
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px var(--shadow-color);
}

.modal-header {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: white;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-iframe {
    width: 100%;
    height: calc(100% - 60px);
    border: none;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes driveIn {
    0% {
        opacity: 0;
        transform: translateZ(-1000px) scale(2);
        filter: blur(20px);
    }
    50% {
        opacity: 0.5;
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateZ(0) scale(1);
        filter: blur(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SPECIFIC STYLES - HlavnÃ­ strÃ¡nka ===== */

/* Loading Screen */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: radial-gradient(circle at 30% 50%, var(--accent-bg) 0%, transparent 50%); */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* Light theme loader background */
[data-theme="light"] #loader {
    background: radial-gradient(circle at 30% 50%, rgba(122, 222, 255, 0.55) 0%, var(--bg-primary) 50%),
                var(--bg-primary);
}

/* Dark theme specific loader background */
[data-theme="dark"] #loader {
    background-color: #030303;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Gradient maska pro plynulé splývání s pozadím - dynamická barva z JS */
.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to right, var(--loader-mask-color, #f8fafb) 0%, transparent 15%, transparent 85%, var(--loader-mask-color, #f8fafb) 100%),
        linear-gradient(to bottom, var(--loader-mask-color, #f8fafb) 0%, transparent 15%, transparent 85%, var(--loader-mask-color, #f8fafb) 100%);
    pointer-events: none;
    z-index: 20;
}

#loaderVideo {
    min-width: 100%;
    min-height: 100%;
    width: 80%;
    height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.loading-text {
    color: #fff;
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 300;
    animation: fadeInOut 2s ease-in-out infinite;
    position: relative;
    z-index: 10;
}

/* Hero Background */
.hero-bg {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, var(--accent-bg) 0%, transparent 50%);
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Stats Counter Animation */
.stat-item {
    animation: countUp 0.8s ease forwards;
}

/* Hero Text Animations */
.hero-title, .hero-subtitle, .hero-buttons, .hero-stats {
    opacity: 0;
}

.hero-content.active .hero-title {
    animation: driveIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-content.active .hero-subtitle {
    animation: driveIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.hero-content.active .hero-buttons {
    animation: driveIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

.hero-content.active .hero-stats {
    animation: fadeInUp 1s ease 0.9s forwards;
}

/* ===== SPECIFIC STYLES - CenÃ­k strÃ¡nka ===== */

/* Body s pozadÃ­m pro cenÃ­k */
body.cenik-page {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
}

body.cenik-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, var(--accent-bg) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

main {
    position: relative;
    z-index: 1;
}

/* Table Styles */
.price-table {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 3rem;
    /* box-shadow: 0 8px 32px var(--shadow-color); */
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
}

.price-table thead {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

.price-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.price-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.price-table tbody tr {
    transition: all 0.3s ease;
}

.price-table tbody tr:hover {
    background: var(--accent-bg);
    transform: translateX(4px);
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

.price-highlight {
    background: var(--accent-bg);
    border-left: 3px solid var(--primary-color);
}

.price-value {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary-color);
}

/* Section Headers */
.section-header {
    background: var(--card-bg);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px var(--shadow-color);
}

.section-header h2 {
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
}

/* ===== RESPONSIVE - Mobile ===== */
@media (max-width: 768px) {
    .price-table {
        overflow-x: auto;
    }
    
    .price-table table {
        min-width: 800px;
    }
    
    .price-table th,
    .price-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .theme-switcher {
        bottom: 1rem;
        right: 1rem;
        padding: 0.4rem;
    }
    
    .theme-btn {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.bg-primary {
    background-color: var(--bg-primary) !important;
}

.bg-secondary {
    background-color: var(--bg-secondary) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%) !important;
}

/* ===== TAILWIND OVERRIDES FOR THEME COMPATIBILITY ===== */

/* Background colors */
.bg-black {
    background-color: var(--bg-primary) !important;
}

.bg-gray-900 {
    background-color: var(--bg-secondary) !important;
}

.bg-gray-800 {
    background-color: var(--bg-tertiary) !important;
}

.bg-gray-950 {
    background-color: var(--bg-primary) !important;
}

/* Additional gray shades for dark theme blue tint */
[data-theme="dark"] .bg-gray-700 {
    background-color: rgb(55, 65, 81) !important; /* Gray-700 with blue tint */
}

[data-theme="dark"] .bg-gray-600 {
    background-color: rgb(75, 85, 99) !important; /* Gray-600 with blue tint */
}

[data-theme="dark"] .border-gray-600,
[data-theme="dark"] .border-gray-700 {
    border-color: rgb(75, 85, 99) !important;
}

/* Text colors */
body.bg-gray-900 {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

.text-white {
    color: var(--text-primary) !important;
}

.text-gray-400 {
    color: var(--text-secondary) !important;
}

.text-gray-500 {
    color: var(--text-muted) !important;
}

.text-gray-300 {
    color: var(--text-secondary) !important;
}

/* Border colors */
.border-gray-700,
.border-gray-800 {
    border-color: var(--border-color) !important;
}

.border-red-500 {
    border-color: var(--primary-color) !important;
}

/* Border with opacity variants */
.border-red-500\/50 {
    border-color: rgba(var(--primary-color-rgb), 0.5) !important;
}

.border-red-900 {
    border-color: var(--primary-hover) !important;
}

/* Gradient backgrounds */
.bg-gradient-to-b.from-black {
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary)) !important;
}

.bg-gradient-to-b.from-gray-900 {
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary)) !important;
}

.bg-gradient-to-br.from-red-900\/20 {
    background: linear-gradient(to bottom right, var(--accent-bg), transparent) !important;
}

.bg-gradient-to-br.from-red-900\/30 {
    background: linear-gradient(to bottom right, var(--accent-bg), var(--bg-tertiary)) !important;
}

.bg-gradient-to-br.from-red-900\/40 {
    background: linear-gradient(to bottom right, var(--accent-bg), var(--bg-tertiary)) !important;
}

/* Red color overrides */
.text-red-500,
.text-red-600 {
    color: var(--primary-color) !important;
}

.bg-red-500,
.bg-red-600,
.bg-red-700 {
    background-color: var(--primary-color) !important;
}

.bg-red-800,
.bg-red-900 {
    background-color: var(--primary-hover) !important;
}

.hover\:text-red-500:hover {
    color: var(--primary-color) !important;
}

.hover\:bg-red-500:hover {
    background-color: var(--primary-color) !important;
}

.hover\:bg-red-600:hover,
.hover\:bg-red-700:hover,
.hover\:bg-red-800:hover {
    background-color: var(--primary-hover) !important;
}

/* Red gradient backgrounds with opacity */
.from-red-900\/50,
.from-red-900\/40,
.from-red-900\/30,
.from-red-900\/20 {
    background: linear-gradient(to bottom right, var(--accent-bg), transparent) !important;
}

/* Gray gradient backgrounds with opacity - for light/dark theme */
.from-gray-900\/80 {
    --tw-gradient-from: rgba(var(--bg-secondary-rgb), 0.8) !important;
    --tw-gradient-to: rgb(var(--bg-secondary-rgb) / 0) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.from-gray-900\/50 {
    --tw-gradient-from: rgba(var(--bg-secondary-rgb), 0.5) !important;
    --tw-gradient-to: rgb(var(--bg-secondary-rgb) / 0) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.bg-gradient-to-r.from-red-500,
.bg-gradient-to-r.from-red-600 {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end)) !important;
}

/* Font weight overrides for better readability in light mode */
:root .font-semibold {
    font-weight: 600;
}

[data-theme="dark"] .font-semibold {
    font-weight: 600;
}

/* Specific section overrides */
section.bg-black,
section.py-24.bg-black {
    background-color: var(--bg-primary) !important;
}

section.bg-gradient-to-b {
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary)) !important;
}

/* Footer override */
footer.bg-gray-950 {
    background-color: var(--bg-tertiary) !important;
}

/* Card backgrounds */
.card-hover.bg-gray-800,
.bg-gray-800.rounded-2xl {
    background-color: var(--card-bg) !important;
}

/* Shadow colors */
.shadow-red-500\/50 {
    box-shadow: 0 10px 30px var(--shadow-color) !important;
}

/* Headings and important text - ensure they use theme colors */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

p {
    color: var(--text-primary);
}

/* Links */
a {
    color: var(--text-primary);
}

a:hover {
    color: white;
}

/* Specific overrides for problematic sections */
.hero-subtitle {
    color: var(--text-secondary) !important;
}

/* Stats and counters */
.stat-item .text-gray-400 {
    color: var(--text-muted) !important;
}

/* Ensure all cards have proper background */
.rounded-2xl,
.rounded-xl {
    background-color: var(--card-bg);
}

/* Price table specific fixes */
.price-table .text-white {
    color: white !important; /* Keep white in table headers */
}

/* Keep some elements explicitly white/dark based on context */
.modal-header h3,
.modal-header .text-xl {
    color: white !important;
}

/* Mobile menu text colors */
.mobile-menu .text-gray-400 {
    color: var(--text-secondary) !important;
}

/* Input and form colors */
input, textarea, select {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.focus\:ring-red-500:focus {
    --tw-ring-color: rgba(var(--primary-color-rgb), 0.5) !important;
}

/* Border variants for primary color */
.border-2.border-red-500 {
    border-color: var(--primary-color) !important;
}

.border-2.border-white {
    border-color: var(--text-primary) !important;
}

/* Hover states for CTA buttons and links */
a.border-2:hover,
button.border-2:hover {
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Specific overrides for phone number links */
a[href^="tel:"]:hover {
    color: var(--primary-color) !important;
}

/* Ensure proper contrast for all border buttons on hover */
.border-2.hover\:bg-white:hover,
.border-2.hover\:bg-red-500:hover {
    box-shadow: 0 4px 12px var(--shadow-color);
}

/* Hover states for borders */
.hover\:border-red-500:hover {
    border-color: var(--primary-color) !important;
}

/* Background hover states */
.hover\:bg-white:hover {
    background-color: var(--text-primary) !important;
    color: var(--bg-primary) !important;
}

.hover\:text-black:hover {
    color: var(--bg-primary) !important;
}

/* Border button hover states - ensure proper contrast */
.border-white.hover\:bg-white:hover,
.border-2.border-white.hover\:bg-white:hover {
    background-color: var(--text-primary) !important;
    color: var(--bg-primary) !important;
    border-color: var(--text-primary) !important;
}

/* Primary color border buttons */
.border-red-500.hover\:bg-red-500:hover,
.border-2.border-red-500.hover\:bg-red-500:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

/* Ensure text color changes on hover for border buttons */
button.border-2:hover,
a.border-2:hover {
    color: var(--bg-primary) !important;
}

button.border-2.border-red-500:hover,
a.border-2.border-red-500:hover {
    color: white !important;
}

/* Specific section background fixes */
#o-nas {
    background-color: var(--bg-primary) !important;
}

#kurzy {
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary)) !important;
}

#kontakt {
    background-color: var(--bg-primary) !important;
}

/* WhatsApp - zelená */
a[href^="https://wa.me"]:hover,
a[href*="whatsapp"]:hover {
    background-color: #25D366 !important; /* WhatsApp zelená */
}

/* Facebook - modrá */
a[href*="facebook"]:hover {
    background-color: #1877F2 !important; /* Facebook modrá */
}

/* ===== CENIK PAGE SPECIFIC OVERRIDES ===== */
body.cenik-page {
    background: var(--bg-primary) !important;
}

body.cenik-page main {
    color: var(--text-primary) !important;
}

body.cenik-page h1,
body.cenik-page h2,
body.cenik-page h3 {
    color: var(--text-primary) !important;
}

body.cenik-page .text-gray-400,
body.cenik-page .text-gray-300 {
    color: var(--text-secondary) !important;
}

body.cenik-page .text-gray-500 {
    color: var(--text-muted) !important;
}

/* CTA sections */
.bg-gradient-to-br.from-red-900\/20 {
    background: linear-gradient(to bottom right, var(--accent-bg), var(--bg-secondary)) !important;
    border-color: var(--border-color) !important;
}

/* ===== GIFT VOUCHER FORM STYLES ===== */
#giftVoucherWrapper {
    animation: slideDown 0.3s ease;
}

#giftVoucherWrapper.hidden {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Select styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px !important;
}

select option {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 10px;
}

/* Form button disabled state */
#submitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form message styles */
#formMessage {
    animation: fadeIn 0.3s ease;
}

#formMessage.hidden {
    display: none;
}

/* Success/Error colors that work with theme */
.bg-green-600 {
    background-color: #059669 !important;
}

/* ===== CAR GALLERY / IMAGE SLIDER ===== */
.car-gallery {
    position: relative;
}

.car-gallery .gallery-image {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
}

.car-gallery .gallery-image.active {
    opacity: 1;
    pointer-events: auto;
}

.car-gallery .gallery-prev,
.car-gallery .gallery-next {
    opacity: 0;
    transition: opacity 0.3s ease;
    /* Backdrop blur pro lepší viditelnost na tmavých fotkách */
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.car-gallery .gallery-prev:hover,
.car-gallery .gallery-next:hover {
    background: rgba(255, 255, 255, 0.35) !important;
}

.car-gallery:hover .gallery-prev,
.car-gallery:hover .gallery-next {
    opacity: 1;
}

.car-gallery .gallery-dots span {
    transition: all 0.3s ease;
}

.car-gallery .gallery-dots span:hover {
    transform: scale(1.2);
}

.car-gallery .gallery-dots span.active {
    transform: scale(1.1);
}
