/* SIFIRLAMA */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: #f4f4f4;
    font-family: 'Roboto', sans-serif;
    color: #111;
}

/* --- HEADER --- */
header {
    background-color: white;
    padding: 25px 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo {
    display: flex;       /* Resim ve yazıyı yan yana koyar */
    align-items: center; /* Dikeyde ortalamaya çalışır */
    text-decoration: none; /* Alt çizgiyi kaldırır */
}

.logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -2px;
    color: black;
    text-decoration: none; /* Altındaki link çizgisini kaldır */
    cursor: pointer; /* Üstüne gelince el işareti çıksın */
    position: relative; 
}


.logo-image {
    height: 85px; 
    width: auto; 
    margin-right: 17px; 
    vertical-align: middle; 
}

header nav {
    display: flex;
    gap: 45px;
}

header nav a {
    text-decoration: none;
    color: #888;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.2s;
}

header nav a:hover { color: black; }


/* --- ANA DÜZEN --- */
.main-container {
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 0 20px;
}


/* --- SOL TARAF --- */
.content-area {
    flex: 3;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    color: #D20A0A;
    font-size: 34px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.event-item {
    display: flex;
    margin-bottom: 40px;
    align-items: center;
}

/* Sol (UFC Logoları) */
.event-left {
    width: 120px;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    line-height: 1.1;
}
.event-left .brand {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: black;
 }
.event-left .sub-brand {
    display: block;
    font-size: 20px;
    font-weight: 400;
    color: black;
}
.event-left .number {
    display: block;
    font-size: 36px;
    font-weight: 400;
    color: black;
 }

/* Orta (Fotolar ve İsim) */
.event-center {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 40px;
}

.faceoff {
    display: flex;
    gap: 10px;
    margin-right: 30px;
}

.faceoff img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: top;
    border-radius: 5px;
    background-color: #e0e0e0;
}

.faceoff img:last-child {
    transform: scaleX(-1) ; /* Yatayda ters çevir */
}

.match-info h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.match-info h3 a {
    text-decoration: none;
    color: inherit; /* Beyaz/Siyah neyse o kalsın */
    transition: color 0.3s;
}

.match-info h3 a:hover {
    color: #D20A0A !important; /* Üzerine gelince kırmızı */
    cursor: pointer;
}

.match-info .vs { color: #aaa; margin: 0 5px; font-size: 0.8em;}


.match-info small { 
    color: #888; 
    font-weight: 400; 
    font-size: 13px; 
    display: block; 
}


/* --- SAĞ TARAF (SIDEBAR) --- */
.sidebar {
    flex: 1;
    background-color: #171717;
    color: white;
    padding: 40px 30px;
    min-height: 500px;
}

.sidebar-title {
    font-family: 'Oswald', sans-serif;
    text-decoration: underline;
    text-underline-offset: 5px;
    margin-bottom: 28px;
    font-size: 30px;
    letter-spacing: 1px;
    
    /* İŞTE İSTEDİĞİN KIRMIZI RENK */
    color: #ffffff; 
}

.ranking-list { list-style: none; }

.ranking-list li {
    padding: 12px 0;
    color: #ffffff;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 0.5px;
    cursor: pointer; /* Üstüne gelince el işareti çıksın */
    transition: all 0.3s ease; /* Yumuşak geçiş */
    border-bottom: 1px solid #D20A0A; /* İnce çizgi ekledim daha düzenli dursun */
}

/* İŞTE O BAHSETTİĞİN HOVER EFEKTİ */
.ranking-list li:hover {
    color: #D20A0A; /* Üstüne gelince KIRMIZI olsun */
    transform: translateX(10px); /* Hafif sağa kaysın */
    padding-left: 5px;
}

/* 1. Sıradaki Şampiyon Ayarı */
.ranking-list .champ { 
    color: #D20A0A; /* Zaten kırmızı */
    font-weight: 700;
    border-left: 3px solid #D20A0A;
    padding-left: 10px;
}

/* Şampiyonun üstüne gelince oynamasına gerek yok, zaten kral */
.ranking-list .champ:hover {
    transform: none;
    padding-left: 10px;
}

/* --- RANKING SAYFASI STİLLERİ --- */

.ranking-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    
    /* GRID YERİNE FLEX KULLANIYORUZ */
    display: flex;
    flex-wrap: wrap; /* Sığmayan aşağı geçsin */
    justify-content: center; /* KİLİT NOKTA: Hepsini ortala */
    gap: 40px;
}

