/**
 * Sponsorlar Modülü Stilleri
 * Modern ve estetik tasarım
 */

#mainContent:has(.sponsorlar-page) {
    min-height: auto;
}

.sponsorlar-page {
    padding-top: 130px;
    min-height: 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

/* Sponsorluk Dosyası – tek kırmızı buton, şerit yok */
.sponsorlar-pdf-wrap {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px 40px 0;
    display: flex;
    justify-content: center;
}

.sponsorlar-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #c62828;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(198, 40, 40, 0.35);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sponsorlar-pdf-btn:hover {
    background: #b71c1c;
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.45);
    transform: translateY(-1px);
}

.sponsorlar-pdf-btn:active {
    transform: translateY(0);
}

.sponsorlar-pdf-btn:focus {
    outline: none;
    box-shadow: 0 4px 14px rgba(198, 40, 40, 0.35), 0 0 0 3px rgba(198, 40, 40, 0.3);
}

.sponsorlar-pdf-btn i {
    font-size: 1.15rem;
}

/* PDF Modal */
.pdf-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.25s ease, opacity 0.25s ease;
}

.pdf-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.pdf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.pdf-modal-box {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: #fff;
    flex-shrink: 0;
}

.pdf-modal-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.pdf-modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pdf-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pdf-modal-body {
    flex: 1;
    min-height: 70vh;
    overflow: hidden;
}

.pdf-viewer-iframe {
    width: 100%;
    height: 78vh;
    min-height: 400px;
    border: none;
    display: block;
}

