/* Part two of main.css (the 900-line limit): the sponsor, banner and social share sections. index.html loads it
   directly after main.css, so the cascade order is unchanged. */

/* Sponsor Section Styles */
.sponsor-section {
    background-color: #ffffff;
    padding: 0;
    border-radius: 8px;
    margin-top: 25px;
    border: 1px solid #e0e0e0;
}

.sponsor-section h4 {
    color: #34495e;
    margin-bottom: 15px;
    font-size: 1.4em;
    text-align: center;
    padding: 20px 30px 0;
}

.sponsor-section > p {
    text-align: center;
    margin-bottom: 25px;
    color: #6c757d;
    font-size: 12px;
    padding: 0 30px;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
}

.sponsor-item {
    background: white;
    padding: 25px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sponsor-item h5 {
    color: #34495e;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

.sponsor-item h5 i {
    margin-right: 8px;
    color: #0066cc;
}

.sponsor-item p {
    margin-bottom: 15px;
    color: #6c757d;
    font-size: 0.95em;
    line-height: 1.5;
}

.sponsor-link {
    display: inline-block;
    background: #0066cc;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.sponsor-link:hover {
    background: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
}

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

.social-links a {
    background: #f8f9fa;
    color: #6c757d;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85em;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.social-links a:hover {
    background: #0066cc;
    color: white;
    transform: translateY(-1px);
}

.social-links a i {
    margin-right: 5px;
}

.social-footer {
    border-top: 1px solid #e0e0e0;
    padding: 20px 30px;
    text-align: center;
    background: #f8f9fa;
}

.social-footer p {
    margin-bottom: 15px;
    font-weight: 600;
    color: #34495e;
}

.social-footer .social-links {
    justify-content: center;
}

/* Full-width banner container */
.sponsor-banner-container {
    width: 100%;
    margin: 20px 0;
    padding: 0;
    display: block;
}

.sponsor-banner-link {
    display: block;
    width: 100%;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 35px;
    margin-top: 35px;
    position: relative;
}

.sponsor-banner-link:hover {
    transform: translateY(-2px);
}

.sponsor-banner-img {
    max-width: 629px;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-left: auto;
    margin-right: auto;
    transition: opacity 0.5s ease, transform 0.3s ease;
}

/* Social section styling */
.footer-section ul li {
    text-align: left !important;
}


/* Social Share Section */
.social-share-section {
    margin: 40px 0 30px 0;
    padding: 30px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.social-share-container {
    max-width: 800px;
    margin: 0 auto;
}

.social-share-section h3 {
    color: #34495e;
    margin-bottom: 15px;
}

.social-share-section p {
    color: #666;
    margin-bottom: 20px;
}

.social-share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 60px 0 20px 0;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.twitter-btn {
    color: #1da1f2;
    border-color: #1da1f2;
}

.facebook-btn {
    color: #4267B2;
    border-color: #4267B2;
}

.bluesky-btn {
    color: #0085ff;
    border-color: #0085ff;
}

.copy-btn {
    color: #666;
    border-color: #ddd;
}

.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.twitter-btn:hover { 
    background: #1da1f2; 
    color: white;
}
.facebook-btn:hover { 
    background: #4267B2; 
    color: white;
}
.bluesky-btn:hover { 
    background: #0085ff; 
    color: white;
}
.copy-btn:hover { 
    background: #666; 
    color: white;
}

#createNewBtn {
    margin-top: 39px;
    margin-bottom: 24px;
}


/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .social-share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .sponsor-section {
        padding: 15px;
        margin-top: 20px;
    }
    
    .sponsor-banner-container {
        margin: 15px 0;
    }
    
    .sponsor-social {
        padding: 15px;
        margin-top: 15px;
    }
    
    .social-links {
        justify-content: center;
        gap: 8px;
    }
    
    .social-links a {
        padding: 6px 10px;
        font-size: 0.8em;
    }
    
    .social-footer-section {
        padding: 15px;
        margin-top: 15px;
    }
    
    .social-footer-container {
        padding: 25px;
    }
    
    .social-footer-section h4 {
        font-size: 1.2em;
    }
    
    .social-footer-section p {
        font-size: 1em;
    }
    
    .social-footer-section .social-links {
        gap: 10px;
    }
    
    .social-footer-section .social-links a {
        padding: 8px 12px;
        font-size: 0.85em;
    }
    
    /* Mobile tooltip adjustments */
    .tooltip::before {
        font-size: 12px;
        padding: 6px 10px;
        max-width: 250px;
    }
    
    .tooltip::after {
        border-width: 5px;
    }
}