/* Her Bir Sütun */
.ranking-col {
    background-color: white;
    width: 22%; 
    min-width: 300px;
    
    /* YENİ EKLENENLER: */
    padding: 25px; /* İçeriden 25 piksel boşluk bırak, yazılar rahatlasın */
    border: 1px solid #eee; /* Çok ince gri bir çerçeve, kutuyu belli eder */
    border-radius: 8px; /* Köşeleri çok hafif yuvarla, modern dursun */
}

.ranking-list li a {
    text-decoration: none; /* Altındaki çizgiyi kaldır */
    color: inherit; /* Rengi babasından (li elementinden) alsın, mavi olmasın */
    display: block; /* Tıklama alanını genişletir, sadece yazıya değil satıra tıklanır */
    transition: 0.3s;
}

/* Üstüne gelince ne olsun? */
.ranking-list li a:hover {
    color: #D20A0A; /* Fightbase kırmızısı olsun */
    padding-left: 5px; /* Hafif sağa kaysın (Hoş bir efekt) */
}

/* Kırmızı Başlık (Sıklet Adı) */
.division-title {
    color: #D20A0A;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Şampiyon Kutusu */
.champion-box {
    margin-bottom: 20px;
    position: relative; /* Resmi hizalamak için */
    border-bottom: 2px solid #eee;
    padding-bottom: 0px;
}

.champion-box h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    line-height: 1.1;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    color: black;
}

h3 a {
    text-decoration: none; /* Altındaki çizgiyi kaldır */
    color: inherit; /* Rengini babasından (siyah) al, mavi yapma */
    transition: 0.3s; /* Renk değişimi yumuşak olsun */
}

/* Üstüne gelince kırmızı olsun */
h3 a:hover {
    color: #D20A0A !important; 
    cursor: pointer;
}

.champ-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: -20px;
}

/* Şampiyon Fotosu Ayarı */
.champion-box img {
    width: 70%;  /* Boyut */
    height: 150px; /* Yükseklik */
    object-fit: contain; /* Sığdır */
    
    /* İŞTE YENİ KISIMLAR BURASI */
    display: block; /* Blok eleman gibi davransın */
    margin: 0 auto; /* Yatayda tam ortala */
    object-position: bottom center; /* İçeriği alta ve ortaya yasla */
}

/* Liste Ayarı (1-15) */
.rank-list {
    list-style: none; /* Standart sayıları kapat, biz style vericez */
    counter-reset: rank-counter; /* Sayacı başlat */
    padding: 0;
}

.rank-list li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #f9f9f9;
}

/* Listenin içindeki linklerin tipini düzelt */
.rank-list li a {
    text-decoration: none; /* Altındaki çizgiyi kaldır */
    color: inherit; /* Rengi babasından (li elementinden) alsın, mavi olmasın */
    display: block; /* Tıklama alanını genişletir, sadece yazıya değil satıra tıklanır */
    transition: 0.3s;
}

/* Üstüne gelince ne olsun? */
.rank-list li a:hover {
    color: #D20A0A !important; /* Fightbase kırmızısı olsun */
    padding-left: 5px; /* Hafif sağa kaysın (Hoş bir efekt) */
}

/* Özel Sayı Tasarımı (Kalın ve Siyah) */
.rank-list li::before {
    counter-increment: rank-counter;
    content: counter(rank-counter);
    font-weight: 900;
    width: 25px; /* Sayı genişliği */
    color: black;
    font-family: 'Oswald', sans-serif;
}

.column-layout {
    flex-direction: column; /* İçerikler alt alta dizilsin */
    align-items: stretch; /* Genişliği doldur */
}

/* Üst Kısım: Başlık ve Arama */
.athletes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 3px solid #ccc; /* Gri çizgi */
    padding-bottom: 15px;
}

