/**
 * ============================================================================
 * LAYOUT.CSS - Hlavní layout a struktura stránky
 * ============================================================================
 *
 * Tento soubor obsahuje:
 * - CSS proměnné pro konzistentní layout (šířky, odsazení)
 * - Základní layoutové třídy (container, section)
 * - Navigation (menu)
 * - Hero sekce
 * - Info sekce (Jídelní lístek, Ceník)
 * - Footer (patička)
 * - Responzivní úpravy pro PC, tablety a mobily
 * ============================================================================
 */

/* ==========================================================================
   POZNÁMKA: Styly pro bg-slide jsou v style.css
   ========================================================================== */

/* ==========================================================================
   CSS PROMĚNNÉ PRO LAYOUT
   ========================================================================== */
:root {
    /* Maximální šířka obsahu */
    --content-max-width: 1200px;

    /* Odsazení od okraje pro různá zařízení */
    --spacing-desktop: 2rem;
    --spacing-tablet: 1.5rem;
    --spacing-mobile: 1rem;
    --spacing-mobile-xs: 0.5rem;

    /* Vnitřní padding pro sekce */
    --section-padding-desktop: 3rem;
    --section-padding-tablet: 2rem;
    --section-padding-mobile: 1.5rem;

    /* Šířka prvků (procenta z viewportu na menších obrazovkách) */
    --content-width: 90%;
}

/* ==========================================================================
   ZÁKLADNÍ LAYOUT - CONTAINER A SEKCE
   ========================================================================== */

/* Hlavní kontejner stránky */
.container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-desktop);
}

/* Hlavní obsahová oblast */
main.container {
    padding-top: 100px;
    padding-bottom: 50px;
}

/* ==========================================================================
   NAVIGATION - MENU
   ========================================================================== */

/* Hlavní navigační panel */
nav.glass-panel {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: var(--content-width);
    max-width: var(--content-max-width);
    padding: 1rem;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

/* Mobile layout - logo, theme toggle, then hamburger with space-between */
@media (max-width: 768px) {
    nav.glass-panel {
        display: grid;
        grid-template-columns: auto auto 1fr auto;
        gap: 0.5rem;
    }

    nav .logo {
        grid-column: 1;
    }

    .theme-toggle-mobile-header {
        grid-column: 2;
        display: flex !important;
        /* FIX: Show theme toggle on mobile */
    }

    .hamburger-btn {
        grid-column: 4;
        justify-self: end;
        display: flex !important;
        /* FIX: Show hamburger button on mobile */
    }

    .desktop-menu {
        display: none;
    }
}

/* Logo v menu */
nav .logo {
    font-weight: var(--logo-font-weight, var(--font-secondary-weight, 700));
    font-size: var(--logo-font-size, 2.2rem);
    font-family: var(--font-primary);
    text-decoration: none;
    cursor: pointer;
    padding-top: var(--logo-padding-top, -5px);
    padding-right: var(--logo-padding-right, 0px);
    padding-bottom: var(--logo-padding-bottom, -15px);
    padding-left: var(--logo-padding-left, 0px);
    margin-top: var(--logo-margin-top, 0px);
    margin-right: var(--logo-margin-right, 0px);
    margin-bottom: var(--logo-margin-bottom, 0px);
    margin-left: var(--logo-margin-left, 0px);
}

nav .logo:hover {
    opacity: 0.8;
}

/* Menu kontejner (tlačítka) */
nav .menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Mobile controls container - holds theme toggle and hamburger */
.mobile-controls {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

/* Theme toggle button in mobile header */
.theme-toggle-mobile-header {
    display: none;
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle-mobile-header:hover {
    border-color: var(--primary-color);
    background: var(--glass-bg);
}

/* Tlačítko pro přepínání tématu v menu */
#theme-toggle {
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tlačítko Přihlásit v menu */
#nav-login {
    padding: 0.5rem 1rem;
    font-size: var(--nav-link-size, 0.9rem);
    font-weight: var(--nav-link-weight, 500);
    font-family: var(--font-secondary);
}

/* Navigační odkazy v menu */
.nav-link {
    padding: 0.5rem 1rem;
    font-size: var(--nav-link-size, 0.9rem);
    font-weight: var(--nav-link-weight, 500);
    font-family: var(--font-secondary);
    text-decoration: none;
}

/* ==========================================================================
   HERO SEKCE
   ========================================================================== */

/* Hlavní hero sekce */
#hero-section {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Hlavní nadpis s glow efektem */
#hero-section h1 {
    font-size: var(--hero-h1-size, 8.2rem);
    margin-bottom: 0;
    font-family: var(--hero-h1-font, var(--font-primary));
    font-weight: var(--hero-h1-weight, var(--font-secondary-weight, 400));
    color: var(--hero-h1-color, var(--hero-title-color, #ffffff));
    /* Glow efekt s velkým rozptylem */
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.9),
        0 0 30px rgba(255, 255, 255, 0.6),
        0 0 60px rgba(255, 255, 255, 0.4),
        0 0 100px rgba(255, 255, 255, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.5);
    /* Jemná animace glow efektu */
    animation: heroGlow 4s ease-in-out infinite;
}

/* Animace glow efektu */
@keyframes heroGlow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.9),
            0 0 30px rgba(255, 255, 255, 0.6),
            0 0 60px rgba(255, 255, 255, 0.4),
            0 0 100px rgba(255, 255, 255, 0.2),
            0 4px 10px rgba(0, 0, 0, 0.5);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 1),
            0 0 45px rgba(255, 255, 255, 0.8),
            0 0 90px rgba(255, 255, 255, 0.6),
            0 0 140px rgba(255, 255, 255, 0.4),
            0 4px 10px rgba(0, 0, 0, 0.5);
    }
}

