/* Homepage Banners CSS - Moderní Design */
.banners-section {
    width: 100%;
    padding: 30px 0;
    margin: 40px 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.banners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

.banners-section-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.banners-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.banner-item {
    display: inline-block;
    position: relative;
    line-height: 0;
}

.banner-link {
    display: inline-block;
    line-height: 0;
}

.banner-container {
    display: inline-block;
    line-height: 0;
}

.banner-image {
    width: 125px;
    height: 125px;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
}



/* Fallback content pro prázdné bannery */
.banners-fallback {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.8);
}

.banners-fallback h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.banners-fallback p {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.banners-fallback .btn {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.banners-fallback .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    text-decoration: none;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banners-section {
        padding: 25px 0;
        margin: 30px 0;
        border-radius: 12px;
    }
    
    .banners-container {
        gap: 15px;
        padding: 0 20px;
    }
    
    .banner-image {
        width: 100px;
        height: 100px;
    }
    
    .banners-section-title {
        font-size: 1.2rem;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 480px) {
    .banners-section {
        padding: 20px 0;
        margin: 20px 0;
    }
    
    .banner-image {
        width: 90px;
        height: 90px;
    }
    
    .banners-container {
        gap: 12px;
        padding: 0 15px;
    }
    
    .banners-section-title {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    
    .banners-fallback {
        padding: 30px 15px;
    }
    
    .banners-fallback h3 {
        font-size: 1.1rem;
    }
    
    .banners-fallback p {
        font-size: 0.9rem;
    }
}

/* Loading Animation */
.banner-item.loading {
    animation: bannerPulse 2s ease-in-out infinite;
}

@keyframes bannerPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

/* Hover efekty pro celou sekci */
.banners-section:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Animace při načtení */
.banner-item {
    animation: bannerFadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.banner-item:nth-child(1) { animation-delay: 0.1s; }
.banner-item:nth-child(2) { animation-delay: 0.2s; }
.banner-item:nth-child(3) { animation-delay: 0.3s; }
.banner-item:nth-child(4) { animation-delay: 0.4s; }
.banner-item:nth-child(5) { animation-delay: 0.5s; }
.banner-item:nth-child(6) { animation-delay: 0.6s; }
.banner-item:nth-child(7) { animation-delay: 0.7s; }
.banner-item:nth-child(8) { animation-delay: 0.8s; }

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

/* Dark mode optimalizace */
@media (prefers-color-scheme: dark) {
    .banners-section {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(16, 185, 129, 0.15));
        border-color: rgba(255, 255, 255, 0.2);
    }
    

}
