/* ============================
   GENEL AYARLAR
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
}

/* ============================
   CONTACT PAGE
================================ */
	.contact-container {
         max-width: 550px;
            margin: 60px auto;
            padding: 35px 25px;
            background: linear-gradient(180deg, #111111, #080808);
            border: 1px solid #222;
            border-radius: 12px;
            text-align: center;
        }

        .contact-container h2 {
            font-size: 26px;
            margin-bottom: 8px;
            color: #fff;
        }

        .contact-desc {
            color: #888;
            font-size: 14px;
            margin-bottom: 30px;
        }

        .contact-grid {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .contact-card {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 75px;
            height: 75px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid #262626;
            border-radius: 12px;
            transition: all 0.25s ease;
            text-decoration: none;
        }

        .contact-card svg {
            width: 34px;
            height: 34px;
            fill: #ffffff; /* Tüm SVG ikonları BEYAZ yapar */
            transition: transform 0.25s ease;
        }

        .contact-card svg path {
            fill: #ffffff !important;
        }

        .contact-card:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: #555;
            transform: translateY(-3px);
            box-shadow: 0 4px 15px rgba(255, 255, 255, 0.08);
        }

        .contact-card:hover svg {
            transform: scale(1.1);
        }
/* ============================
   CONTACT PAGE
================================ */



/* ============================
   HEADER (ÜST BİLGİ ALANI)
================================ */
.header-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
    background: transparent !important;
    border-bottom: 1px solid #333;
    position: relative;
}

.header-box img {
    width: 90px;
    height: auto;
}

.vertical-line {
    position: absolute;
    left: 44.2%;
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.82);
}

.header-line {
    width: 100%;
    height: 2px;
    background: #c2c2c2bb;
    border-radius: 5px;
}

.header-box h1 {
    color: white;
    font-size: 34px;
    font-weight: bold;
}

.header-box .logout-btn {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #fff;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.header-box .logout-btn:hover {
    opacity: 1;
    color: #ff4d4d;
}

/* ============================
   MENU BUTONU & SOL SIDEBAR
================================ */
.menu-btn {
    position: fixed;
    top: 30px;
    left: 20px;
    font-size: 34px;
    color: white;
    cursor: pointer;
    z-index: 9999;
}

.sidebar {
    position: fixed;
    left: -240px;
    top: 0;
    width: 240px;
    height: 100%;
    background: #111;
    border-right: 2px solid #333;
    padding-top: 110px;
    text-align: center;
    transition: 0.3s ease;
    z-index: 9998;
    font-weight: bold;
}


.sidebar-line {
    width: 100%;
    height: 2px;
    background: #c2c2c2bb;
    position: absolute;
    top: 96px; /* Header alt çizgisinin bittiği hiza */
    left: 0;
    margin: 0;
}

.sidebar.open {
    left: 0;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin: 15px 0;
}

.sidebar ul li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 18px;
    color: #ccc;
    transition: 0.2s ease;
}

.sidebar ul li a:hover {
    background: #222;
    color: #fff;
    border-left: 4px solid white;
}

/* ============================
   İÇERİK ALANI (CONTENT)
================================ */
.content {
    padding: 20px;
    text-align: center;
    transition: 0.3s ease;
}

.content.shift {
    margin-left: 240px;
}

/* ============================
   OYUNCU & ADMIN İSTATİSTİK TABLOSU
================================ */
.scoreboard {
    position: relative;
    margin-bottom: 130px;
}

.table-wrapper {
    position: relative;
    width: 70%; 
    margin: 40px auto 0 auto;
}

table.score {
    width: 100%;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0 6px;
    table-layout: fixed;
}

table.score th.col-rank, table.score td.col-rank {
    width: 5%; 
    text-align: center; 
    color: #aaa; 
    font-weight: bold; 
}

table.score th.col-name, table.score td.col-name { 
    width: 23%; 
    text-align: left;
    padding-left: 15px; 
    font-weight: 700; 
    color: #ffffff; 
}

