@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    background-color: #1e1e1e;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    padding-top: 70px; /* Space for fixed header */
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Header Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    border-bottom: 2px solid rgba(52, 152, 219, 0.3);
    transition: transform 0.3s ease;
}

.main-header.hidden {
    transform: translateY(-100%);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    margin: 0;
    font-size: 28px;
    color: #3498db;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.main-nav {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.nav-link.active {
    background: rgba(52, 152, 219, 0.3);
    color: #3498db;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: #3498db;
}

/* Content Pages */
.content-page {
    width: 100%;
    max-width: 1200px;
    padding: 40px;
    background: rgba(44, 62, 80, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px;
    animation: fadeIn 0.5s ease-in-out;
    z-index: 1; /* Lower than game container */
}

.page-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-container h1 {
    color: #3498db;
    font-size: 36px;
    margin-bottom: 20px;
    text-align: center;
}

.page-container h2 {
    color: #ecf0f1;
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-container p {
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 15px;
}

.page-container ul {
    line-height: 2;
    font-size: 16px;
    margin-left: 20px;
}

/* How to Play - Controls Grid */
.control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.control-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.key-button {
    display: inline-block;
    background: linear-gradient(145deg, #34495e, #2c3e50);
    color: #3498db;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    margin: 10px 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(52, 152, 219, 0.3);
}

.control-item span {
    display: block;
    color: #95a5a6;
    font-size: 14px;
    margin: 5px 0;
}

.control-item p {
    margin-top: 15px;
    color: #ecf0f1;
    font-size: 14px;
}

.important-note {
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid #e74c3c;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
}

.important-note h3 {
    color: #e74c3c;
    margin-top: 0;
}

.gameplay-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.contact-info {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

.contact-info p {
    font-size: 18px;
    margin: 15px 0;
}

/* Ana Konteynerler */
#lobby-screen, #game-container {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

#game-container {
    position: fixed; /* Fixed positioning for full screen */
    top: 0;
    left: 0;
    display: flex;
    gap: 20px;
    align-items: stretch;
    padding: 0;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    z-index: 100; /* Above content pages */
    background-color: #1e1e1e;
}

/* Lobi Ekranı */
#lobby-screen {
    width: 100%;
    max-width: 800px;
    background: rgba(44, 62, 80, 0.85);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10; /* Above content pages but below modals */
}

#lobby-screen h1 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 2.5em;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position:relative;
}

/* Nickname Card */
.nickname-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(46, 204, 113, 0.15) 100%);
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.nickname-card:hover {
    border-color: rgba(52, 152, 219, 0.5);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.nickname-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nickname-label {
    color: #95a5a6;
    font-size: 14px;
    font-weight: 500;
}

.nickname-value {
    color: #3498db;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.change-nickname-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.change-nickname-btn:hover {
    background: linear-gradient(135deg, #2980b9, #2573a7);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.change-nickname-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

.change-nickname-btn svg {
    width: 16px;
    height: 16px;
}

/* Responsive Nickname Card */
@media (max-width: 600px) {
    .nickname-card {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nickname-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .change-nickname-btn {
        width: 100%;
        justify-content: center;
    }
}
#player-count{
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);
    font-size:0.6em;
    color:#bdc3c7;
}

.lobby-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

#room-list-container {
    margin-top: 20px;
}

#room-list-container h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
}

#room-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.room-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.room-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.room-item:last-child {
    border-bottom: none;
}

.room-item span {
    font-weight: 600;
    color: #bdc3c7;
}

.room-item .join-btn {
    margin-left: 10px;
}

/* Input ve Buton Stilleri */
input[type="text"], input[type="number"] {
    flex-grow: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.3);
    color: #ecf0f1;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="number"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
    outline: none;
    background-color: rgba(0, 0, 0, 0.4);
}

button, .join-btn {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#create-room-btn {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
}

#create-room-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(46, 204, 113, 0.3);
}

