/**
 * Sponsors Page Styles
 * 
 * Professional styling for the sponsors page template.
 * 
 * @package BTFC_Admin
 * @since 1.0.0
 */

/* Main Sponsors Page Container */
.btfc-sponsors-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header Section */
.btfc-sponsors-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.2);
}

.btfc-sponsors-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btfc-sponsors-subtitle {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Empty State */
.btfc-sponsors-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

.btfc-sponsors-empty p {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
}

/* Category Section */
.btfc-sponsors-category {
    margin-bottom: 50px;
}

/* Main Sponsors Special Styling */
.btfc-main-sponsors {
    margin-bottom: 60px;
}

.btfc-main-sponsors-grid {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btfc-main-sponsor-card {
    width: 100%;
    max-width: 600px;
    min-width: auto;
    text-align: center;
    padding: 30px;
}

.btfc-main-sponsor-card .btfc-sponsor-logo {
    min-height: 150px;
    margin-bottom: 25px;
    padding: 20px;
}

.btfc-main-sponsor-card .btfc-sponsor-logo img {
    max-height: 120px;
    max-width: 100%;
}

.btfc-main-sponsor-card .btfc-sponsor-name {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.btfc-main-sponsor-card .btfc-sponsor-description {
    font-size: 1.1rem;
    margin-bottom: 25px;
    min-height: auto;
}

.btfc-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 25px 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border-left: 5px solid #0073aa;
    border-radius: 5px;
    color: #333;
    position: relative;
}

.btfc-category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--category-color, #0073aa);
    border-radius: 0 3px 3px 0;
}

/* Sponsors Grid - Modified for horizontal layout */
.btfc-sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    align-items: flex-start;
}

/* Sponsor Card */
.btfc-sponsor-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    min-width: 250px;
    max-width: 300px;
}

.btfc-sponsor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0073aa, #005177);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btfc-sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btfc-sponsor-card:hover::before {
    opacity: 1;
}

/* Sponsor Logo */
.btfc-sponsor-logo {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btfc-sponsor-logo img {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.2);
    transition: filter 0.3s ease;
}

.btfc-sponsor-card:hover .btfc-sponsor-logo img {
    filter: grayscale(0);
}

/* Sponsor Info */
.btfc-sponsor-info {
    text-align: center;
}

.btfc-sponsor-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.3;
}

.btfc-sponsor-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 20px 0;
    min-height: 45px;
}

/* Sponsor Links */
.btfc-sponsor-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.btfc-sponsor-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btfc-sponsor-link:hover {
    background: #005177;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 115, 170, 0.3);
}

.btfc-sponsor-link.btfc-email-link {
    background: #28a745;
}

.btfc-sponsor-link.btfc-email-link:hover {
    background: #1e7e34;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.btfc-sponsor-link.btfc-phone-link {
    background: #6f42c1;
}

.btfc-sponsor-link.btfc-phone-link:hover {
    background: #5a2d91;
    box-shadow: 0 3px 10px rgba(111, 66, 193, 0.3);
}

.btfc-link-icon {
    font-size: 0.9rem;
}

/* Sponsor Address */
.btfc-sponsor-address {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
    justify-content: center;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.btfc-address-icon {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Footer */
.btfc-sponsors-footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.btfc-sponsors-note {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.btfc-contact-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.btfc-contact-link:hover {
    color: #005177;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .btfc-sponsors-page {
        padding: 15px;
    }
    
    .btfc-sponsors-title {
        font-size: 2rem;
    }
    
    .btfc-sponsors-subtitle {
        font-size: 1rem;
    }
    
    .btfc-sponsors-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .btfc-sponsor-card {
        min-width: auto;
        max-width: none;
        padding: 20px;
    }
    
    .btfc-sponsor-links {
        flex-direction: column;
        align-items: center;
    }
    
    .btfc-sponsor-link {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .btfc-sponsors-header {
        padding: 20px 15px;
    }
    
    .btfc-sponsors-title {
        font-size: 1.8rem;
    }
    
    .btfc-category-title {
        font-size: 1.5rem;
        padding: 12px 15px;
    }
    
    .btfc-sponsor-card {
        padding: 15px;
    }
    
    .btfc-sponsor-logo {
        min-height: 100px;
        padding: 10px;
    }
    
    .btfc-sponsor-logo img {
        max-height: 70px;
    }
}

/* Shortcode Specific Styles */
.btfc-sponsors-shortcode {
    margin: 20px 0;
}

/* List Layout */
.btfc-sponsors-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btfc-sponsor-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.btfc-sponsor-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btfc-sponsor-logo-small {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
}

.btfc-sponsor-logo-small img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.btfc-sponsor-details {
    flex: 1;
}

.btfc-sponsor-details .btfc-sponsor-name {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}

.btfc-sponsor-details .btfc-sponsor-description {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
}

.btfc-sponsor-links-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btfc-sponsor-links-inline .btfc-sponsor-link {
    font-size: 0.8rem;
    padding: 6px 10px;
}

/* Compact Layout */
.btfc-sponsors-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.btfc-sponsor-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.btfc-sponsor-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btfc-sponsor-logo-compact {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 4px;
}

.btfc-sponsor-name-compact {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

/* Column Layouts - Modified for horizontal layout */
.btfc-sponsors-cols-1 .btfc-sponsors-grid {
    flex-direction: column;
}

.btfc-sponsors-cols-2 .btfc-sponsors-grid {
    flex-wrap: wrap;
}

.btfc-sponsors-cols-2 .btfc-sponsor-card {
    flex: 0 0 calc(50% - 10px);
}

.btfc-sponsors-cols-3 .btfc-sponsors-grid {
    flex-wrap: wrap;
}

.btfc-sponsors-cols-3 .btfc-sponsor-card {
    flex: 0 0 calc(33.333% - 14px);
}

.btfc-sponsors-cols-4 .btfc-sponsors-grid {
    flex-wrap: wrap;
}

.btfc-sponsors-cols-4 .btfc-sponsor-card {
    flex: 0 0 calc(25% - 15px);
}

/* Responsive adjustments for shortcode */
@media (max-width: 768px) {
    .btfc-sponsors-cols-2 .btfc-sponsors-grid,
    .btfc-sponsors-cols-3 .btfc-sponsors-grid,
    .btfc-sponsors-cols-4 .btfc-sponsors-grid {
        flex-direction: column;
    }
    
    .btfc-sponsors-cols-2 .btfc-sponsor-card,
    .btfc-sponsors-cols-3 .btfc-sponsor-card,
    .btfc-sponsors-cols-4 .btfc-sponsor-card {
        flex: none;
        min-width: auto;
        max-width: none;
    }
    
    .btfc-sponsor-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .btfc-sponsor-logo-small {
        width: 60px;
        height: 60px;
    }
    
    .btfc-sponsors-compact {
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .btfc-sponsors-page {
        max-width: none;
        padding: 0;
    }
    
    .btfc-sponsor-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .btfc-sponsor-link {
        background: none !important;
        color: #333 !important;
        text-decoration: underline;
    }
}