table.score th.col-team, table.score td.col-team {
    width: 24%;
    text-align: left; 
}

table.score th.col-kill, table.score td.col-kill {
    width: 14%;
    text-align: center;
    color: #00ff99 !important;
    font-weight: 700; 
}

table.score th.col-death, table.score td.col-death { 
    width: 14%; 
    text-align: center; 
    color: #ff4d4d !important; 
    font-weight: 700; 
}

table.score th.col-maps, table.score td.col-maps { 
    width: 12%; 
    text-align: center; 
    color: #ffffff; 
}

table.score th.col-process, table.score td.col-process { 
    width: 8%; 
    text-align: center; 
    white-space: nowrap; 
}

table.score thead th {
    background: rgba(255, 255, 255, 0.02);
    padding: 16px 10px; 
    font-size: 17px; 
    font-weight: 700;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 2px solid #222;
}

table.score td {
    padding: 16px 12px; 
    font-size: 17px; 
    vertical-align: middle;
    border: none;
}

table.score tbody tr {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    transition: background 0.15s ease;
}

table.score tbody tr:hover {
    background: rgba(255, 255, 255, 0.09);
}

table.score tbody tr td:first-child { border-radius: 6px 0 0 6px; }
table.score tbody tr td:last-child { border-radius: 0 6px 6px 0; }