.join-btn {
    font-size: 14px;
    padding: 8px 15px;
    text-transform: none;
    letter-spacing: 0.5px;
}

[data-team="red"] { background-color: #c0392b; color: white; }
[data-team="red"]:hover { background-color: #e74c3c; transform: scale(1.05); }
[data-team="blue"] { background-color: #2980b9; color: white; }
[data-team="blue"]:hover { background-color: #3498db; transform: scale(1.05); }

/* Modal Stilleri */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

/* Nickname Modal özel */
#nickname-modal .modal-content{
    max-width: 400px;
}

/* Ekranın sol üstünde gösterilen nick */
.nickname-display{
    position: fixed;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.5);
    padding: 6px 12px;
    border-radius: 6px;
    color: #ecf0f1;
    font-weight: 600;
    z-index: 900;
}

.modal-content {
    background: #2c3e50;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 450px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    animation: zoomIn 0.3s ease-out;
}

.modal-content label{
    display:flex;
    flex-direction:column;
    gap:4px;
    font-size:14px;
    color:#ecf0f1;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-btn {
    color: #aaa;
    align-self: flex-end;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    padding: 0 5px;
}

.close-btn:hover {
    color: #ffffff;
}

#confirm-create-room-btn {
    background: linear-gradient(45deg, #8e44ad, #9b59b6);
    color: white;
}

#confirm-create-room-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(155, 89, 182, 0.3);
}

/* Oyun Alanı ve Sohbet */
#gameCanvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0; /* Tam ekran kaplaması için */
    border: none;
    background-color: #2c3e50;
    box-shadow: none;
}

#chat-container { /* raise above scoreboard overlay */
    position:absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%); /* Start below screen */
    width: 60%;
    max-width: 800px;
    display: flex;
    flex-direction: column; /* Form altta kalsın, mesajlar üstte */
    padding: 20px 20px 10px; /* Alttaki boşluğu azalttık */
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    border: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth slide animation */
    overflow: hidden;
    z-index: 2000; /* scoreboard üstünde */
}

#chat-container.active {
    transform: translateX(-50%) translateY(0); /* Slide up into view */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding-top: 30px; /* Açıkken daha fazla boşluk */
}

#chat-messages {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column-reverse; /* Mesajları alttan üste sırala */
    align-items: center; /* Mesajları ortala */
    -webkit-mask-image: linear-gradient(to top, black 20%, transparent 100%);
    mask-image: linear-gradient(to top, black 20%, transparent 100%);
    max-height: 90px; /* ≈3 mesaj yüksekliği */
    overflow: hidden; /* Kapalıyken scrollbar yok */
    transition: max-height 0.4s ease;
}

#chat-container.active #chat-messages {
    max-height: 250px; /* Açıkken daha yüksek */
    overflow-y: auto; /* Açıkken scrollbar gelsin */
    -webkit-mask-image: none; /* Açıkken gradyanı kaldır */
    mask-image: none;
    padding-right: 5px; /* Scrollbar için boşluk */

    /* Özel scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

#chat-messages::-webkit-scrollbar {
    width: 6px;
}
#chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
#chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.3);
    border-radius: 3px;
}

#chat-messages li {
    background: rgba(20, 20, 20, 0.7);
    margin-bottom: 5px;
    padding: 8px 15px;
    border-radius: 15px; /* Daha yuvarlak köşeler */
    font-size: 15px;
    max-width: 90%; /* Genişliği biraz daha artır */
    word-wrap: break-word;
    opacity: 0; /* Başlangıçta gizli */
    transform: translateY(10px); /* Başlangıçta aşağıda */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#chat-messages li.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInMessage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#chat-messages li .nickname {
    font-weight: 700;
}

#chat-form {
    width: 100%;
    padding-top: 10px;
}

#chat-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.5);
    color: #ecf0f1;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#chat-container.active #chat-input {
    opacity: 1;
    visibility: visible;
}

