/* ==========================================================================
   STYLE.CSS - Hlavní CSS soubor (importy)
   ==========================================================================
   
   MODULE: Main entry point
   PURPOSE: Importuje všechny CSS moduly v správném pořadí
   AUTHOR: Generated for Farka domů
   CREATED: 2026-02-22
   
   POZNÁMKA: Tento soubor pouze importuje ostatní moduly.
   Původní obsah byl rozdělen do samostatných souborů:
   - variables.css - CSS proměnné
   - typography.css - typografie a utility
   - components.css - tlačítka a komponenty
   - calendar.css - kalendář a menu
   - checkout.css - checkout modal
   - layout.css - layout stránky (navigace, footer, hero)
   - glass.css - glassmorphism efekty
   - pages.css - page-specific styly
   
   ========================================================================
   POŘADÍ IMPORTŮ JE DŮLEŽITÉ!
   ======================================================================== */

/* 1. Základní styly (proměnné musí být první) */
@import url('variables.css');
@import url('typography.css');

/* 2. Komponenty */
@import url('components.css');
@import url('glass.css');

/* 3. Layout */
@import url('layout.css');

/* 4. Feature-specific */
@import url('calendar.css');
@import url('checkout.css');

/* 5. Page-specific */
@import url('pages.css');

/* ========================================================================
   SPECIFICKÉ STYLY - Některé specifické styly, které nejsou v modulech
   ======================================================================== */

/* Background Slideshow */
#bg-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    filter: brightness(var(--bg-brightness, 1));
    -webkit-filter: brightness(var(--bg-brightness, 1));
}

.bg-slide.dark-slide {
    background-image: var(--bg-image, var(--bg-image-dark));
}

.bg-slide.light-slide {
    background-image: var(--bg-image, var(--bg-image-light));
}

.bg-slide.active {
    opacity: 1;
}

/* Dark overlay for background images */
#bg-slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(var(--bg-overlay-color), calc(var(--bg-overlay-opacity) * 0.8)) 0%,
            rgba(var(--bg-overlay-color), calc(var(--bg-overlay-opacity) * 0.5)) 50%,
            rgba(var(--bg-overlay-color), var(--bg-overlay-opacity)) 100%);
    pointer-events: none;
}

/* Liquid blobs - show for glass effect */
.liquid-blob {
    display: block;
}

/* Hero Subtitle Rotator */
#hero-subtitle-container {
    position: relative;
}

.hero-subtitle {
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================================================
   PROFILE STYLES - Profily uživatelů
   ======================================================================== */

.profile-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 800px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

.profile-form-panel {
    padding: 2rem;
}

.profile-form-panel .readonly-input {
    opacity: 0.6;
    cursor: not-allowed;
}

.history-panel {
    padding: 2rem;
    max-height: 600px;
    overflow-y: auto;
}

.history-row {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-row-header {
    display: flex;
    justify-content: space-between;
}

.history-row-dish {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========================================================================
   MOBILNÍ RESPNZIVNÍ STYLY - Různé mobilní úpravy
   ======================================================================== */

@media (max-width: 768px) {

    /* Navigation adjustments */
    nav.glass-panel {
        width: 95% !important;
        padding: 0.75rem !important;
        top: 0.5rem !important;
    }

    nav .logo {
        font-size: 1.5rem !important;
    }

    nav .menu {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    /* Theme toggle button - prevent overlap with nav */
    body>.btn-outline {
        top: 0.5rem !important;
        right: 0.5rem !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
        z-index: 1001 !important;
    }

    /* Hero section */
    #hero-section h1 {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    #hero-section p {
        font-size: 1rem !important;
        padding: 0 0.5rem;
    }

    /* Hero buttons */
    #hero-section>div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100%;
        padding: 0 1rem;
    }

    #hero-section .btn,
    #hero-section .btn-outline {
        width: 100%;
        text-align: center;
    }

    /* Token input container */
    #token-input-container {
        width: 95% !important;
        max-width: none !important;
        padding: 1.5rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Info section grid */
    #info-section>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    #info-section {
        padding: 2rem 1rem !important;
        margin-top: 2rem !important;
    }

    /* Modal adjustments */
    #auth-modal {
        width: 95% !important;
        max-width: none !important;
        padding: 1.5rem !important;
    }

    /* Footer adjustments */
    footer.glass-panel {
        flex-direction: column !important;
        text-align: center;
        padding: 1.5rem !important;
        align-items: center !important;
    }

    footer .footer-left {
        align-items: center !important;
    }

    footer .footer-info,
    footer .footer-author,
    footer .footer-links {
        width: 100%;
    }

    footer .footer-links {
        justify-content: center !important;
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }

    /* Main container padding */
    main.container {
        padding-top: 80px !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Container padding */
    .container {
        padding: 0 0.5rem;
    }

    /* Mobile-specific improvements */
    .glass-panel {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .btn-outline {
        border-width: 2px;
    }
    
    /* Better touch targets */
    .nav-link, .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Prevent zoom on form inputs */
    input, select, textarea {
        font-size: 16px;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    #hero-section h1 {
        font-size: 1.75rem !important;
    }

    nav .logo {
        font-size: 0.9rem !important;
    }

    #nav-login {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
}