/* Podtitul pod hlavním nadpisem s glow efektem */
.hero-tagline {
    font-size: var(--hero-p-size, 1.4rem);
    font-weight: var(--hero-p-weight, var(--font-primary-weight, 600));
    color: var(--text-color);
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
    /* Glow efekt s velkým rozptylem pro lepší kontrast */
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.7),
        0 0 25px rgba(255, 255, 255, 0.4),
        0 0 50px rgba(255, 255, 255, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.3);
    /* Jemná animace glow efektu */
    animation: heroTaglineGlow 4s ease-in-out infinite;
}

/* Animace glow efektu pro podtitulek */
@keyframes heroTaglineGlow {
    0%, 100% {
        text-shadow: 
            0 0 8px rgba(255, 255, 255, 0.7),
            0 0 25px rgba(255, 255, 255, 0.4),
            0 0 50px rgba(255, 255, 255, 0.2),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 
            0 0 12px rgba(255, 255, 255, 0.9),
            0 0 35px rgba(255, 255, 255, 0.6),
            0 0 70px rgba(255, 255, 255, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

/* Kontejner pro rotující podnadpisy */
#hero-subtitle-container {
    font-size: var(--hero-p-size, 1.2rem);
    max-width: 600px;
    margin-bottom: 2rem;
    min-height: 3.5rem;
    position: relative;
    font-family: var(--hero-p-font, var(--font-primary));
    font-weight: var(--hero-p-weight, var(--font-primary-weight, 400));
    margin-top: 0.5rem;
}

/* Jednotlivé podnadpisy */
.hero-subtitle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: var(--text-color);
}

/* První podnadpis je relativní, ne absolutní */
.hero-subtitle.active {
    position: relative;
}

/* Kontejner pro CTA tlačítka */
#hero-section>div:has(> #hero-cta-code) {
    display: flex;
    gap: 1rem;
}

/* Token input kontejner */
#token-input-container {
    margin-top: 2rem;
    padding: 2rem;
    max-width: 400px;
}

#token-input-container p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

#verify-token-btn {
    width: 100%;
}

#back-to-hero {
    width: 100%;
    border: none;
    font-size: 0.8rem;
}

/* ==========================================================================
   INFO SEKCE (Jídelní lístek, Ceník & Benefity)
   ========================================================================== */

/* Hlavní info sekce */
#info-section {
    margin-top: 12rem;
    padding: var(--section-padding-desktop);
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
    width: var(--content-width);
    box-sizing: border-box;
}

/* Grid layout pro obsah info sekce */
#info-section>div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

/* Styly pro texty v info sekci */
#info-section p {
    opacity: 0.8;
}

/* Cena v sekci Ceník */
#info-section h3 {
    color: var(--secondary-color);
}

/* Seznamy v info sekci */
#info-section ul {
    opacity: 0.8;
    list-style-position: inside;
    line-height: 1.8;
}

