﻿/* styles.css */
body {
    margin: 0;
    padding: 0;
    background: #111;
    font-family: 'Inter', sans-serif;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #181818;
    padding: 15px 40px;
    color: white;
    height: 80px; /* Yükseklik artırıldı */
    border-radius: 12px;
}

.logo {
    font-size: 22px;
    font-weight: 600;
    margin-left: 20px; /* LOGO sağa kaydırıldı */
}

nav {
    display: flex;
    gap: 25px;
}

    nav a, .sss {
        text-decoration: none;
        color: #ccc;
        font-weight: 500;
        font-size: 16px;
        padding: 12px 18px;
        border-radius: 8px;
        transition: all 0.3s ease-in-out;
        display: flex;
        align-items: center;
        gap: 10px; /* İkon ve metin arasındaki boşluk artırıldı */
    }

        nav a:hover, .sss:hover {
            background: #004aad;
            color: white;
            padding: 15px 22px; /* Hover'da padding büyütüldü */
        }


.active {
    background: #004aad;
    color: white;
    /*padding: 15px 22px;*/
}

.right-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 30px; /* SSS ve Profil ikonu biraz sola kaydırıldı */
}

.profile-icon {
    width: 40px;
    height: 40px;
    background: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    color: white;
}

    .profile-icon:hover {
        background: #777;
    }



.login-button {
    text-decoration: none;
    color: white;
    background: #004aad;
    padding: 6px 15px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

    .login-button:hover {
        background: #004aad;
        padding: 12px 20px;
        color: white;
    }



.search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /*background: #111;*/
    padding: 10px 15px;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.custom-search {
    flex: 1;
    background: #181818;
    color: white;
    border: 2px solid #333;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

    .custom-search:focus {
        border: 2px solid #333;
        background: #181818; /* Arka plan beyaz olmasın */
    }

.view-btn {
    background: #333;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

    .view-btn:hover, .active-view-btn {
        background: #004aad; /* Seçili ve hover durumunda arka plan */
    }


.players-container {
    margin-top: 25px;
    display: flex;
    flex-direction: column; /* Kartları dikey hizalamak için */
    gap: 25px; /* Kartlar arasındaki boşluk artırıldı */
}

/* Oyuncu Kartı */
.player-card {
    display: flex;
    align-items: center;
    background: #222;
    color: white;
    border-radius: 10px;
    padding: 0;
    transition: 0.3s;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-height: 120px; /* Yükseklik artırıldı */
    margin-bottom: 20px; /* Kartlar arasına boşluk bırakıldı */
}


    .player-card:hover {
        background: #2e2a35; /* #222'ye yakın, biraz daha açık gri-mor */
    }

/* Profil Fotoğrafı */
/* Profil Fotoğrafı */
.player-photo {
    width: 120px; /* Genişlik sabit kaldı */
    height: 120px; /* Kartın yüksekliğine uyum sağladı */
    overflow: hidden;
    background: #444;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .player-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Fotoğrafın kartı tamamen kaplamasını sağladık */
    }


/* Oyuncu Bilgileri */
.player-info {
    display: flex;
    align-items: center;
    gap: 20px; /* Daha fazla boşluk */
    padding: 10px 15px;
    flex: 1;
    background: #8d2df3; /* Arka plan rengi */
    height: 120px; /* Kart ile aynı yükseklikte */
    display: flex;
}

.player-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #FFD700;
    text-align: center;
    min-width: 60px;
}

.rank-number {
    font-size: 40px; /* Numara büyütüldü */
    font-weight: bold;
    color: white;
}

.rank-label {
    font-size: 13px;
    color: #bbb;
}

.separator {
    font-size: 30px;
    color: #777;
}

/* Oyuncu Detayları */
.player-details {
    display: flex;
    flex-direction: column;
    gap: 5px; /* İsim ve bilgi arasına boşluk eklendi */
}

.player-name {
    font-size: 20px; /* Oyuncu adı büyütüldü */
    font-weight: bold;
}

.player-position {
    font-size: 16px; /* Pozisyon ve şehir bilgisi büyütüldü */
    color: #bbb;
}

.logo img {
    height: 270px; /* İhtiyaca göre boyutu ayarlayabilirsin */
    width: auto;
}

/* Oyuncu İstatistikleri */
.player-stats {
    display: flex;
    gap: 50px; /* Daha geniş boşluk bırakıldı */
    margin-right: 30px; /* Player-stats biraz daha sola kaydırıldı */
    margin-left: 30px
}

.stat-box {
    text-align: center;
    min-width: 60px;
}

.stat-value {
    font-size: 27px;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: #bbb;
    display: block;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

    .player-header h2 {
        font-size: 20px;
        font-weight: 600;
    }

.player-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: #333;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 40px;
    gap:5px
}

    .action-btn:hover {
        background: #004aad;
    }



/* Profil Fotoğrafı */
/*.player-photo-vertical img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}*/
.player-photo-vertical img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    margin-bottom: 15px;
}

/* İçerik Alanı */
.player-content-vertical {
    text-align: center;
    margin-top: 10px;
}

/* Oyuncu Bilgileri */
/*.player-info-vertical {
    margin-bottom: 10px;
}*/
.player-info-vertical {
    text-align: center;
    margin-bottom: 15px;
}

.rank-number-vertical {
    font-size: 24px;
    font-weight: bold;
    color: #8d2df3;
}

.rank-label-vertical {
    font-size: 12px;
    color: #bbb;
}


.player-name-vertical {
    font-size: 18px;
    font-weight: 600;
}


.player-position-vertical {
    font-size: 14px;
    color: #aaa;
}

/* Oyuncu İstatistikleri */
/*.player-stats-vertical {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}*/
.player-stats-vertical {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
}

/*.stat-box-vertical {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    min-width: 70px;
}*/
.stat-box-vertical {
    background: rgba(255, 255, 255, 0.06);
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
}

    .stat-box-vertical:hover {
        background: rgba(255, 255, 255, 0.12);
        transform: scale(1.05);
    }

/*.stat-value-vertical {
    font-size: 16px;
    font-weight: bold;
}*/
.stat-value-vertical {
    font-size: 18px;
    font-weight: bold;
    color: #00ff88;
}


/*.stat-label-vertical {
    font-size: 12px;
    color: #bbb;
}*/
.stat-label-vertical {
    font-size: 12px;
    color: #ccc;
    display: block;
    margin-bottom: 4px;
}

#player-container-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Artık sola hizalı */
    gap: 20px;
}