.page-title {
    font-family: 'Oswald', sans-serif;
    color: #D20A0A;
    font-size: 36px;
    margin: 0;
}

.search-box {
    display: flex;
    width: 400px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #999;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    outline: none;
}

.search-box button {
    background-color: #D20A0A;
    color: white;
    border: none;
    width: 50px;
    cursor: pointer;
    font-size: 16px;
}

.search-box button:hover {
    background-color: #a00000;
}

/* A-Z Filtre */
.az-filter {
    display: flex;
    justify-content: space-between; /* Harfleri yay */
    border-bottom: 4px solid #555; /* Koyu kalın çizgi */
    font-family: 'Oswald', sans-serif;
    color: #D20A0A;
    font-weight: 500;
    cursor: pointer;
}

.az-nav-item {
    font-size: 20px !important;
    margin-bottom: 15px;
}

.az-filter span:hover {
    color: black;
    transform: scale(1.2);
}

.az-nav-item.active {
    color: #000;
    font-weight: bold;
    border-bottom: 2px solid #D20A0A;
}

/* --- TABLO TASARIMI --- */
.table-container {
    overflow-x: auto; /* Mobilde taşarsa kaydır */
}

.fighters-table {
    width: 100%;
    border-collapse: collapse; /* Çizgileri birleştir */
    font-family: 'Roboto', sans-serif;
}

/* Başlık Satırı */
.fighters-table thead th {
    background-color: #444; /* Koyu Gri */
    color: white;
    text-align: left;
    padding: 15px;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Satırlar */
.fighters-table tbody td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    color: #333;
    font-size: 15px;
    vertical-align: middle; /* İçeriği dikey ortala */
}

/* Zebra Deseni (Bir gri, bir beyaz) */
.fighters-table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Üstüne gelince satır parlasın */
.fighters-table tbody tr:hover {
    background-color: #e0e0e0;
}

/* Kafa Resmi Hücresi */
.avatar-cell img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    object-position: top; /* Sadece kafayı göster */
    border-radius: 50%; /* Yuvarlak yap */
    border: 2px solid #ccc;
}

/* İsim Stili */
.name-cell {
    font-weight: 700;
    color: black;
    font-size: 16px;
}

.name-cell a {
    text-decoration: none; /* Altındaki çizgiyi kaldır */
    color: black; /* O iğrenç mavi link rengini siyah yap */
    font-weight: bold; /* Yazı kalın olsun */
    transition: 0.2s; /* Renk değişimi yumuşak olsun */
}

/* Üstüne gelince ne olsun? */
.name-cell a:hover {
    color: #D20A0A; /* Üstüne gelince kırmızı olsun */
    cursor: pointer; /* El işareti çıksın */
}

.nickname {
    font-style: italic;
    color: #666;
}

.record {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: #333;
}

/* ========================================= */
/* PROFİL SAYFASI (PROFILE.HTML)       */
/* ========================================= */

.profile-layout {
    flex-direction: column; /* Kutular alt alta dizilsin (Hero üstte, History altta) */
    display: flex;
    justify-content: center;   /* Ortala */
    align-items: center;
    width: 100%;
}

/* --- ÜST BÖLÜM (HERO) --- */
.profile-hero {
    display: flex; /* Yan yana diz (Sol Resim, Sağ Bilgi) */
    background-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Hafif gölge */
    margin-bottom: 50px;
    overflow: hidden; /* Dışarı taşanları gizle */
    min-height: 500px;
    max-width: 1400px; /* Eski hali ~1600px gibi duruyordu */
    width: 100%;
    margin: 0 auto; /* Ortala */
    border-radius: 12px;
}

/* Sol Taraf (Görsel) */
.profile-visual {
    flex: 0.6; /* %40 civarı yer kapla */
    position: relative; /* İçindekileri (bayrak) üst üste koymak için */
    background-color: #f4f4f4; /* Açık gri zemin */
    display: flex;
    justify-content: center; /* Yatay ortala */
    align-items: flex-end; /* Resmi en aşağı yasla */
}

/* Arka Plan Bayrağı */
.flag-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.17; /* Çok silik dursun */
    z-index: 1;
}