/* ==========================================================================
   RAUTY SEKCE
   ========================================================================== */

/* Hlavní rauty sekce */
#rauty-section {
    padding: var(--section-padding-desktop);
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
    width: var(--content-width);
    box-sizing: border-box;
    margin-top: 3rem;
}

#rauty-section>div {
    display: flex;
    justify-content: center;
}

.rauty-content {
    max-width: 700px;
    width: 100%;
}

.rauty-list {
    list-style: none;
    padding: 0;
}

.rauty-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.rauty-list li:last-child {
    border-bottom: none;
}

.rauty-info {
    padding: 1rem 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(249, 115, 22, 0.1));
}

.rauty-cta {
    text-align: center;
    margin-top: 2rem;
}

/* ==========================================================================
   VYLEPŠENÁ RAUTY SEKCE
   ========================================================================== */

/* Hlavička sekce */
.rauty-header {
    text-align: center;
    margin-bottom: 2rem;
}

.rauty-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.rauty-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.rauty-lead {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid karet */
.rauty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.rauty-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.rauty-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.rauty-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.rauty-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.rauty-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
}

.rauty-card-wide {
    grid-column: span 1;
}

/* Info box - minimální množství */
.rauty-info-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(249, 115, 22, 0.15));
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 1rem;
    margin: 2rem 0;
}

.rauty-info-icon {
    font-size: 1.5rem;
}

.rauty-info-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rauty-info-content strong {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

.rauty-info-highlight {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* CTA box */
.rauty-cta-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.rauty-cta-text {
    margin-bottom: 1.5rem;
}

.rauty-cta-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.rauty-cta-text p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.rauty-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-primary), sans-serif;
    padding: 1rem 2rem;
    font-size: 1rem;
}

.rauty-cta-btn span {
    font-size: 1.2rem;
}

/* Rauty mini box v jídelním lístku */
.rauty-mini-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(249, 115, 22, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.rauty-mini-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.rauty-mini-icon {
    font-size: 1.5rem;
}

.rauty-mini-header h4 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-color);
}

.rauty-mini-box p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.rauty-mini-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rauty-mini-items span {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 9999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    opacity: 0.9;
}

.rauty-mini-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
}

/* ==========================================================================
   KONTAKT SEKCE
   ========================================================================== */

/* Hlavní kontakt sekce */
#contact-section {
    padding: var(--section-padding-desktop);
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
    width: var(--content-width);
    box-sizing: border-box;
    margin-top: 3rem;
}

#contact-section>div {
    display: flex;
    justify-content: center;
}

