/* Category Sponsors Frontend Styles */

.category-sponsors-wrapper {
    width: 100%;
    margin-top: 0.75rem;
    color: #fff;
}

.sponsors-label {
    color: #fff;
    width: 100%;
    height: auto;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 1rem;
    text-align: left;
}

.sponsors-container {
    margin: 0 auto;
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sponsor-item:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.sponsor-logo {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    transition: box-shadow 0.3s ease;
}

.sponsor-logo:hover {
    
}

.sponsor-name {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.sponsor-name:hover {
    color: #fff;
    text-decoration: none;
}

/* Link styling */
.sponsor-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.sponsor-item a:hover {
    text-decoration: none;
    color: inherit;
}

/* Multiple sponsors layout */
.sponsors-container.multiple-sponsors {
    justify-content: space-around;
}

.sponsors-container.multiple-sponsors .sponsor-item {
    flex: 0 1 auto;
    min-width: 120px;
}

/* Single sponsor centered */
.sponsors-container.single-sponsor {
    justify-content: center;
}

.sponsors-container.single-sponsor .sponsor-item {
    flex: 0 0 auto;
}

/* Responsive design */
@media (max-width: 768px) {
    .sponsors-container {
        flex-direction: column;
        gap: 10px;
        padding-top: 0.5rem;
    }
    
    .sponsor-logo {
        max-height: 60px;
    }
    
    .sponsors-label {
        font-size: 0.8rem;
        text-align: center;
    }
    
    .sponsor-name {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .sponsors-container {
        gap: 8px;
    }
    
    .sponsor-logo {
        max-height: 50px;
    }
    
    .sponsors-label {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .sponsor-name {
        font-size: 0.75rem;
        padding: 5px 8px;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .sponsor-logo {
        
    }
    
    .sponsor-logo:hover {
        
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .sponsor-name {
        border-width: 2px;
        font-weight: bold;
    }
    
    .sponsor-logo {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .sponsor-item,
    .sponsor-logo,
    .sponsor-name {
        transition: none;
    }
    
    .sponsor-item:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .category-sponsors-wrapper {
        color: #000;
        background: #fff;
    }
    
    .sponsors-label {
        color: #000;
    }
    
    .sponsor-name {
        color: #000;
        background: #f0f0f0;
        border-color: #ccc;
    }
    
    .sponsor-item:hover {
        transform: none;
        opacity: 1;
    }
}

/* Loading state */
.category-sponsors-wrapper.loading {
    opacity: 0.6;
    pointer-events: none;
}

.category-sponsors-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility improvements */
.sponsor-item:focus-within {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 4px;
}

.sponsor-item a:focus {
    outline: none;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