/* Ana Container */
.sponsors-section {
    padding: 50px 40px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Sponsor Kategorileri */
.sponsors-category {
    margin-bottom: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsors-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

/* Kategori Header */
.category-header {
    background: linear-gradient(135deg, var(--category-bg-start, #f8f9fa), var(--category-bg-end, #ffffff));
    padding: 25px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--category-color, #ddd), transparent);
}

.category-stars {
    color: var(--category-color);
    font-size: 16px;
    letter-spacing: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    opacity: 0.8;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    color: var(--category-text-color, #1a237e);
    position: relative;
}

.category-line {
    display: none;
}

/* Kategori Renkleri */
.platin { 
    --category-color: #b8b8b8;
    --category-text-color: #2c2c2c;
    --category-bg-start: #f5f5f5;
    --category-bg-end: #ffffff;
}

.altin { 
    --category-color: #ffd700;
    --category-text-color: #b8860b;
    --category-bg-start: #fffef0;
    --category-bg-end: #ffffff;
}

.gumus { 
    --category-color: #c0c0c0;
    --category-text-color: #4a4a4a;
    --category-bg-start: #f8f8f8;
    --category-bg-end: #ffffff;
}

.bronz { 
    --category-color: #cd7f32;
    --category-text-color: #8b4513;
    --category-bg-start: #faf8f5;
    --category-bg-end: #ffffff;
}

.etkinlik { 
    --category-color: #23dee0;
    --category-text-color: #0d7377;
    --category-bg-start: #f0fdfe;
    --category-bg-end: #ffffff;
}

.medya { 
    --category-color: #1a237e;
    --category-text-color: #1a237e;
    --category-bg-start: #f3f4f9;
    --category-bg-end: #ffffff;
}

/* Grid Yapısı */
.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 30px;
}

/* Sponsor Kartları */
.sponsor-item {
    flex: 0 0 auto;
}

.sponsor-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.sponsor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.sponsor-card:hover::before {
    left: 100%;
}

.sponsor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--category-color);
}

.sponsor-card img {
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: grayscale(10%);
}

.sponsor-card:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Platin - En büyük */
.platin .sponsor-card {
    width: 240px;
    height: 120px;
    padding: 20px;
}

.platin .sponsor-card img {
    max-width: 210px;
    max-height: 100px;
}

/* Altın */
.altin .sponsor-card {
    width: 200px;
    height: 100px;
    padding: 18px;
}

.altin .sponsor-card img {
    max-width: 170px;
    max-height: 80px;
}

/* Gümüş */
.gumus .sponsor-card {
    width: 180px;
    height: 90px;
    padding: 15px;
}

.gumus .sponsor-card img {
    max-width: 150px;
    max-height: 70px;
}

/* Bronz */
.bronz .sponsor-card {
    width: 170px;
    height: 85px;
    padding: 15px;
}

.bronz .sponsor-card img {
    max-width: 140px;
    max-height: 65px;
}

/* Etkinlik */
.etkinlik .sponsor-card {
    width: 160px;
    height: 80px;
    padding: 15px;
}

.etkinlik .sponsor-card img {
    max-width: 130px;
    max-height: 60px;
}

/* Medya */
.medya .sponsor-card {
    width: 160px;
    height: 80px;
    padding: 15px;
}

.medya .sponsor-card img {
    max-width: 130px;
    max-height: 60px;
}

/* Responsive */
@media (max-width: 1200px) {
    .sponsors-section {
        padding: 40px 30px;
    }
    
    .sponsors-grid {
        gap: 15px;
        padding: 25px;
    }
}

@media (max-width: 992px) {
    .sponsors-section {
        padding: 35px 25px;
    }
    
    .sponsors-grid {
        gap: 12px;
        padding: 20px;
    }
    
    .category-header {
        padding: 20px 25px;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .sponsorlar-page {
        padding-top: 100px;
    }
    
    .sponsors-section {
        padding: 30px 20px;
    }
    
    .sponsors-category {
        margin-bottom: 30px;
    }
    
    .category-header {
        padding: 18px 20px;
    }
    
    .category-title {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
    }
    
    .category-stars {
        font-size: 14px;
        letter-spacing: 6px;
    }
    
    .sponsors-grid {
        gap: 12px;
        padding: 20px 15px;
    }
    
    .platin .sponsor-card {
        width: 180px;
        height: 90px;
        padding: 15px;
    }
    .platin .sponsor-card img {
        max-width: 150px;
        max-height: 70px;
    }
    
    .altin .sponsor-card {
        width: 150px;
        height: 75px;
        padding: 12px;
    }
    .altin .sponsor-card img {
        max-width: 125px;
        max-height: 60px;
    }
    
    .gumus .sponsor-card,
    .bronz .sponsor-card {
        width: 140px;
        height: 70px;
        padding: 12px;
    }
    .gumus .sponsor-card img,
    .bronz .sponsor-card img {
        max-width: 115px;
        max-height: 55px;
    }
    
    .etkinlik .sponsor-card,
    .medya .sponsor-card {
        width: 130px;
        height: 65px;
        padding: 12px;
    }
    .etkinlik .sponsor-card img,
    .medya .sponsor-card img {
        max-width: 105px;
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .sponsors-section {
        padding: 25px 15px;
    }
    
    .sponsors-category {
        margin-bottom: 25px;
        border-radius: 12px;
    }
    
    .category-header {
        padding: 15px;
    }
    
    .category-title {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .category-stars {
        font-size: 12px;
        letter-spacing: 4px;
    }
    
    .sponsors-grid {
        gap: 10px;
        padding: 15px 10px;
    }
    
    .platin .sponsor-card {
        width: 150px;
        height: 75px;
        padding: 12px;
    }
    .platin .sponsor-card img {
        max-width: 125px;
        max-height: 60px;
    }
    
    .altin .sponsor-card,
    .gumus .sponsor-card,
    .bronz .sponsor-card,
    .etkinlik .sponsor-card,
    .medya .sponsor-card {
        width: 120px;
        height: 60px;
        padding: 10px;
    }
    
    .altin .sponsor-card img,
    .gumus .sponsor-card img,
    .bronz .sponsor-card img,
    .etkinlik .sponsor-card img,
    .medya .sponsor-card img {
        max-width: 100px;
        max-height: 45px;
    }
}

.sponsorlar-page .supporters-section {
    padding-top: 2rem;
    border-top: none;
}

.sponsorlar-page .supporters-section::before {
    display: none;
}
