/* Sponsor Section Component - Modern, Isolated, API-Driven */

.ee-sponsor-section {
    background: var(--light-bg, #f8f9fa);
    padding: var(--spacing-lg, 32px) 0;
}

.ee-sponsor-section--has-bg {
    background: transparent;
    padding: 0;
}

.ee-sponsor-section__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.ee-sponsor-section--has-bg .ee-sponsor-section__container {
    padding: 0 1rem;
}

/* Full-width band (image or color) – same pattern as schedule/products */
.ee-sponsor-section__band {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 2.25rem;
    position: relative;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: var(--sponsor-section-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--sponsor-section-bg-color, transparent);
}

.ee-sponsor-section__band::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Overlay when band uses image (not for color-only) */
.ee-sponsor-section--has-bg-image .ee-sponsor-section__band::after {
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.55) 100%);
}

.ee-sponsor-section__band-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.25rem 1rem;
    width: 100%;
}

.ee-sponsor-section__loading {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.ee-sponsor-section__error {
    padding: 2rem;
    background: #f8d7da;
    color: #721c24;
    border-radius: 0.25rem;
    text-align: center;
}

.ee-sponsor-section__header {
    text-align: center;
    margin-bottom: var(--spacing-md, 14px);
}

.ee-sponsor-section__band .ee-sponsor-section__header {
    margin-bottom: 0;
}

/* Section header style: match Event Schedule / products (default section header font) */
.ee-sponsor-section__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.ee-sponsor-section__band .ee-sponsor-section__title {
    color: #fff;
    font-size: 2.25rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4), 0 0 24px rgba(0,0,0,0.2);
}

.ee-sponsor-section__subtitle {
    font-size: 1rem;
    color: #6c757d;
}

.ee-sponsor-section__band .ee-sponsor-section__subtitle {
    color: rgba(255,255,255,0.92);
    font-size: 0.9375rem;
}

/* Level 2 first after band: reduce top margin (band already has margin-bottom) */
.ee-sponsor-section__band + .ee-sponsor-section__level2-grid {
    margin-top: 0;
}

/* Level 2 Sponsors - Grid Layout (3 columns, 2 on mobile) */
.ee-sponsor-section__level2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xs, 6px);
    margin-top: var(--spacing-md, 14px);
}

@media (max-width: 768px) {
    .ee-sponsor-section__level2-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Section header: scale down to match other sections on mobile */
    .ee-sponsor-section__title {
        font-size: 1.25rem;
    }
    .ee-sponsor-section__band .ee-sponsor-section__title {
        font-size: 1.25rem;
    }
}

/* Level 3 Sponsors - Auto-scroll marquee (infinite repeat, no scrollbar) */
.ee-sponsor-section__level3-marquee {
    margin-top: var(--spacing-md, 14px);
    overflow: hidden;
    padding-bottom: var(--spacing-xs, 6px);
}

.ee-sponsor-section__level3-track {
    display: flex;
    width: max-content;
    animation: ee-sponsor-marquee 40s linear infinite;
}

.ee-sponsor-section__level3-track:hover {
    animation-play-state: paused;
}

.ee-sponsor-section__level3-set {
    display: flex;
    gap: var(--spacing-xs, 6px);
    flex-shrink: 0;
    padding-right: var(--spacing-xs, 6px);
}

.ee-sponsor-section__level3-set .ee-sponsor-section__card {
    flex: 0 0 150px;
    min-width: 150px;
    max-width: 200px;
}

@keyframes ee-sponsor-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .ee-sponsor-section__level3-set .ee-sponsor-section__card {
        flex: 0 0 120px;
        min-width: 120px;
        max-width: 140px;
    }
    .ee-sponsor-section__level3-track {
        animation-duration: 35s;
    }
}

/* Sponsor Card */
.ee-sponsor-section__card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    padding: var(--spacing-sm, 10px);
    min-height: 150px;
}

.ee-sponsor-section__level2-grid .ee-sponsor-section__card {
    width: 100%;
}

.ee-sponsor-section__level3-grid .ee-sponsor-section__card {
    flex: 0 0 calc(20% - var(--spacing-xs, 6px) * 0.8);
    min-width: 150px;
    max-width: 200px;
}

.ee-sponsor-section__card:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.ee-sponsor-section__link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ee-sponsor-section__logo {
    width: 100%;
    height: 150px;
    object-fit: contain;
    padding: var(--spacing-sm, 10px);
}

/* Empty State */
.ee-sponsor-section__empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.ee-sponsor-section__empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
