/* Genel Sıfırlama ve Temel Ayarlar */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    /* ARKA PLAN RESMİ AYARI */
    background-image: url('bg.jpg'); 
    background-size: cover; 
    background-attachment: fixed; 
    background-color: transparent; 
    padding-bottom: 20px;
}

/* --- 1. GIF BÖLÜMÜ (ALT ALTA GÖRÜNÜM) --- */

.gif-container {
    display: block;
    background-color: transparent; 
    padding: 10px 0;
    text-align: center;
}

.gif-item {
    display: block; 
    width: 100%; 
    max-width: 468px; /* GIF'in kendi boyutunu geçmesini engeller */
    height: 60px; 
    margin: 5px auto; 
    overflow: hidden;
}

.gif-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* En boy oranını korur */
    display: block;
}

/* --- 2. BAŞLIK BÖLÜMÜ --- */

.main-title {
    text-align: center;
    color: #fff; /* Beyaz renk */
    padding: 30px 10px 20px;
    font-size: 1.8em; 
    text-transform: uppercase;
    margin: 0 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Okunurluk için gölge */
}

/* --- 3. SPONSOR GRID BÖLÜMÜ (RESPONSIVE) --- */

.sponsor-grid {
    display: grid;
    gap: 10px; 
    padding: 20px 10px;
}

/* Varsayılan (Mobil Odaklı) Görünüm: Alt alta 3 kutu (3 sütun) */
.sponsor-grid {
    grid-template-columns: repeat(3, 1fr); 
}

.sponsor-box {
    /* Resimlerin div'i tam kaplaması için */
    background-color: transparent; /* Şeffaf arka plan */
    border: none; /* Kenarlık yok */
    border-radius: 8px; 
    padding: 0; /* İç boşluk yok */
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1; /* Kare oranını korur */
    transition: transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); 
    overflow: hidden; 
}

.sponsor-box:hover {
    transform: scale(1.05); 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.7);
}

.sponsor-box img {
    /* Resmin div'in %100'ünü kaplamasını sağlar */
    width: 150px; 
    height: 150px; 
    object-fit: contain; /* En boy oranını korur, div'in tamamına sığdırır */
    display: block;
}
/* --- 4. FOOTER BÖLÜMÜ --- */

.social-footer {
    text-align: center;
    padding: 20px 10px;
    margin-top: 30px;
    /* Arka plan resmine uyum sağlaması için şeffaf bir arka plan */
    background-color: rgba(0, 0, 0, 0.4); 
    color: #fff; /* Yazı rengi */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.social-footer h3 {
    margin-bottom: 15px;
    font-size: 1.2em;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px; /* Butonlar arası boşluk */
    margin-bottom: 15px;
}

.social-icon {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    min-width: 100px;
}

/* Telegram için Renk */
.social-icon.telegram {
    background-color: #0088cc;
}
.social-icon.telegram:hover {
    background-color: #00aaff;
}

/* Instagram için Renk */
.social-icon.instagram {
    background-color: #E1306C;
}
.social-icon.instagram:hover {
    background-color: #c13584;
}

/* YouTube için Renk */
.social-icon.youtube {
    background-color: #ff0000;
}
.social-icon.youtube:hover {
    background-color: #ff3333;
}

.social-footer p {
    font-size: 0.8em;
    opacity: 0.7;
}

/* Geniş ekranlarda footer'ın ortalanması */
@media (min-width: 768px) {
    .social-footer {
        max-width: 1200px;
        margin: 30px auto 0;
        border-radius: 10px; /* Köşe yuvarlaklığı */
    }
}

/* --- Responsive Düzenleme (Geniş Ekran) --- */

@media (min-width: 768px) {
    .sponsor-grid {
        /* Geniş ekranda 5 sütun */
        grid-template-columns: repeat(5, 1fr);
        max-width: 1200px; 
        margin: 0 auto;
    }

    .main-title {
        font-size: 2.5em; 
    }

    .gif-container {
        max-width: 1200px; 
        margin: 0 auto;
    }
}