/* Barski Sponsors CSS */

/* Tier Sections */
.barski-tier-section {
    margin-bottom: 60px;
    position: relative;
}

.barski-tier-section:not(:last-child)::after {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(210, 4, 45, 0.5), rgba(221, 153, 51, 0.5), transparent);
    margin: 60px auto 0;
    max-width: 80%;
}

/* TIER 1: 3 kolommen - Grootste sponsors */
.barski-sponsors-grid.tier-1-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.tier-1-grid .sponsor-item {
    background: rgba(255, 255, 255, 0.06);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    position: relative;
    overflow: hidden;
}

.tier-1-grid .sponsor-logo {
    max-width: 100%;
    max-height: 220px;
    height: auto;
    width: auto;
    filter: brightness(0.95) contrast(1.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    object-fit: contain;
}

/* TIER 2: 3 kolommen - Grote sponsors */
.barski-sponsors-grid.tier-2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.tier-2-grid .sponsor-item {
    background: rgba(255, 255, 255, 0.055);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.tier-2-grid .sponsor-logo {
    max-width: 100%;
    max-height: 200px;
    height: auto;
    width: auto;
    filter: brightness(0.95) contrast(1.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    object-fit: contain;
}

/* TIER 3: 4 kolommen - Normale sponsors */
.barski-sponsors-grid.tier-3-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tier-3-grid .sponsor-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

.tier-3-grid .sponsor-logo {
    max-width: 100%;
    max-height: 180px;
    height: auto;
    width: auto;
    filter: brightness(0.95) contrast(1.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    object-fit: contain;
}

/* TIER 4: 5 kolommen - Compacte sponsors */
.barski-sponsors-grid.tier-4-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.tier-4-grid .sponsor-item {
    background: rgba(255, 255, 255, 0.045);
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    position: relative;
    overflow: hidden;
}

.tier-4-grid .sponsor-logo {
    max-width: 100%;
    max-height: 160px;
    height: auto;
    width: auto;
    filter: brightness(0.95) contrast(1.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    object-fit: contain;
}

/* Hover effects voor alle tiers */
.sponsor-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(210, 4, 45, 0) 0%, rgba(210, 4, 45, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sponsor-item:hover {
    background: rgba(210, 4, 45, 0.08);
    border-color: #d2042d;
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(210, 4, 45, 0.3);
}

.sponsor-item:hover::before {
    opacity: 1;
}

.sponsor-item:hover .sponsor-logo {
    filter: brightness(1.15) contrast(1.2);
    transform: scale(1.08);
}

.sponsor-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Tier count */
.tier-count {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    margin-top: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* CAROUSEL STYLES - Owl Carousel Compatible */
.barski-sponsors-carousel-wrapper {
    position: relative;
    overflow: visible;
    padding: 30px 0;
}

/* Owl Carousel override */
.barski-sponsors-carousel.owl-carousel {
    display: block;
}

.barski-sponsors-carousel .owl-stage-outer {
    overflow: hidden;
}

/* Hide navigation buttons */
.barski-sponsors-carousel .owl-nav,
.barski-sponsors-carousel .owl-dots {
    display: none !important;
}

/* Ensure owl-stage is visible */
.barski-sponsors-carousel .owl-stage {
    display: flex;
    align-items: center;
}

.barski-sponsors-carousel .sponsor-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    height: 180px;
    position: relative;
    overflow: hidden;
}

.barski-sponsors-carousel .sponsor-item:hover {
    background: rgba(210, 4, 45, 0.08);
    border-color: #d2042d;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(210, 4, 45, 0.3);
}

.barski-sponsors-carousel .sponsor-logo {
    max-width: 100%;
    max-height: 140px;
    height: auto;
    width: auto;
    filter: brightness(0.95) contrast(1.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    object-fit: contain;
}

.barski-sponsors-carousel .sponsor-item:hover .sponsor-logo {
    filter: brightness(1.1) contrast(1.2);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tier-1-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .tier-2-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .tier-3-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .tier-4-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .tier-1-grid, .tier-2-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .tier-3-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .tier-4-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .sponsor-item {
        padding: 15px;
        min-height: 150px;
    }
    .sponsor-logo {
        max-height: 150px;
    }
    .barski-sponsors-carousel .sponsor-item {
        flex: 0 0 220px;
    }
}

@media (max-width: 480px) {
    .tier-1-grid, .tier-2-grid, .tier-3-grid, .tier-4-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .sponsor-item {
        padding: 15px !important;
        min-height: auto !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .tier-1-grid .sponsor-item,
    .tier-2-grid .sponsor-item,
    .tier-3-grid .sponsor-item,
    .tier-4-grid .sponsor-item {
        padding: 15px !important;
        min-height: auto !important;
        height: auto !important;
    }

    .sponsor-logo {
        max-height: 100% !important;
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .tier-1-grid .sponsor-logo,
    .tier-2-grid .sponsor-logo,
    .tier-3-grid .sponsor-logo,
    .tier-4-grid .sponsor-logo {
        max-height: 100% !important;
        max-width: 100% !important;
    }

    .barski-sponsors-carousel .sponsor-item {
        flex: 0 0 180px;
    }
}