td.team-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.team-logo {
    width: 28px; 
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

table.score td.col-process a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px; 
    color: #ffffff !important;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

table.score td.col-process a:hover {
    opacity: 0.7;
    transform: scale(1.15);
}

table.score td.col-process .delete-link:hover {
    color: #ff4d4d !important;
}

/* ============================
   FİLTRE & DROPDOWN MENÜ
================================ */
.filter-dropdown-wrapper {
    position: absolute;
    top: -45px;
    right: 0;
    z-index: 100;
    margin-bottom: 50px;
}

.filter-dropdown-btn {
    background: #111;
    color: #fff;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.filter-dropdown-btn:hover {
    background: #222;
    border-color: #555;
}

.filter-dropdown-btn .arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.filter-dropdown-btn.open .arrow {
    transform: rotate(180deg);
}

.filter-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    min-width: 150px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.filter-dropdown-menu.show {
    display: flex;
}

.filter-dropdown-menu a {
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease;
    border-bottom: 1px solid #222;
}

.filter-dropdown-menu a:last-child {
    border-bottom: none;
}

.filter-dropdown-menu a:hover {
    background: #222;
}

.filter-dropdown-menu a.active {
    background: rgb(26, 26, 26);
    color: #ffffff;
    font-weight: bold;
}

.filters {
    text-align: center;
    margin-bottom: 20px;
}

.filters a {
    margin: 0 10px;
    padding: 8px 16px;
    border-radius: 6px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border: 1px solid #333;
}

.filters a:hover {
    background: #222;
}

.filters a.active {
    background: rgb(26, 26, 26);
    color: #ffffff;
    font-weight: bold;
    border-color: #555;
}

/* ============================
   TAKIM KUTULARI LİSTESİ & ADMIN DÜZENİ
================================ */
.team-box-list {
    width: 40%;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.team-box {
    background: linear-gradient(180deg, #151515, #0c0c0c);
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
    transition: all 0.25s ease;
}

.team-box:hover {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15), 0 0 18px rgba(255,255,255,0.08);
}

.team-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 10px; 
    min-height: 16px;    
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.team-left {
    display: flex;
    align-items: center; 
    gap: 10px;
}

.team-rank {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-right: 10px;
}

.team-box-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.team-box-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;    
}

.team-right-group {
    display: flex;
    align-items: center;
    gap: 25px; 
    margin-left: auto;
}

.team-points {
    font-size: 14px;
    color: #00ff99;
    font-weight: 600;
    white-space: nowrap;
}

.team-process {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.team-process a {
    text-decoration: none;
    font-size: 15px;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
}

.team-process .divider {
    color: #444444;
    font-size: 14px;
    user-select: none;
}

.team-box-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    padding: 0 18px 18px;
    transition: max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, transform 0.35s ease;
}

.team-box.open .team-box-content {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
}

.team-box-divider {
    margin-top: 10px;   
    margin-bottom: 13px;  
    height: 1px;
    background: rgba(255,255,255,0.15);
}

.team-box-players, .team-box-manager {
    margin-top: 6px;      
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.4px;
}

.team-box-manager {
    font-weight: 600;
}

.team-filter-bar {
    width: 40%;
    margin: 10px auto;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

/* ============================
   PAGINATION (SAYFALAMA)
================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 12px;   
    margin-bottom: 50px;
}

.pagination a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #333;
    transition: all 0.15s ease;
}

.pagination a:hover {
    background: #2a2a2a;
}

.pagination a.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}


/* ===================================================
   RESPONSIVE (MOBIL UYUMLULUK) - MAX 768PX
=================================================== */
@media screen and (max-width: 768px) {
    .header-box {
        padding: 14px 50px;
        gap: 10px;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .header-box img {
        width: 38px;
        height: auto;
    }

    .header-box h1 {
        font-size: 19px;
        white-space: nowrap;
    }

    
    .vertical-line {
        position: static;
        width: 2px;
        height: 24px;
        margin: 0 4px;
        background: rgba(255, 255, 255, 0.4);
    }

    .header-line {
        margin: 0 0 20px 0;
    }

   .menu-btn {
    position: fixed; 
    top: 16px;
    left: 18px;
    font-size: 28px;
    color: #ffffff !important;
    cursor: pointer;
    z-index: 99999 !important; 
    user-select: none;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: transparent;
    transition: transform 0.2s ease;
}


.menu-btn.active {
    font-size: 36px;
    font-weight: 300;
}


    .header-box .logout-btn {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
    }


.sidebar {
    padding-top: 90px !important;
}


.sidebar-line {
    width: 100%;
    height: 2px !important;
    background: #c2c2c2bb !important;
    border-radius: 5px;
    position: absolute;
    top: 68px !important; 
    left: 0;
    margin: 0 !important;
}


.sidebar ul {
    margin-top: -5px !important;
    padding: 0 !important;
}
  
    .sidebar ul li a {
        text-align: center !important; 
        padding: 10px 0 !important;
        font-size: 16px !important;
    }
  
    .content {
        padding: 10px 14px;
        margin-top: 0;
    }

    .content.shift {
        margin-left: 0;
    }

    .scoreboard {
        width: 100%;
        margin-bottom: 30px;
    }

    .table-wrapper {
        width: 100%;
        margin-top: 50px; 
        position: relative;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0;
    }

    
    .filter-dropdown-wrapper {
        position: absolute;
        top: -42px;
        right: 0;
        left: auto;
        margin-bottom: 0;
        z-index: 100;
        display: block;
    }

    .filter-dropdown-btn {
        padding: 7px 12px;
        font-size: 13px;
        gap: 6px;
    }

    .filter-dropdown-menu {
        top: 100%;
        right: 0;
        left: auto;
        margin-top: 5px;
        min-width: 140px;
        z-index: 200;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.8);
    }

    
    table.score {
        min-width: 600px;
        table-layout: auto;
    }

    table.score thead th, 
    table.score td {
        padding: 12px 8px;
        font-size: 13px;
        white-space: nowrap;
    }

    td.team-cell {
        font-size: 13px;
        gap: 8px;
    }

    .team-logo {
        width: 22px;
        height: 22px;
    }

   
    .pagination {
        margin: 25px 0;
        gap: 6px;
    }

    .pagination a {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }
}

/* ============================
   RESPONSIVE (EKSTRA MOBIL) - MAX 480PX
================================ */
@media screen and (max-width: 480px) {
    .team-box-list, .team-filter-bar {
        width: 92% !important;
        margin: 15px auto;
    }

    .team-box {
        padding: 14px 16px;
    }

    .team-box-header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .team-box-name {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .team-rank {
        font-size: 15px;
        min-width: 20px;
    }

    .team-box-logo {
        width: 28px;
        height: 28px;
    }

    .team-right-group {
        gap: 10px;
    }

    .team-points {
        font-size: 13px;
    }
}

/* ============================
   FORM ALANLARI
================================ */
.form-container, .form-container-team {
    margin: 50px auto 115px auto;
    padding: 30px;
    border-radius: 10px;
    background: linear-gradient(180deg, #111, #0b0b0b);
    border: 1px solid #222;
    width: 100%;
    max-width: 500px; 
    box-sizing: border-box;
}

.form-container form, .form-container-team form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.form-container h2, .form-container-team h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 26px;
    letter-spacing: 1px;
}

.form-container form input, 
.form-container form select, 
.form-container form button,
.form-container-team form input, 
.form-container-team form select, 
.form-container-team form button {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #111;
    color: white;
    font-size: 16px;
    box-sizing: border-box; 
}

.form-container form button, .form-container-team form button {
    background: #222;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.form-container form button:hover, .form-container-team form button:hover {
    background: #333;
    border-color: #555;
}

.form-container form .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.form-container form .grid-3 input {
    width: 100% !important;
}

@media (max-width: 600px) {
    .form-container form .grid-3, .form-container-team form .grid-3 {
        grid-template-columns: 1fr; 
    }
}

/* ============================
   KADRO YÖNETİMİ (ROSTER) KESİN ÇÖZÜM
================================ */
.roster-container {
    max-width: 600px !important;
    margin-top: 40px !important;
}

.roster-error {
    background: rgba(255, 77, 77, 0.15);
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
}

.roster-add-form {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    margin-bottom: 25px;
    width: 100%;
}

.roster-add-form input[type="text"] {
    flex: 1;
    margin: 0;
}

.btn-add-roster {
    width: auto !important;
    padding: 12px 25px !important;
    background: #00ff99 !important;
    color: #000000 !important;
    font-weight: bold;
    margin: 0 !important;
    white-space: nowrap;
}

.btn-add-roster:hover {
    background: #00cc7a !important;
}

.roster-divider {
    margin: 20px 0 !important;
}

.roster-player-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

/* Kart yapısı arka plan ve hizalama sabitlemesi */
.roster-player-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.05) !important; /* Arka plan rengi eklendi */
    padding: 14px 18px !important;
    margin-bottom: 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Oyuncu bilgisi yan yana hizalama */
.player-info-block {
    display: flex;
    align-items: center;
    gap: 8px; 
}

.player-info-block strong {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.player-info-block small {
    color: #888888;
    font-size: 14px;
}

.roster-player-item form {
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
}

.no-players {
    color: #aaaaaa;
    padding: 15px;
    text-align: center;
    font-size: 15px;
}

.btn-remove-roster {
    background: transparent !important;
    border: none !important;
    color: #ff4d4d !important;
    cursor: pointer;
    font-size: 16px;
    padding: 5px 10px !important;
    display: inline-flex;
    align-items: center;
    transition: transform 0.15s ease;
}

.btn-remove-roster:hover {
    transform: scale(1.2);
}

.back-to-list {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s ease;
}

.back-to-list:hover {
    color: #ffffff;
}

/* ============================
   FOOTER VE İKON AYARLARI
================================ */
.footer {
    width: 100%;
    padding: 25px 0;
    color: #aaa;
    border-top: 1px solid #333;
    background: #000;
    text-align: center;
    margin-top: auto;
}

.footer p {
    color: #ccc;
    font-size: 16px;
}

.fa-solid, .fa-regular, .fa-brands, .fa {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    line-height: 1;
}