.contact-content {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.contact-cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

/* ==========================================================================
   KONTAKTNÍ KARTY - NOVÝ MODERNÍ LAYOUT
   ========================================================================== */

/* Úvodní text kontaktu */
.contact-intro {
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Grid kontaktních karet */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Jednotlivá kontaktní karta */
.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Gradient pozadí při hoveru */
.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

/* Hover efekty karty */
.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 20px rgba(16, 185, 129, 0.3);
}

.contact-card:hover::before {
    opacity: 0.1;
}

/* Ikona v kartě */
.contact-card-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Animace ikony při hoveru */
.contact-card:hover .contact-card-icon {
    transform: rotate(5deg);
}

/* Obsah karty */
.contact-card-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.contact-card-content h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-card-content p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.contact-card:hover .contact-card-content p {
    color: var(--text-color);
}

/* Šipka indikátor */
.contact-card-arrow {
    font-size: 1.25rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    color: var(--primary-color);
}

.contact-card:hover .contact-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Upravený CTA */
.contact-cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.contact-cta p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* ==========================================================================
   KONTAKT SEKCE - INFO GRID LAYOUT
   ========================================================================== */

/* Levý sloupec s textem */
.contact-text-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-text-column .lead-text {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* Pravý sloupec s kartami */
.contact-cards-column {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Upravený grid pro kontaktní karty ve sloupci */
.contact-cards-column .contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin: 0;
}


/* ==========================================================================
   FOOTER - PATIČKA
   ========================================================================== */

/* Hlavní footer */
footer.glass-panel {
    margin: 2rem auto;
    width: var(--content-width);
    max-width: var(--content-max-width);
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    box-sizing: border-box;
}

/* Levá část footeru (logo, verze, autor) */
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Název a verze v footeru */
.footer-info strong {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.footer-info span {
    opacity: 0.6;
    margin-left: 0.5rem;
}

/* Autor v footeru */
.footer-author {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-author a {
    text-decoration: underline;
    color: var(--primary-color, #10b981);
}

/* Footer links */
.footer-links {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-links-separator {
    opacity: 0.4;
}

/* Copyright řádek v footeru */
.footer-copy {
    width: 100%;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.5;
    text-align: center;
}

/* ==========================================================================
   MODÁLNÍ OKNA
   ========================================================================== */

/* Autentizační modál */
#auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--content-width);
    max-width: 400px;
    padding: 2rem;
    z-index: 1000;
}

/* Tlačítko zavření modálu */
#close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

/* Formuláře v modálu */
#auth-modal button[type="submit"] {
    width: 100%;
}

#auth-modal p {
    font-size: 0.9rem;
}

#auth-modal a {
    text-decoration: underline;
}

/* ==========================================================================
   RESPONZIVNÍ STYLY - TABLETY (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    :root {
        --content-width: 95%;
    }

    .container {
        padding: 0 var(--spacing-tablet);
    }

    main.container {
        padding-top: 90px;
    }

    /* Navigation */
    nav.glass-panel {
        padding: 0.75rem;
        top: 0.75rem;
    }

    /* Hero sekce */
    #hero-section h1 {
        font-size: 6rem;
    }

    /* Info sekce */
    #info-section {
        padding: var(--section-padding-tablet);
        width: var(--content-width);
    }

    #info-section>div {
        gap: 2rem;
    }

    /* Rauty sekce */
    #rauty-section {
        padding: var(--section-padding-tablet);
        width: var(--content-width);
    }

    .rauty-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rauty-card-wide {
        grid-column: span 2;
    }

    .rauty-header h2 {
        font-size: 1.75rem;
    }

    /* Contact sekce */
    #contact-section {
        padding: var(--section-padding-tablet);
        width: var(--content-width);
    }

    /* Footer */
    footer.glass-panel {
        padding: 1.5rem;
        width: var(--content-width);
    }
}

/* ==========================================================================
   RESPONZIVNÍ STYLY - MOBILY (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --content-width: 95%;
    }

    .container {
        padding: 0 var(--spacing-mobile);
    }

    main.container {
        padding-top: 80px;
        padding-left: var(--spacing-mobile-xs);
        padding-right: var(--spacing-mobile-xs);
    }

    /* Navigation */
    nav.glass-panel {
        width: var(--content-width);
        padding: 0.75rem;
        top: 0.5rem;
    }

    nav .logo {
        font-size: 1rem;
    }

    /* Hero sekce */
    #hero-section h1 {
        font-size: 3rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    #hero-section p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    /* Hero tlačítka - sloupec na mobilech */
    #hero-section>div:has(> #hero-cta-code) {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        padding: 0 1rem;
    }

    #hero-section .btn,
    #hero-section .btn-outline {
        width: 100%;
        text-align: center;
    }

    /* Token input */
    #token-input-container {
        width: 95%;
        max-width: none;
        padding: 1.5rem;
        margin-left: auto;
        margin-right: auto;
    }

    /* Info sekce */
    #info-section {
        padding: var(--section-padding-mobile) var(--spacing-mobile);
        margin-top: 2rem;
    }

    #info-section>div {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Rauty sekce */
    #rauty-section {
        padding: var(--section-padding-mobile) var(--spacing-mobile);
    }

    .rauty-grid {
        grid-template-columns: 1fr;
    }

    .rauty-card-wide {
        grid-column: span 1;
    }

    .rauty-card {
        padding: 1.25rem;
    }

    .rauty-card-icon {
        font-size: 2rem;
    }

    .rauty-header h2 {
        font-size: 1.5rem;
    }

    .rauty-lead {
        font-size: 1rem;
    }

    .rauty-info-box {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .rauty-info-content {
        align-items: center;
    }

    .rauty-cta-box {
        padding: 1.5rem;
    }

    .rauty-cta-btn {
        width: 100%;
        justify-content: center;
    }

    /* Contact sekce */
    #contact-section {
        padding: var(--section-padding-mobile) var(--spacing-mobile);
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-card {
        padding: 1.25rem;
    }

    .contact-card-arrow {
        display: none;
    }

    /* Info grid layout pro kontakt na mobilech */
    #contact-section .info-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .contact-text-column {
        text-align: center;
        order: 1;
    }

    .contact-cards-column {
        order: 2;
        width: 100%;
    }

    .contact-cards-column .contact-cards {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .contact-cards-column .contact-cards .contact-card {
        width: 100%;
        box-sizing: border-box;
    }

    /* Footer */
    footer.glass-panel {
        flex-direction: column;
        flex-wrap: wrap;
        text-align: center;
        padding: 1.5rem;
        align-items: center;
    }

    footer .footer-left {
        align-items: center;
    }

    footer .footer-info,
    footer .footer-author,
    footer .footer-links {
        width: 100%;
    }

    footer .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        margin-left: 0;
        margin-top: 0.5rem;
    }

    footer .footer-links a {
        white-space: normal;
    }

    /* Modál */
    #auth-modal {
        width: 95%;
        max-width: none;
        padding: 1.5rem;
    }
}

