/* Modern Homepage Styles */
.homepage-container {
    min-height: 100vh;
    padding: 0;
    background: white;
}

.hero-section {
    text-align: center;
    padding: 100px 20px 80px;
    background: linear-gradient(135deg, var(--zbarva) 0%, var(--hbarva) 100%);
    color: white;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px 100px;
}

.tile {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
}

.tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.tile:hover::before {
    left: 100%;
}

.tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.tile-icon {
    width: 80px;
    height: 80px;
    background: var(--modra_pozadi);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--zbarva);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.tile:hover .tile-icon {
    background: var(--zbarva);
    color: white;
    transform: scale(1.05) rotate(5deg);
}

.tile-icon svg {
    width: 32px;
    height: 32px;
}

.tile h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bold);
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.tile p {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 32px;
    font-weight: 400;
}

.tile-link {
    display: inline-flex;
    align-items: center;
    color: var(--zbarva);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding: 12px 24px;
    border: 2px solid var(--zbarva);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.tile-link:hover {
    background: var(--zbarva);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.tile-link::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.tile-link:hover::after {
    transform: translateX(4px);
}

/* Specializované barvy pro různé dlaždice */
.tile-1 .tile-icon {
    background: var(--modra_pozadi);
    color: var(--modra_hlavni);
}

.tile-1:hover .tile-icon {
    background: var(--modra_hlavni);
}

.tile-1 .tile-link {
    border-color: var(--modra_hlavni);
    color: var(--modra_hlavni);
}

.tile-1 .tile-link:hover {
    background: var(--modra_hlavni);
    color: white;
}

.tile-2 .tile-icon {
    background: var(--zelena_pozadi);
    color: var(--zelena_hlavni);
}

.tile-2:hover .tile-icon {
    background: var(--zelena_hlavni);
}

.tile-2 .tile-link {
    border-color: var(--zelena_hlavni);
    color: var(--zelena_hlavni);
}

.tile-2 .tile-link:hover {
    background: var(--zelena_hlavni);
    color: white;
}

.tile-3 .tile-icon {
    background: var(--fialova_pozadi);
    color: var(--fialova_hlavni);
}

.tile-3:hover .tile-icon {
    background: var(--fialova_hlavni);
}

.tile-3 .tile-link {
    border-color: var(--fialova_hlavni);
    color: var(--fialova_hlavni);
}

.tile-3 .tile-link:hover {
    background: var(--fialova_hlavni);
    color: white;
}

.tile-4 .tile-icon {
    background: var(--zluta_pozadi);
    color: var(--zluta_hlavni);
}

.tile-4:hover .tile-icon {
    background: var(--zluta_hlavni);
}

.tile-4 .tile-link {
    border-color: var(--zluta_hlavni);
    color: var(--zluta_hlavni);
}

.tile-4 .tile-link:hover {
    background: var(--zluta_hlavni);
    color: white;
}

.tile-5 .tile-icon {
    background: var(--cervena_pozadi);
    color: var(--cervena_hlavni);
}

.tile-5:hover .tile-icon {
    background: var(--cervena_hlavni);
}

.tile-5 .tile-link {
    border-color: var(--cervena_hlavni);
    color: var(--cervena_hlavni);
}

.tile-5 .tile-link:hover {
    background: var(--cervena_hlavni);
    color: white;
}

.tile-6 .tile-icon {
    background: var(--sediva_pozadi);
    color: var(--sediva_hlavni);
}

.tile-6:hover .tile-icon {
    background: var(--sediva_hlavni);
}

.tile-6 .tile-link {
    border-color: var(--sediva_hlavni);
    color: var(--sediva_hlavni);
}

.tile-6 .tile-link:hover {
    background: var(--sediva_hlavni);
    color: white;
}

/* Moderní animace při načítání */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tile {
    animation: fadeInUp 0.6s ease-out forwards;
}

.tile:nth-child(1) { animation-delay: 0.1s; }
.tile:nth-child(2) { animation-delay: 0.2s; }
.tile:nth-child(3) { animation-delay: 0.3s; }
.tile:nth-child(4) { animation-delay: 0.4s; }
.tile:nth-child(5) { animation-delay: 0.5s; }
.tile:nth-child(6) { animation-delay: 0.6s; }

/* Responsivní design */
@media (max-width: 1024px) {
    .tiles-container {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
        padding: 0 30px 80px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 20px 60px;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-section p {
        font-size: 1.2rem;
    }
    
    .tiles-container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 20px 60px;
    }
    
    .tile {
        padding: 30px;
    }
    
    .tile-icon {
        width: 70px;
        height: 70px;
    }
    
    .tile h3 {
        font-size: 1.3rem;
    }
    
    .tile p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 15px 40px;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .tiles-container {
        padding: 0 15px 50px;
    }
    
    .tile {
        padding: 25px;
    }
    
    .tile-icon {
        width: 60px;
        height: 60px;
    }
    
    .tile-icon svg {
        width: 28px;
        height: 28px;
    }
}