.player-card-vertical {
    flex: 0 0 calc(25% - 20px); /* 4 kart - 20px gap ayarlı */
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #222;
    color: white;
    border-radius: 12px;
    padding: 15px;
    transition: 0.3s;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

    /* Hover efekti */
    .player-card-vertical:hover {
        background: #2e2a35;
        transform: scale(1.05);
    }

/* Sidebar */
.filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    background: #181818;
    z-index: 1051;
    padding: 30px 20px;
    color: white;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.6);
    transform: translateX(-100%);
    transition: transform 0.4s ease-in-out;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
}

    .filter-sidebar.active {
        transform: translateX(0);
    }

#apply-filters {
    margin-top: 10px;
    width: 100%;
    padding: 10px 0;
    font-weight: 500;
    font-size: 15px;
}

/* Overlay */
#sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

    #sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* Butonlar */
.gender-toggle-group {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.gender-btn {
    flex: 1;
    padding: 6px 10px;
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s;
}

    .gender-btn.active {
        background: #00ff88;
        color: #000;
        font-weight: 600;
    }

/* Select satırları */
.custom-select-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-select-row {
    background: #1e1e1e;
    padding: 10px 15px;
    border: 1px solid #333;
    border-radius: 10px;
    color: #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
}

/* Radyo Grid */
.feature-radio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
}

    .feature-radio-grid label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        color: #ccc;
    }

    .feature-radio-grid input[type="radio"] {
        accent-color: #00ff88;
    }


.filter-header {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

    .filter-header h5 {
        font-size: 18px;
        font-weight: 600;
        margin: 0;
    }

#sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6); /* sadece yarı saydam koyu arka plan */
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

    #sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.filter-body label {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
    color: #ccc;
}

.select2-container .select2-selection--single {
    background: #2a2a2a;
    border: 1px solid #555;
    color: white;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: white;
}


.sort-dropdown {
    position: absolute;
    background: #1e1e1e;
    color: white;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px;
    z-index: 999;
    width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

    .sort-dropdown h6 {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .sort-dropdown label {
        display: block;
        font-size: 13px;
        margin-bottom: 8px;
        cursor: pointer;
    }

    .sort-dropdown input[type="radio"] {
        margin-right: 8px;
        accent-color: #00ff88;
    }




.card-edit-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    padding: 8px;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

    .card-edit-icon:hover {
        background: #00ff88;
        color: #000;
        transform: scale(1.1);
    }

/* Medium ekranlarda 3 kart */
@media (max-width: 1200px) {
    .player-card-vertical {
        flex: 0 0 calc(33.33% - 20px);
    }
}

.menu-toggle {
    font-size: 24px;
    color: white;
    cursor: pointer;
    display: none;
}

/* Nav için mobilde görünmeyen varsayılan */
.main-nav {
    display: flex;
    gap: 25px;
}


@media (max-width: 1171px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #181818;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 20px 0;
        display: none;
        z-index: 999;
    }

        .main-nav.active {
            display: flex;
        }

    .right-section {
        display: none; /* İsteğe bağlı: sağ bölüm gizlenebilir */
    }

    .main-nav .login-button {
        background: #004aad;
        color: white;
        padding: 10px 20px;
        margin-top: 10px;
        border-radius: 8px;
        width: 80%;
        justify-content: center;
    }

    .main-nav .sss {
        color: #ccc;
    }

    .main-nav a {
        justify-content: center;
    }

    /* Mobil profil dropdown düzenlemesi */
    .main-nav .profile-wrapper {
        width: 80%;
        margin: 10px 0;
    }

    .main-nav .profile-info {
        justify-content: center;
        width: 100%;
    }

}

/* Tablet ekranlarda 2 kart */
@media (max-width: 768px) {
    .player-card-vertical {
        flex: 0 0 calc(50% - 20px);
    }
}



/* Mobilde 1 kart */
@media (max-width: 576px) {
    .player-card-vertical {
        flex: 0 0 100%;
    }
}


#filter-sidebar .select2-container .select2-selection--single {
    background: #2a2a2a;
    border: 1px solid #555;
    color: white;
    height: 40px;
    justify-content: center;
    align-content: center;
    align-items: center;
}

#filter-sidebar .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: white;
}

/* Global Select2 varsayılan stilini bozan her şeyi sıfırla */
.select2-container .select2-selection--single {
    all: unset;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    all: unset;
}