/* Dövüşçü Resmi */
.fighter-img {
    height: 88%; /* Kutunun %90'ı kadar uzun */
    width: auto;
    z-index: 2; /* Bayrağın üstünde */
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.2)); /* Hafif gölge */
}

/* Sağ Taraf (Bilgiler) */
.profile-stats {
    flex: 1.4; /* %60 civarı yer kapla */
    padding: 30px 50px;
}

.fighter-name {
    font-family: 'Oswald', sans-serif;
    font-size: 48px;
    margin: 0;
    color: black;
    line-height: 1;
}

.fighter-nickname {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.main-badge {
    background-color: #D20A0A; /* Fightbase Kırmızısı */
    color: white;
    display: inline-block;
    padding: 3px 10px;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

/* İstatistik Izgarası */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* İki sütun */
    gap: 10px;
}

.stat-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.stat-item .label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-item .value {
    font-size: 24px;
    font-weight: 500;
    color: #111;
    font-family: 'Oswald', sans-serif;
}

.record-win { color: #2ecc71; } /* Yeşil Rekor Yazısı */


/* --- WIN METHOD BARLARI --- */
.win-breakdown {
    margin-top: 40px;
    border-top: 2px solid #f4f4f4;
    padding-top: 20px;
}

.sub-header {
    font-family: 'Oswald', sans-serif;
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
}

.method-row {
    margin-bottom: 15px;
}

.method-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #555;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #eee; /* Boş kısım gri */
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    border-radius: 5px;
}

/* --- TERMS SAYFASI TASARIMI (SKETCH UYUMLU) --- */

/* 1. Sayfa Genişliği */
.terms-page-container {
    max-width: 1200px !important; 
    margin: 40px auto;
    padding: 0 20px;
}

/* 2. Başlık Ayarları */
.terms-header {
    border-bottom: 4px solid #D20A0A !important; /* Altına kırmızı çizgi */
    margin-bottom: 40px !important;
    margin-top: 60px;
    padding-bottom: 10px;
    max-width: 1200px;
    display: flex !important;
    border-bottom: 4px solid #D20A0A; /* Kırmızı çizgi */
}

.page-title {
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    color: #111;
    margin: 0;
    text-transform: uppercase;
    text-align: left; /* Sola yaslı */
    white-space: nowrap; /* Tek satırda kalsın */
}

/* 3. Kartların Düzeni (3 Sütunlu Grid) */
.terms-grid {
    display: grid;
    /* İŞTE SİHİRLİ KOD: Yan yana tam 3 tane olsun */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; /* Aralarındaki boşluk */
    clear: both !important;
    width: 100% !important;
}

.term-card {
    background: white;
    padding: 30px;
    border-left: 5px solid #D20A0A;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 4px;
    transition: transform 0.3s;
    height: 100%; /* Kartların boyu eşit olsun */
}

.term-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.term-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    color: #222;
    margin-top: 0;
    margin-bottom: 15px;
}

.term-card p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* --- MOBİL UYUMLULUK --- */
/* Telefondan girince 3 tane yan yana sığmaz, o yüzden alt alta alalım */
@media (max-width: 900px) {
    .terms-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablette 2 tane */
    }
}

@media (max-width: 600px) {
    .terms-grid {
        grid-template-columns: 1fr; /* Telefonda 1 tane (alt alta) */
    }
    .page-title {
        font-size: 32px; /* Başlığı mobilde biraz küçült */
        white-space: normal;
    }
}

/* 1. Ana Kutuyu Blok Yap (İçindekiler alt alta düşsün) */
.terms-page-container {
    display: block !important; /* Flex özelliğini eziyoruz, artık yan yana gelemezler */
    max-width: 1200px !important;
    margin: 40px auto;
    padding: 0 20px;
}

/* 2. Başlık Alanını Genişlet */
.terms-header {
    width: 100% !important; /* Ekranı boydan boya kapla */
    display: block !important;
    margin-bottom: 40px !important; /* Kartları aşağı it */
    border-bottom: 4px solid #D20A0A; /* Kırmızı çizgi */
}

/* --- EVENTS PAGE --- */