/* ==========================================================================
   RESPONZIVNÍ STYLY - MALÉ MOBILY (max-width: 375px)
   ========================================================================== */
@media (max-width: 375px) {
    .container {
        padding: 0 var(--spacing-mobile-xs);
    }

    /* Navigation */
    nav .logo {
        font-size: 0.9rem;
    }

    #nav-login {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .nav-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Hero sekce */
    #hero-section h1 {
        font-size: 2.5rem;
    }

    /* Info sekce */
    #info-section {
        padding: var(--spacing-mobile) var(--spacing-mobile-xs);
    }

    #info-section>div {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Rauty sekce */
    #rauty-section {
        padding: var(--spacing-mobile) var(--spacing-mobile-xs);
    }

    .rauty-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .rauty-card {
        padding: 1rem;
    }

    .rauty-card-icon {
        font-size: 1.75rem;
    }

    .rauty-card h4 {
        font-size: 1rem;
    }

    .rauty-card p {
        font-size: 0.85rem;
    }

    .rauty-header h2 {
        font-size: 1.35rem;
    }

    .rauty-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.75rem;
    }

    .rauty-info-box {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    .rauty-info-highlight {
        font-size: 1.25rem;
    }

    .rauty-cta-box {
        padding: 1.25rem;
        margin-top: 1.5rem;
    }

    .rauty-cta-text h3 {
        font-size: 1.1rem;
    }

    .rauty-cta-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Contact sekce */
    #contact-section {
        padding: var(--spacing-mobile) var(--spacing-mobile-xs);
    }

    .contact-card {
        padding: 1rem;
    }

    .contact-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .contact-card-content p {
        font-size: 1rem;
    }

    .contact-intro {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
    HAMBURGER MENU - MOBILNÍ NAVIGACE
    ========================================================================== */

/* Hamburger tlačítko - skryté na desktopu */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    border-color: var(--primary-color);
    background: var(--glass-bg);
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobilní menu - slide-in sidebar */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
}

.mobile-menu-title {
    font-family: 'Comforter', cursive;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close span {
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
}

.mobile-menu-close span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-close span:last-child {
    transform: rotate(-45deg);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    overflow-y: auto;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Zalando Sans Expanded', sans-serif;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.mobile-nav-link:hover {
    background: var(--glass-bg);
    color: var(--primary-color);
}

.mobile-nav-link.theme-toggle-mobile {
    margin-top: 0.5rem;
    border-top: 1px solid var(--glass-border);
    border-radius: 12px;
    padding-top: 1rem;
}

.theme-toggle-mobile .theme-icon {
    font-size: 1.2rem;
}

.theme-toggle-mobile .theme-text {
    font-size: 0.95rem;
}

/* Overlay pro mobilní menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Skrytí desktop menu na mobilech - duplicitní pravidla odstraněna,
   již definováno výše v grid layoutu */
@media (max-width: 768px) {

    /* Skrytí jednotlivých nav-link tlačítek v menu na mobilech */
    nav .menu .nav-link,
    nav .menu .btn-outline {
        display: none;
    }
}

/* Skrytí hamburger menu a mobilního přepínače tématu na desktopu */
@media (min-width: 769px) {

    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }

    .hamburger-btn {
        display: none !important;
    }

    /* Theme toggle visible on desktop too, positioned after logo */
    .theme-toggle-mobile-header {
        display: flex !important;
        margin-right: auto;
        margin-left: 0.5rem;
    }
}