/* 1. SIFIRLAMA VE SABİTLEME (Boyut farkını önlemek için) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll; /* Kaydırma çubuğunun sayfayı itmesini engeller */
}

body {
    background-color: #000000;
    color: white;
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
}

/* 2. GÜNCEL NAVİGASYON (Ana sayfa ile birebir aynı) */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%; /* Yan boşlukları sabitledik */
    height: 80px;   /* Yüksekliği sabitledik */
    background-color: #000000;
    border-bottom: 3px solid #601dc2;
    box-shadow: 0 0 20px rgba(96, 29, 194, 0.3);
    position: sticky; /* Sayfa kayarken menü üstte kalır */
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    letter-spacing: 2px;
    font-weight: bold;
    text-transform: uppercase;
}

.logo span {
    color: #601dc2;
}

/* NAVIGASYON SIFIRLAMA VE HİZALAMA */
nav ul {
    list-style: none;
    display: flex;
    align-items: center; /* Dikeyde tüm butonları aynı hizaya çeker */
    gap: 15px;
}

/* Menü Butonları Genel */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #601dc2;
}

/* İŞTE O ESKİ GÜZEL KATIL BUTONU */
.nav-btn {
    border: 2px solid #601dc2; /* Mor çerçeve */
    padding: 8px 20px;
    border-radius: 5px;
    color: white !important;
    background: transparent;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-btn:hover {
    background-color: #601dc2; /* Üstüne gelince içi doluyor */
    color: white !important;
    box-shadow: 0 0 15px #601dc2; /* Mor parlama efekti */
    transform: translateY(-2px);
}

.t-header-banner {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #000000 0%, #23083e 50%, #000000 100%);
    border-bottom: 1px solid rgba(96, 29, 194, 0.3);
}

.purple-text { 
    color: #601dc2; 
    text-shadow: 0 0 15px #601dc2; 
}

/* 4. TURNUVA LİSTESİ VE FİLTRELER */
.t-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 40px 10%; /* Nav ile aynı hizada olması için %10 */
}

.filters { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 30px; 
    flex-wrap: wrap;
}

.filter-btn {
    background: #111;
    border: 1px solid #333;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: #601dc2;
    border-color: #601dc2;
}

/* 5. GENİŞ TURNUVA KARTLARI */
.t-list-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

    .t-wide-card {
    background: linear-gradient(145deg, #0a0a0a, #23083e);
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(35, 8, 62, 0.5);
    border: 1px solid #222;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 20px;
    transition: 0.3s;
}

.t-wide-card:hover {
    border-color: #601dc2;
    background: #141414;
    transform: translateX(5px); /* Hafif sağa kayma efekti */
}

.t-image {
    width: 80px;
    height: 80px;
    background: #601dc2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0; /* Resmin ezilmesini önler */
}

.t-details { 
    flex: 1; 
    padding: 0 30px; 
}

.tag {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.live { background: #ff0044; box-shadow: 0 0 10px #ff0044; } 
.open { background: #601dc2; }

.t-meta { 
    margin-top: 10px; 
    display: flex; 
    gap: 20px; 
    color: #888; 
    font-size: 14px; 
}

/* 6. BUTONLAR */
.view-btn, .register-btn {
    padding: 12px 25px;
    border-radius: 5px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    min-width: 120px;
}

.view-btn { background: white; color: black; }
.register-btn { background: #601dc2; color: white; }

.view-btn:hover, .register-btn:hover { 
    opacity: 0.9; 
    transform: scale(1.05); 

}
/* --- TURNUVALAR MOBİL UYUMLULUK (768px ve altı) --- */
@media (max-width: 768px) {
    
    /* Navigasyon Ayarı */
    nav {
        padding: 0 5%;
        flex-direction: column;
        height: auto;
        padding-bottom: 15px;
    }

    .logo {
        margin-top: 15px;
        margin-bottom: 10px;
    }

    nav ul {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li a {
        font-size: 12px;
    }

    /* Banner Alanı */
    .t-header-banner {
        padding: 50px 20px;
    }

    .t-header-banner h1 {
        font-size: 1.6rem;
    }

    /* Konteynır ve Filtreler */
    .t-container {
        padding: 20px 5%;
    }

    .filters {
        justify-content: center;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    /* TURNUVA KARTLARI (Kritik Değişim) */
    .t-wide-card {
        flex-direction: column; /* Mobilde her şey alt alta */
        text-align: center;
        padding: 25px 15px;
    }

    .t-image {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
        font-size: 24px;
    }

    .t-details {
        padding: 0;
        margin-bottom: 20px;
    }

    .t-meta {
        flex-direction: column; /* Ödül ve Kayıt bilgisi alt alta */
        gap: 5px;
        align-items: center;
    }

    .t-action {
        width: 100%;
    }

    .view-btn, .register-btn {
        width: 100%; /* Buton telefon ekranını kaplasın */
        padding: 15px;
    }
}

/* Çok Küçük Telefonlar İçin (480px altı) */
@media (max-width: 480px) {
    .nav-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}
/* --- FOOTER TASARIMI --- */
.main-footer {
    background-color: #080808;
    border-top: 2px solid #601dc2;
    padding: 60px 0 20px 0;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr; /* 3 Sütunlu yapı */
    gap: 40px;
}

.footer-section h3 {
    color: #601dc2;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-desc {
    color: #a0a0a0;
    font-size: 14px;
    margin: 20px 0;
    line-height: 1.6;
    max-width: 300px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #a0a0a0;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: #601dc2;
    padding-left: 5px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: #111;
    border: 1px solid #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.footer-socials a:hover {
    background: #601dc2;
    transform: translateY(-3px);
    box-shadow: 0 0 15px #601dc2;
}

.contact-info li {
    color: #a0a0a0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: #601dc2;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
    color: #555;
    font-size: 12px;
}

/* --- MOBİL İÇİN KOMPAKT FOOTER (768px ve altı) --- */
@media (max-width: 768px) {
    .main-footer {
        padding: 40px 0 20px 0;
    }

    .footer-container {
        /* Sütunları yan yana 2'li hale getirir (Logo tam genişlik, diğerleri yan yana) */
        grid-template-columns: 1fr 1fr; 
        gap: 20px;
        text-align: left; /* Merkezi görünümden kurtulup daha modern bir sola yaslı yapı */
    }

    /* Logo kısmını en üste ve tam genişlik yapalım */
    .footer-section:first-child {
        grid-column: span 2;
        text-align: center;
        border-bottom: 1px solid #222;
        padding-bottom: 20px;
        margin-bottom: 10px;
    }

    .footer-desc {
        margin: 15px auto;
        font-size: 13px;
        max-width: 100%;
    }

    .footer-socials {
        justify-content: center;
    }

    /* Başlıkları ve linkleri küçültelim */
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .footer-section ul li {
        margin-bottom: 8px;
    }

    .footer-section ul li a, 
    .contact-info li {
        font-size: 12px;
    }

    .footer-bottom {
        margin-top: 30px;
        font-size: 10px;
    }
}