.events-page {
    background-color: #fff; /* Beyaz Zemin */
    color: #000;
    font-family: 'Roboto', sans-serif; /* Varsa Roboto yoksa Arial */
    padding-bottom: 100px;
    display: flex;
    flex-direction: column; /* Her şeyi (Başlık ve Liste) alt alta dizer */
    align-items: center;    /* Her şeyi ortalar */
    width: 100%;            /* Tam genişlik */
    background-color: #fff; /* Arka plan beyaz */
}

/* LİSTE KUTUSUNUN GENİŞLİĞİNİ GARANTİLEME */
.events-list-wrapper {
    width: 100%;
    max-width: 1200px; /* Çok yayılmasın */
    display: flex;
    flex-direction: column;
    gap: 25px;
}


/* ÜST NAVİGASYON (UPCOMING / PAST) */
.events-top-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.events-nav-item {
    font-family: 'Oswald', sans-serif;
    font-size: 50px;
    margin: 10px;
    text-transform: uppercase;
    cursor: pointer;
}

.events-nav-item.active {
    color: #000; /* Aktif olan siyah */
}

.events-nav-item.inactive {
    color: #a0a0a0a1; /* Pasif olan gri */
}


/* KART TASARIMI (Yatay Şerit) */
.event-card {
    display: flex;
    align-items: center; /* Ortala */
    justify-content: space-between;
    border-bottom: 1px solid #e5e5e5; /* İnce gri çizgi */
    padding: px 5%; /* Kenarlardan boşluk */
    transition: background-color 0.2s;
}

.event-card:hover {
    background-color: #f9f9f9; /* Üstüne gelince çok hafif grileşsin */
}

/* 1. Kolon: Marka (UFC 300 vb.) */
.col-brand {
    width: 30%;
    display: flex;
    flex-direction: column;
    font-family: 'Oswald', sans-serif;
    line-height: 1;
}

