/* ==========================================================================
   1. Genel Stiller ve Ana Yapı
   ========================================================================== */

body {
    font-family: Arial, sans-serif;
    background-color: #333;
    color: #fff;
    margin: 0;
    padding: 0;
}

.main-title {
    color: #fff;
    text-align: center;
    font-size: 28px;
    margin-bottom: 25px;
}

/* ==========================================================================
   2. Header, Logo ve Reklam Alanı
   ========================================================================== */

.site-header {
    width: 100%;
    padding: 20px 0;
}

.site-logo {
    text-align: center;
    margin-bottom: 25px;
}

.reklam-alani-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.reklam-alani-container a {
    display: block;
    width: 1100px;
    height: 150px;
    max-width: 100%;
    border: 1px solid #777;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reklam-alani-container a:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.reklam-banner {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Resimleri esnetir/sıkıştırır */
    display: block;
    border-radius: 4px;
}

/* ==========================================================================
   3. Sunucu Listesi Alanı
   ========================================================================== */

.server-list-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.server-row {
    display: flex;
    align-items: center;
    background-color: #4a4a4a;
    margin-bottom: 10px;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 16px;
    gap: 15px; /* Sütunlar arasına sabit boşluk */
}

.server-row.header {
    background-color: #e89d3a;
    font-weight: bold;
    color: #333;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* --- Sütun Genişlikleri (Son Düzenleme) --- */
.cell {
    display: flex;
    align-items: center;
}

.cell.sira {
    width: 70px;
    justify-content: center;
}
.cell.sunucu {
    width: 260px;
}
.cell.durum {
    width: 110px;
    justify-content: center;
}
.cell.guvenlik {
    width: 140px;
}
.cell.tarih {
    width: 130px;
}
.cell.tur {
    width: 160px;
}
.cell.aktif-sure {
    width: 190px;
    justify-content: center;
    font-weight: bold;
    color: #00bfff;
}

/* --- Sunucu Listesi İçindeki Elementler --- */
.rank-logo {
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto;
}

.sunucu-link, 
.sunucu-link:visited {
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    align-items: center;
}

.durum-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    color: #fff;
}
.durum-badge.aktif {
    background-color: #28a745;
}
.durum-badge.yakinda {
    background-color: #dc3545;
}
.durum-badge.bakimda {
    background-color: #ffc107;
    color: #333;
}


/* ==========================================================================
   4. Footer Alanı
   ========================================================================== */

.site-footer-seo {
    padding: 40px 20px;
    margin-top: 30px;
}

.seo-text-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 25px 35px;
    background-color: #2a2a2a;
    border: 1px solid #555;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.seo-text-container + .seo-text-container {
    margin-top: 30px;
}

.seo-text-container h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    color: #fff;
}

.seo-text-container p {
    margin: 0 0 10px 0;
    font-size: 15px;
    line-height: 1.7;
    color: #ccc;
    text-align: center;
}
.seo-text-container p:last-child {
    margin-bottom: 0;
}

.seo-text-container strong {
    color: #e89d3a;
    font-weight: 600;
}

.contact-info p {
    color: #ddd;
}

.contact-info a,
.contact-info a:visited {
    display: inline-block;
    margin-top: 5px;
    color: #58a6ff;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info a:hover {
    color: #8cc3ff;
    text-decoration: underline;
}

/* ==========================================================================
   5. Sabit Widget'lar
   ========================================================================== */

.floating-discord-widget {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    width: 300px;
    height: 500px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.floating-discord-widget iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   7. MOBİL UYUMLULUK (MEDIA QUERIES)
   ========================================================================== */

/* Ekran genişliği 768px'den küçük olduğunda (tablet ve telefonlar) bu stiller devreye girer */
@media (max-width: 768px) {

    /* --- Genel Ayarlamalar --- */
    body {
        font-size: 14px; /* Mobil için varsayılan yazı boyutunu küçült */
    }

    .main-title {
        font-size: 22px; /* Ana başlığı küçült */
        padding: 0 15px;
    }

    .server-list-container,
    .site-footer-seo {
        padding: 15px; /* Ana kapsayıcıların kenar boşluklarını azalt */
    }


    /* --- Sunucu Listesini Kart Yapısına Dönüştürme --- */
    .server-row.header {
        display: none; /* Masaüstü başlık satırını mobilde gizle */
    }

    .server-row {
        flex-direction: column; /* Sütunları alt alta diz (kart yapısı) */
        align-items: stretch; /* Elementleri tam genişliğe yay */
        padding: 15px;
        gap: 0;
    }

    .cell {
        width: 100% !important; /* Tüm hücrelerin genişliğini tam yap */
        padding: 10px 5px;
        justify-content: space-between; /* İçeriği iki yana yasla (Başlık ve Değer) */
        border-bottom: 1px solid #555; /* Her veri arasına ince bir çizgi ekle */
    }
    
    .cell:last-child {
        border-bottom: none; /* En son hücrenin altındaki çizgiyi kaldır */
    }

    /* --- Kartın Başlık Bölümü (# ve Sunucu Adı) --- */
    .cell.sira, .cell.sunucu {
        border-bottom: 1px solid #888; /* Başlık bölümünün altındaki çizgiyi daha belirgin yap */
        padding-bottom: 12px;
        margin-bottom: 8px;
    }
    .cell.sira {
        justify-content: flex-start; /* Logoyu sola yasla */
        order: 1; /* Sıralamada en başa al */
    }
    .cell.sunucu {
        width: auto !important; /* Genişliği otomatik olsun */
        justify-content: flex-start;
        order: 2;
        font-size: 18px;
        font-weight: bold;
    }
    
    /* Sunucu adının yanındaki linkin esnekliğini ayarla */
    .cell.sunucu .sunucu-link {
        flex-grow: 1;
    }


    /* --- Hücrelere Başlıklarını Geri Ekleme (Content Metodu) --- */
    .cell.durum::before,
    .cell.guvenlik::before,
    .cell.tarih::before,
    .cell.tur::before,
    .cell.aktif-sure::before {
        content: attr(class); /* Başlığı dinamik olarak ekle */
        font-weight: bold;
        color: #e89d3a; /* Başlık rengi */
    }

    /* Başlık metinlerini düzenle */
    .cell.durum::before      { content: 'Durum:'; }
    .cell.guvenlik::before   { content: 'Güvenlik:'; }
    .cell.tarih::before      { content: 'Official Tarihi:'; }
    .cell.tur::before        { content: 'Türü:'; }
    .cell.aktif-sure::before { content: 'Aktif Süresi:'; }
    

    /* --- Diğer Alanlar --- */
    .reklam-alani-container a {
        height: auto; /* Reklam yüksekliğini otomatik yap */
    }

    .seo-text-container {
        padding: 20px; /* Footer kutularının iç boşluğunu azalt */
    }

    .floating-discord-widget {
        /* Önceki position:fixed ayarlarını sıfırlıyoruz */
        position: relative; /* Artık sabit değil, normal bir element gibi davranacak */
        display: block; /* Gizli değil, görünür yapıyoruz */
        top: auto;
        right: auto;
        transform: none; /* Dikey ortalama transformunu iptal et */
        z-index: auto;
        
        /* Sayfanın en altına, ortalanmış şekilde yerleştiriyoruz */
        width: 95%; /* Genişliği ekranın %95'i yap */
        max-width: 350px; /* Ama en fazla 350px olsun */
        height: 450px; /* Yüksekliğini mobil için biraz düşürebiliriz */
        margin: 40px auto 20px auto; /* Üst(40), sağ/sol(auto), alt(20) boşluk bırakarak ortalar */
    }
}