/**
 * TBC Sponsors Styling
 * Professional sponsor card layouts with premier sponsor highlighting
 */

.tbc-sponsors-container {
    margin: 20px 0;
    padding: 0;
}

.tbc-sponsors-grid {
    display: grid;
    gap: 25px;
    margin: 0;
    padding: 0;
}

/* Grid responsive layouts */
.tbc-sponsors-container[data-columns="1"] .tbc-sponsors-grid {
    grid-template-columns: 1fr;
}

.tbc-sponsors-container[data-columns="2"] .tbc-sponsors-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.tbc-sponsors-container[data-columns="3"] .tbc-sponsors-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tbc-sponsors-container[data-columns="4"] .tbc-sponsors-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
}

/* Sponsor Card Base Styles */
.tbc-sponsor-card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.tbc-sponsor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

/* Premier Sponsor Styling */
.tbc-sponsor-card.premier-sponsor {
    border: 2px solid #f39c12;
    background: linear-gradient(135deg, #fff 0%, #ffffff 100%);
    position: relative;
}

.tbc-sponsor-card.premier-sponsor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    
}

.premier-badge {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    margin-bottom: 5px;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.3);
}

.premier-badge .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
    line-height: 12px;
}

/* Sponsor Header */
.sponsor-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid #f1f3f4;
    background: #fafbfc;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    min-height: 80px;
}

.sponsor-logo {
    flex-shrink: 0;
    width: 144px;
    height: 144px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.sponsor-info {
    flex: 1;
    min-width: 0;
}

.sponsor-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 5px 0;
    line-height: 1.3;
    word-wrap: break-word;
}

.premier-sponsor .sponsor-name {
    color: #d68910;
}

.sponsor-contact {
    margin: 0;
    font-size: 13px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sponsor-contact .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Sponsor Details */
.sponsor-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Locations */
.sponsor-locations {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.sponsor-locations .dashicons {
    color: #667eea;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.locations-list {
    flex: 1;
}

.location-item {
    font-size: 13px;
    color: #495057;
    line-height: 1.4;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.location-item:last-child {
    margin-bottom: 0;
}

.location-address {
    flex: 1;
}

.map-link {
    color: #667eea;
    text-decoration: none;
    padding: 2px;
    border-radius: 3px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.map-link:hover {
    color: #5a67d8;
    background: rgba(102, 126, 234, 0.1);
    text-decoration: none;
}

.map-link .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Contact Info */
.sponsor-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 8px 0;
}

.contact-item .dashicons {
    color: #667eea;
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.contact-item a {
    color: #495057;
    text-decoration: none;
    transition: color 0.2s ease;
    flex: 1;
}

.contact-item a:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Social Media */
.sponsor-social {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.social-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* Social Platform Colors */
.social-facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.social-twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-color: #bc1888;
}

.social-linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.social-youtube:hover {
    background: #ff0000;
    color: white;
    border-color: #ff0000;
}

.social-website:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.social-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* No Sponsors Message */
.tbc-no-sponsors {
    text-align: center;
    font-size: 16px;
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tbc-sponsors-container[data-columns="2"] .tbc-sponsors-grid,
    .tbc-sponsors-container[data-columns="3"] .tbc-sponsors-grid,
    .tbc-sponsors-container[data-columns="4"] .tbc-sponsors-grid {
        grid-template-columns: 1fr;
    }
    
    .sponsor-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        min-height: auto;
    }
    
    .sponsor-logo {
        width: 50px;
        height: 50px;
    }
    
    .premier-badge {
        position: static;
        margin-bottom: 10px;
        align-self: center;
    }
    
    .tbc-sponsor-card.premier-sponsor {
        padding-top: 15px;
    }
}

@media (max-width: 480px) {
    .tbc-sponsors-grid {
        gap: 15px;
    }
    
    .sponsor-header,
    .sponsor-details {
        padding: 15px;
    }
    
    .sponsor-name {
        font-size: 16px;
    }
    
    .social-links {
        gap: 8px;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
    }
}

/* Animation for initial load */
.tbc-sponsor-card {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Stagger animation for multiple cards */
.tbc-sponsor-card:nth-child(1) { animation-delay: 0.1s; }
.tbc-sponsor-card:nth-child(2) { animation-delay: 0.2s; }
.tbc-sponsor-card:nth-child(3) { animation-delay: 0.3s; }
.tbc-sponsor-card:nth-child(4) { animation-delay: 0.4s; }
.tbc-sponsor-card:nth-child(5) { animation-delay: 0.5s; }
.tbc-sponsor-card:nth-child(6) { animation-delay: 0.6s; }