.brand-sub {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.brand-main {
    font-size: 33px;
    font-weight: bold;
    text-align: center;
}

/* 2. Kolon: Yüzler */
.col-faces {
    width: 75%;
    display: flex;
    justify-content: center;
    gap: 1px !important;
}

.face-img {
    height: 170px; /* Resim yüksekliği */
    width: auto;
    object-fit: cover;
}

/* 3. Kolon: Bilgiler */
.col-info {
    width: 60%;
    padding-left: 0px;
}

.fight-title {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    color: #000;
}

.fight-title a {
    text-decoration: none;
    color: inherit; /* Mevcut yazı rengini koru */
    transition: color 0.3s ease;
}

.fight-title a:hover {
    color: #D20A0A; /* İmleç gelince KIRMIZI */
    cursor: pointer;
}

.vs-light {
    color: #888;
    font-weight: normal;
}

.fight-meta p {
    margin: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    font-weight: bold;
}

.fight-place {
    color: #777 !important;
    font-weight: normal !important;
}


/* MOBİL UYUMLULUK */
@media (max-width: 900px) {
    .clean-event-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .col-brand, .col-faces, .col-info, .col-actions {
        width: 100%;
        align-items: center;
    }
}

.hidden {
    display: none !important;
}

/* ---------------- FOOTER STYLES ---------------- */
.site-footer {
    background-color: #0a0a0a; /* Kapkara zemin */
    color: #b0b0b0; /* Gri yazılar */
    padding: 60px 0 20px;
    margin-top: 50px; /* İçerikten biraz ayrılsın */
    border-top: 3px solid #1a1a1a;
    font-family: 'Roboto', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 200px; /* Mobilde alt alta geçsin diye */
}

.footer-col h4 {
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    border-left: 3px solid #D20A0A; /* Soluna kırmızı çizgi */
    padding-left: 10px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.footer-links a:hover {
    color: #D20A0A; /* Üzerine gelince kırmızı */
    padding-left: 5px; /* Hafif sağa kayma efekti */
}

/* En Alt Telif Kısmı */
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
    font-size: 13px;
    color: #666;
}

/* =========================================
   MOBİL UYUMLULUK ANASAYFA AYARLARI
   ========================================= */

@media (max-width: 768px) {

    /* 1. Ana Taşıyıcıyı Dikey Yap (Alt Alta Diz) */
    .main-container {
        flex-direction: column !important;
        display: flex;
        padding: 10px; /* Kenarlardan çok yapışmasın */
    }

    /* 2. Sol (Events) ve Sağ (Ranking) Sütunlarını Tam Genişlik Yap */
    .content-area, 
    .sidebar {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        padding-right: 0 !important;
    }

    /* 3. Sidebar (Ranking) Kısmını Aşağı İttir */
    .sidebar {
        margin-top: 40px; /* Next Events ile arasına mesafe koy */
        border-left: none; /* Varsa sol çizgiyi kaldır */
        border-top: 1px solid #333; /* Üstüne çizgi çek */
        padding-top: 20px;
    }

    /* 4. Header ve Menüyü Ortalama */
    .header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-inner nav {
        margin-top: 15px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px; /* Linkler arası boşluk */
    }

    /* 5. Event Kartlarını Mobilde Rahatlat */
    .event-item {
        flex-direction: column; /* UFC yazısı ile dövüşçüleri alt alta al */
        align-items: center;
        text-align: center;
        padding: 20px 10px;
    }

    .event-left {
        /* UFC 300 yazan sol kısım */
        width: 100%;
        margin-bottom: 15px;
        display: flex;
        justify-content: center;
        gap: 10px;
        border-right: none; /* Sağdaki çizgiyi kaldır */
        border-bottom: 2px solid #eee; /* Altına çizgi ekle */
        padding-bottom: 10px;
    }

    .match-info h3 {
        font-size: 1.3rem; /* Mobilde isimler çok büyükse küçült */
    }

    .event-center {
        flex-direction: column !important; /* Yan yana değil alt alta diz */
        width: 100%;
        margin-top: 5px;
    }

    /* 2. Dövüşçü Resimlerini (Faceoff) Ortala */
    .faceoff {
        justify-content: center !important;
        margin-bottom: 15px; /* Resimlerle yazı arasına boşluk koy */
        width: 100%;
    }

    /* 3. Maç Bilgilerini (Match Info) Ortala */
    .match-info {
        width: 100% !important;
        text-align: center !important;
        padding-left: 0 !important; /* Soldaki boşluğu sıfırla */
    }

    /* 4. Başlıkları Biraz Daha Belirgin Yap */
    .match-info h3 {
        margin-bottom: 10px;
        font-size: 1.5rem; /* İsimleri biraz büyüt */
    }
}


/* =========================================
   EVENTS SAYFASI MOBİL AYARLARI
   ========================================= */

@media (max-width: 768px) {

    /* 1. UPCOMING / PAST Başlıklarını Biraz Küçült ve Ortala */
    .events-top-nav {
        justify-content: center;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .events-nav-item {
        font-size: 2.5rem !important; /* Mobilde devasa kalmasın */
    }

    /* 2. Kartın Yapısını Dikey (Alt Alta) Çevir */
    .event-card {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        padding: 25px 15px;
        gap: 15px; /* Parçalar arası boşluk */
        height: auto !important; /* Yükseklik sınırını kaldır */
    }

    /* 3. İçindeki 3 Ana Sütunu Tam Genişlik Yap */
    .col-brand, .col-faces, .col-info {
        width: 100% !important;
        flex: none !important; /* Esnekliği kapat */
        border: none !important; /* Aradaki dikey çizgileri kaldır */
        padding: 0 !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* 4. Sol Taraf (UFC 300) Kısmı */
    .col-brand {
        flex-direction: row !important; /* UFC ve Sayı yan yana kalsın */
        align-items: center;
        gap: 10px;
        border-bottom: 2px solid #f0f0f0 !important; /* Altına ayırıcı çizgi */
        padding-bottom: 15px !important;
        margin-bottom: 10px;
    }
    
    .brand-main {
        font-size: 2rem !important; /* Sayıyı biraz küçült */
    }

    /* 5. Dövüşçü Resimleri */
    .col-faces {
        margin-bottom: 15px;
    }
    
    .face-img {
        height: 140px !important; /* Resim boyutunu mobilde sabitle */
        width: auto;
    }

    /* 6. Bilgi Kısmı (İsimler ve Tarih) */
    .col-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .fight-title {
        font-size: 1.8rem !important; /* İsimleri ekrana sığdır */
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .fight-meta {
        align-items: center !important; /* Yazıları ortala */
    }
}


/* =========================================
   MOBİL CİHAZLAR İÇİN PROFILE SAYFASI DÜZENLEMELERİ (RESPONSIVE)
   ========================================= */

@media (max-width: 768px) {

    /* --- GENEL AYARLAR --- */
    .main-container {
        padding: 0; /* Mobilde kenar boşluklarını sıfırla */
        width: 100%;
    }

    /* --- HEADER (Üst Menü) --- */
    .header-inner {
        flex-direction: column; /* Logoyu ve menüyü alt alta al */
        padding: 15px;
        gap: 15px;
    }

    .logo {
        margin-bottom: 5px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Linkleri ortala */
        gap: 15px;
    }

    nav a {
        font-size: 0.9rem; /* Linkleri biraz küçült */
    }

    /* --- PROFILE BÖLÜMÜ --- */
    .profile-hero {
        display: flex;
        flex-direction: column; /* Yan yana olan resmi ve yazıyı alt alta indir */
        height: auto; /* Sabit yüksekliği kaldır */
    }

    /* --- GÖRSEL ALANI --- */
    .profile-visual {
        width: 40%;
        height: 380px; /* Mobilde resim için net bir alan açıyoruz */
        position: relative; /* Arka planın konumlanması için şart */
        overflow: hidden; /* Taşan kısımları gizle */
        border-bottom: 4px solid #f1c40f; /* Altına sarı çizgi */
        
        /* FLEXBOX BÜYÜSÜ: Resmi otomatik hizalar */
        display: flex;
        align-items: flex-end; /* Resmi en alta yapıştır */
        justify-content: center; /* Resmi tam ortala */
    }

    .flag-bg {
        position: absolute; /* Kutudan bağımsız arkaya yayıl */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1; /* En altta kalsın */
        opacity: 0.3; /* Resmi boğmasın diye biraz daha silik */
    }

    .fighter-img {
        /* Önceki absolute kodlarını iptal ediyoruz */
        position: relative !important; 
        z-index: 2; /* Bayrağın üstüne çıksın */
        
        height: 95%; /* Kutunun %95'ini doldursun */
        width: auto; /* Orantıyı korusun */
        max-width: 100%; /* Sağa sola taşmasın */
        object-fit: contain; /* Resmi asla yamultma */
        
        /* Eski kaydırma kodlarını sıfırlıyoruz */
        left: auto !important;
        transform: none !important;
        bottom: auto !important;
    }

    /* --- İSTATİSTİK ALANI --- */
    .profile-stats {
        width: 100%;
        padding: 20px;
    }

    .fighter-name {
        font-size: 2.5rem; /* İsmi mobilde biraz küçült taşmasın */
        text-align: center; /* Ortala */
        line-height: 1.1;
    }

    .fighter-nickname {
        text-align: center;
        margin-bottom: 20px;
    }

    /* Rozetleri ortala */
    .main-badge {
        margin-left: auto;
        margin-right: auto;
        display: table; /* Ortalamak için trick */
        margin-bottom: 10px;
    }

    /* İstatistik Izgarası (Grid) */
    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2 Sütun yap (Mobilde 4 sütun sığmaz) */
        gap: 15px;
        margin-top: 30px;
    }

    .stat-item {
        background: rgba(255,255,255,0.03); /* Mobilde okunabilirlik için hafif arka plan */
        padding: 10px;
        border-radius: 5px;
        text-align: center; /* Değerleri ortala */
    }

    .stat-item .label {
        font-size: 0.75rem;
    }

    .stat-item .value {
        font-size: 1.1rem;
    }

    /* Win Breakdown (Bar Grafikler) */
    .win-breakdown {
        margin-top: 30px;
    }

    /* --- FOOTER --- */
    .footer-container {
        flex-direction: column; /* Footer sütunlarını alt alta al */
        text-align: center;
        gap: 30px;
    }

    .footer-logo img {
        margin: 0 auto; /* Logoyu ortala */
        display: block;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}