/**
 * HOME PAGE - Specifické styly pro úvodní stránku
 *
 * Import: main.css (globální komponenty) + barvy.css (barevné proměnné)
 * Obsahuje: Pouze home-specifické věci
 *
 * Poslední update: 2025-10-13
 */

/* ============================================
   1. HOME PAGE BODY
   ============================================ */

body.home-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--seda-50);
    overflow-x: hidden;
}

/* ============================================
   2. HERO SECTION - Plná výška viewport mínus header
   ============================================ */

.hero-section {
    padding: clamp(1rem, 2vw, 2rem) clamp(1rem, 2vw, 2rem) clamp(1.5rem, 3vw, 3rem);
    background: var(--seda-50);
    /* Fluid scaling - content fills viewport naturally */
}

/* ============================================
   3. HERO CONTENT - Layout kontejner
   ============================================ */

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
    width: 100%;
    max-width: 100%;
}

/* ============================================
   4. HERO TEXT - Levá strana
   ============================================ */

.hero-text {
    color: var(--cerna);
}

.hero-title {
    font-size: clamp(1.4rem, 3.5vw, 3rem);
    font-weight: 800;
    margin-bottom: clamp(0.5rem, 1.5vw, 1.2rem);
    line-height: 1.1;
    color: var(--cerna);
    animation: slideInLeft 0.8s ease-out;
}

.hero-subtitle {
    font-size: clamp(0.85rem, 1.5vw, 1.2rem);
    margin-bottom: clamp(1rem, 2vw, 1.8rem);
    opacity: 0.95;
    line-height: 1.5;
    color: var(--seda-700);
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

/* ============================================
   5. FEATURES - Grid 4 prvků
   ============================================ */

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(0.4rem, 1vw, 0.9rem);
    margin-bottom: clamp(1rem, 2vw, 1.8rem);
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: clamp(0.3rem, 0.8vw, 0.6rem);
    color: var(--cerna);
    font-weight: 500;
    font-size: clamp(0.65rem, 1.1vw, 0.9rem);
    background: rgba(255, 255, 255, 0.7);
    padding: clamp(0.35rem, 0.8vw, 0.6rem) clamp(0.4rem, 1vw, 0.8rem);
    border-radius: 8px;
    border: 1px solid var(--seda-200);
}

.feature-item i {
    width: clamp(18px, 3vw, 28px);
    height: clamp(18px, 3vw, 28px);
    background: var(--cervena-hlavni);
    color: var(--bila);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.6rem, 1vw, 0.85rem);
    flex-shrink: 0;
}

/* ============================================
   6. CTA BUTTON - Hlavní akční tlačítko
   ============================================ */

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 1vw, 0.85rem);
    background: var(--cervena-hlavni);
    color: var(--bila);
    padding: clamp(0.7rem, 1.3vw, 1.1rem) clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 50px;
    text-decoration: none;
    font-size: clamp(0.85rem, 1.4vw, 1.15rem);
    font-weight: 700;
    box-shadow: 0 6px 24px rgba(196, 30, 30, 0.25);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: slideInLeft 0.8s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(196, 30, 30, 0.5);
    text-decoration: none;
    color: var(--bila);
    background: var(--cervena-tmava);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button i {
    font-size: 1.2rem;
}

/* ============================================
   7. HERO VISUAL - Pravá strana
   ============================================ */

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    animation: slideInRight 0.8s ease-out 0.4s both;
}

.main-image {
    max-width: clamp(200px, 30vw, 450px);
    height: auto;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
    margin-bottom: clamp(0.15rem, 0.5vw, 0.35rem);
    background: transparent;
}

.main-image:hover {
    transform: scale(1.02);
}

/* ============================================
   8. STATS GRID - Statistické karty
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.4rem, 1.2vw, 1.2rem);
    width: 100%;
    margin-top: 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: clamp(8px, 1.5vw, 14px);
    padding: clamp(0.4rem, 1.2vw, 1rem) clamp(0.3rem, 0.8vw, 0.7rem);
    text-align: center;
    color: var(--cerna);
    border: 2px solid var(--seda-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-height: clamp(60px, 10vw, 90px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 1);
    border-color: var(--cervena-hlavni);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-size: clamp(0.9rem, 1.8vw, 1.6rem);
    font-weight: 700;
    display: block;
    margin-bottom: clamp(0.1rem, 0.3vw, 0.25rem);
    line-height: 1.2;
    color: var(--cervena-hlavni);
    white-space: nowrap;
}

.stat-label {
    font-size: clamp(0.5rem, 0.9vw, 0.75rem);
    opacity: 0.9;
    line-height: 1.3;
    color: var(--seda-600);
}

/* ============================================
   9. ANIMATIONS - Animace pro home page
   ============================================ */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ============================================
   10. RESPONSIVE DESIGN
   ============================================ */

/* Tablet/Mobile - single column layout */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
        width: 100%;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-title,
    .hero-subtitle {
        text-align: center;
        word-break: keep-all;
        hyphens: none;
    }

    /* Center features and stats with max-width */
    .hero-features {
        max-width: min(400px, 90vw);
    }

    .stats-grid {
        max-width: min(400px, 90vw);
    }
}

/* ============================================
   11. PRINT STYLES
   ============================================ */

@media print {
    .hero-section {
        height: auto;
        background: var(--bila);
        color: var(--cerna);
    }

    .hero-content {
        padding: 2rem;
    }

    .cta-button {
        display: none;
    }

    .stats-grid {
        display: none;
    }
}