#login-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#nickname-input {
    padding: 10px;
    font-size: 16px;
    width: 250px;
    border: 2px solid #f0f0f0;
    background-color: #2c3e50;
    color: #f0f0f0;
    border-radius: 5px;
    text-align: center;
}

#play-button {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    background-color: #1abc9c;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#play-button:hover {
    background-color: #16a085;
}

#player-info {
    width: 280px;
    flex-shrink: 0;
}

#player-info h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Maç Sonu Özet Stilleri */
.summary-content {
    width: 90%;
    max-width: 800px;
    gap: 10px;
}

#summary-title {
    font-size: 2.2em;
    color: #fff;
    text-align: center;
    margin: 0;
}

#summary-mvp {
    text-align: center;
    background-color: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 1.2em;
}

#summary-mvp span {
    font-weight: bold;
    color: #f1c40f; /* Altın rengi */
}

#summary-stats-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.team-stats {
    flex: 1;
    background-color: rgba(0,0,0,0.15);
    padding: 15px;
    border-radius: 8px;
}

.team-stats h4 {
    margin: 0 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid;
    font-size: 1.1em;
}

#blue-team-stats h4 { border-color: #3498db; }
#red-team-stats h4 { border-color: #e74c3c; }

.team-stats ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.team-stats li {
    padding: 8px 5px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9em;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.team-stats li:last-child {
    border-bottom: none;
}

.team-stats .stat-name {
    font-weight: bold;
}

.team-stats .stat-values {
    color: #bdc3c7;
    text-align: right;
}

#summary-chart-container {
    width: 100%;
    max-width: 400px;
    margin: 20px auto 0;
}

#return-to-lobby-btn {
    margin-top: 20px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
}
#return-to-lobby-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

/* Gelişmiş Oda Yönetimi Stilleri */
.game-info-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 1.1em;
    z-index: 100;
    backdrop-filter: blur(3px);
}

.team-selection-modal .modal-content {
    max-width: 1200px;
    width: 95%;
    flex-direction: row;
    align-items: flex-start;
}

.team-selection-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 20px;
}

.team-panel, .waiting-panel {
    flex: 1;
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 8px;
}

.team-panel h3, .waiting-panel h3, .waiting-panel h4 {
    margin-top: 0;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.waiting-panel .pick-turn.red { color: #e74c3c; }
.waiting-panel .pick-turn.blue { color: #3498db; }

.team-panel ul, .waiting-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.team-panel li, .waiting-panel li {
    padding: 10px;
    background: rgba(255,255,255,0.05);
    margin-bottom: 5px;
    border-radius: 5px;
    text-align: center;
}

.player-select-btn {
    width: 100%;
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.player-select-btn:hover {
    background: #2ecc71;
}

.team-selection-modal h3 {
    text-align: center;
    margin-top: 0;
    font-size: 1.2em;
}

.team-selection-modal h4 {
    margin-top: 0;
    font-size: 1em;
} 

/* Skorboard Modal */
.scoreboard {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1100;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: none; /* JS ile flex yapılıyor */
    align-items: center;
    justify-content: center;
}

.scoreboard-content{
    background:#2c3e50;
    padding:30px 40px;
    border-radius:10px;
    width:92%;
    max-width:850px;
    max-height:93vh;
    overflow-y:auto;
    box-shadow:0 10px 40px rgba(0,0,0,0.45);
}

.team-section {
    margin-bottom: 20px;
}
.team-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
}
.player-row {
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:rgba(255,255,255,0.03); /* daha hafif */
    padding:6px 8px; /* daha kompakt */
    border-radius:6px;
    margin-bottom:4px;
    font-size:0.85em; /* küçük yazı */
}
.player-row .badge {
    background: #f1c40f;
    color: #1e1e1e;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75em;
    margin-left: 6px;
}
.player-row button {
    margin-left: 4px;
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 4px;
}
.player-row button.change-team{background:#8e44ad;color:#fff;}
.player-row button.kick-player{background:#e67e22;color:#fff;}
.player-row button.ban-player{background:#c0392b;color:#fff;} 
.balance-btn{
    margin-top:10px;
    padding:10px 20px;
    background:linear-gradient(45deg,#16a085,#1abc9c);
    color:#fff;
    border:none;
    border-radius:8px;
    font-weight:600;
    cursor:pointer;
}
.balance-btn:hover{transform:translateY(-2px);box-shadow:0 6px 12px rgba(0,0,0,0.2);} 

/* Scoreboard footer */
.scoreboard-footer{
    margin-top:15px;
    display:flex;
    justify-content:center;
    gap:10px;
}
.scoreboard-footer button{
    padding: 10px 20px;
    font-size: 14px;
    font-weight:600;
    border:none;
    border-radius:8px;
    cursor:pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.scoreboard-footer button:hover{
    transform: translateY(-2px);
    box-shadow:0 6px 12px rgba(0,0,0,0.2);
}
.scoreboard-footer .leave-btn{
    background: linear-gradient(45deg,#e67e22,#d35400);
    color:#fff;
}
.scoreboard-footer .close-btn{
    background: linear-gradient(45deg,#c0392b,#e74c3c);
    color:#fff;
}

/* Mini Radar */
#miniRadar {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 160px;
    height: 75px;
    border: 2px solid rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.4);
    border-radius: 6px;
    z-index: 500;
} 
.team-columns{display:flex;gap:20px;}
.team-column{flex:1;background:rgba(0,0,0,0.15);padding:10px;border-radius:8px;}
.team-column.red{background:rgba(231,76,60,0.08);}
.team-column.blue{background:rgba(52,152,219,0.08);} 
.tab-bar{display:flex;justify-content:center;gap:10px;margin-bottom:20px;}
.tab{background:#34495e;border:none;color:#ecf0f1;padding:10px 20px;border-radius:6px;cursor:pointer;transition:background 0.3s;}
.tab:hover{background:#3d566e;}
.tab.active{background:#1abc9c;color:#fff;} 

/* Oyuncu isimleri (skorboard vb.) */
.player-name{
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

/* Settings Button */
.settings-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(52, 73, 94, 0.95));
    border: 2px solid rgba(52, 152, 219, 0.4);
    border-radius: 12px;
    color: #ecf0f1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.settings-btn:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.95), rgba(41, 128, 185, 0.95));
    border-color: rgba(52, 152, 219, 0.8);
    transform: translateY(-2px) rotate(90deg);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.settings-btn:active {
    transform: translateY(0) rotate(90deg);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.settings-btn svg,
.settings-btn .settings-icon {
    transition: transform 0.3s ease;
}

.settings-icon {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
    /* brightness(0) makes it black, invert(1) makes it white */
    display: block;
}

.settings-btn:hover .settings-icon {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(52, 152, 219, 0.8));
}

/* Settings Modal */
.settings-modal-content {
    max-width: 500px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.settings-modal-content h2 {
    text-align: center;
    color: #3498db;
    margin-bottom: 30px;
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 18px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.setting-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(52, 152, 219, 0.3);
    transform: translateX(5px);
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ecf0f1;
    font-size: 16px;
    font-weight: 500;
}

.setting-label svg {
    color: #3498db;
    flex-shrink: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(189, 195, 199, 0.3);
    transition: 0.3s;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background-color: #95a5a6;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-color: rgba(46, 204, 113, 0.5);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(30px);
    background-color: white;
}

.toggle-slider:hover {
    border-color: rgba(52, 152, 219, 0.5);
}

/* Settings Info */
.settings-info {
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.settings-info p {
    margin: 0;
    color: #bdc3c7;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 600px) {
    .settings-btn {
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
    }
    
    .setting-label {
        font-size: 14px;
    }
    
    .setting-label svg {
        width: 18px;
        height: 18px;
    }
} 