/* Genel Stil Ayarları */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    padding: 0;
    overflow-x: hidden;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Ana kısmın etrafında boşluk bırakmak için */
}

#gameCanvas {
    border: 2px solid #333;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    background-color: #000;
    max-width: 100%;
    max-height: 70vh;
    margin-bottom: 20px;
}

header {
    background-color: #333;
}

.navbar {
    padding: 0.5rem 1rem;
}

.navbar-brand {
    font-size: 1.5rem;
    margin: 0;
    cursor: pointer;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.language-dropdown {
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .language-dropdown {
        margin-left: 0.25rem;
    }
}

nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav button {
    background-color: #444;
    color: #fff;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
    font-size: 0.875rem;
    white-space: nowrap;
}

nav button:hover {
    background-color: #555;
}

/* KAYIT OL BUTONU */
#registerButton {
    position: absolute;
    left: 50%;
    /* 'top' değerini JavaScript ile ayarlayacağız */
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: none; /* Başlangıçta gizli */
    margin-top: 20px;
}

#registerButton:hover {
    background-color: #45a049;
}

/* Box Container */
.box-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 20px auto;
    max-width: 1000px;
    width: 100%;
    padding: 0 15px;
}

.box {
    text-align: center;
    width: calc(33.333% - 30px);
    min-width: 180px;
    margin: 10px;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: white;
}

.box:hover {
    transform: scale(1.05);
    border-color: #40bf9a;
    box-shadow: 0 0 15px #40bf9a;
}

.box img {
    width: 100%;
    height: auto;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 3px solid #000;
}

.box h3 {
    font-size: 18px;
    margin: 8px 0;
    font-weight: bold;
    color: #333;
}

.box p {
    margin: 0 10px 10px;
    font-size: 14px;
    color: #666;
}

/* Button Container */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Butonlar arasında boşluk */
    margin: 20px 0;
}

.action-button {
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.action-button:hover {
    background-color: #45a049;
}

.highlight {
    color: red;
}

/* Speed Lines Effect */
.speed-lines {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-style: italic;
    position: relative;
    z-index: 2;
}

.speed-lines::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -24px;     /* was -200px */
    right: -24px;    /* was 100%  */
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff4444, transparent);
    animation: speedLine 1.5s ease-in-out infinite;
    z-index: -1;
}

.speed-lines::after {
    content: '';
    position: absolute;
    top: 20%;
    left: -18px;     /* was -150px */
    right: -18px;    /* was 100%   */
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff6666, transparent);
    animation: speedLine 1.5s ease-in-out infinite 0.3s;
    z-index: -1;
}

@keyframes speedLine {
    0% { transform: translateX(-60px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(80px); opacity: 0; }
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    width: 100%;
}

/* Modal Stil Ayarları */
.modal {
    display: flex;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}


.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000;
}

.hidden {
    display: none;
}

form {
    display: flex;
    flex-direction: column;
}

form input {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    padding: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #555;
}

/* Premium Bölümü Stilleri */
#premium-container {
    margin-top: 20px;
    padding: 20px;
    border: 2px solid #f39c12;
    border-radius: 10px;
    background-color: #fdf5e6;
    text-align: center;
}

#premium-container h2 {
    color: #e67e22;
}

#premium-container p {
    font-size: 1.2em;
    margin-bottom: 15px;
}

#purchase-button {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #e67e22;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#purchase-button:hover {
    background-color: #d35400;
}

/* Restart Button için Özel Stil */
.restart-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.restart-button:hover {
    background-color: #45a049;
}

/* Kullanıcı Bilgileri Bölümü */
.user-info-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.user-info-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

#user-info p {
    font-size: 16px;
    color: #555;
    margin: 10px 0;
}

/* Bilimsel Kanıtlar ve Destekleyici Kaynaklar Bölümü */
.scientific-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.scientific-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.references-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.reference-item {
    width: 48%;
    margin-bottom: 20px;
}

.separator {
    width: 100%;
    height: 1px;
    background-color: #ccc;
    margin: 20px 0;
}

.reference-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.reference-item p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.reference-item ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.reference-item li {
    margin-bottom: 10px;
}

/* Responsive Tasarım */
@media (max-width: 992px) {
    .reference-item {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .box {
        width: calc(50% - 30px);
    }
}

@media (max-width: 480px) {
    .box {
        width: 100%;
        margin: 10px 0;
    }

    .button-container {
        flex-direction: column;
        gap: 10px;
    }

    .references-container {
        flex-direction: column;
    }

    .separator {
        display: none;
    }
}


/* OYUN BİTTİĞİNDE GÖZÜKECEKLER */

/* Game Container */
#game-container {
    display: none;
    position: relative;
    width: 80%;
    max-width: 1024px;
    margin: 20px auto;
    text-align: center;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

/* Game Over Screen */
#game-over-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 500px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: #fff;
    z-index: 1000;
}

/* Game Over butonları için container */
.game-over-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Butonlar için ortak stil */
.game-over-button {
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Restart ve Register butonları için ortak stil */
.game-over-button {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    font-size: 18px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.game-over-button:hover {
    background-color: #45a049;
}

/* Restart butonu için özel stil */
#restartButton {
    background-color: #2196F3;
}

#restartButton:hover {
    background-color: #1976D2;
}

/* Register butonu için özel stil */
#gameOverRegisterButton {
    background-color: #4CAF50;
}

#gameOverRegisterButton:hover {
    background-color: #45a049;
}

/* hidden sınıfı düzeltmesi */
.hidden {
    display: none !important;
}

/* Oyun Bitti Başlığı */
#game-over-title {
    font-size: 36px;
    margin-bottom: 20px;
}

/* İstatistik Paragrafları */
#game-over-screen p {
    font-size: 24px;
    margin: 5px 0;
}

.custom-modal.hidden {
    display: none; /* Hide the modal when the hidden class is applied */
}



/* Şehir seçimi için stil */
.form-group {
    position: relative;
    margin-bottom: 15px;
}

#citySearch {
    width: 100%;
    padding: 8px;
    margin-bottom: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#register-city {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
}

#register-city option {
    padding: 8px;
}

#register-city option:hover {
    background-color: #f0f0f0;
}

/* ÜCRETLENDİRME TABLOSU */

.pricing-table {
    width: 100%;
    max-width: 1000px;
    border-collapse: collapse;
    text-align: center;
    margin: 20px auto;
    padding: 0 15px;
}
.pricing-table thead th {
    font-size: 24px;
    color: #4CAF50;
    padding: 10px 0;
    background-color: #f8f8f8;
    border-bottom: 2px solid #ddd;
}
.pricing-table th,
.pricing-table td {
    padding: 7px;
    border: 1px solid #ffd9b3;
}
.pricing-table tbody tr:nth-child(odd) {
    background-color: #fff8ef;
}
.plan-header {
    font-weight: bold;
    color: #fff;
}
.free-plan {
    background-color: #ffd9b3;
}
.premium-plan {
    background-color: #ffcccc;
}
.deluxe-plan {
    background-color: #e3c9f5;
}
.check {
    color: #4CAF50;
    font-size: 1.5em;
}
.cross {
    color: #ff6b6b;
    font-size: 1.5em;
}
.game-active .pricing-table {
    display: none !important;
}

/* Oyun aktif olduğunda pricing tablosunu gizle */
#game-container:not(.hidden) ~ .pricing-table {
    display: none !important;
}

/* Oyun container'ını düzgün ortala */
#game-container {
    display: none;
    position: relative;
    width: 80%;
    max-width: 1024px;
    margin: 20px auto;
    text-align: center;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

/* KAYIT OLMA MODAL'I */

.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.typeslayer-modal-content {
    background-color: #ffffff !important;
    padding: 0 2rem 2rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 360px;
    border: 2px solid #e1e1e1;
    position: relative;
    overflow: hidden;
}

/* Form stilleri için genel class */
#login-form,
#register-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#login-form input,
#register-form input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

#login-form input:focus,
#register-form input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

#login-form button,
#register-form button {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#login-form button:hover,
#register-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

#login-form button:after,
#register-form button:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    animation: buttonShine 2s linear infinite;
}

/* Kapatma butonu */
.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.close-button:hover {
    color: #333;
    transform: rotate(90deg);
}

/* Animasyonlar */
@keyframes buttonShine {
    0% { 
        left: -100%; 
    }
    100% { 
        left: 200%; 
    }
}

/* Bootstrap'in modal header stilini ezecek daha spesifik bir seçici */
.typeslayer-modal-content .modal-header {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center !important; /* !important ile kesinlikle ortala */
    align-items: center;
    height: 60px;
    margin: 0 0 25px 0;
    background: #ffffff;
}

/* Başlık için de spesifik seçici kullanalım */
.typeslayer-modal-content .modal-header h2 {
    color: #333;
    font-size: 1.5rem;
    text-align: center;
    background: linear-gradient(45deg, #2b2b2b, #4CAF50);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    margin: 0;
    padding: 0;
}

.modal-header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -2rem;
    width: calc(100% + 4rem);
    height: 2px;
    background: linear-gradient(90deg, #4CAF50 0%, #4CAF50 100%);
}

.modal-header:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: calc(100% + 4rem);
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    animation: slideLine 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes slideLine {
    0% { left: -100%; }
    100% { left: 100%; }
}



/* PROFİL SAYFASI */

.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4CAF50;
}

.profile-info {
    flex: 1;
}

/* Profil İstatistikleri */
.profile-stats {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-card {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--card-accent, #4CAF50) 0%, 
        var(--card-accent-secondary, #45a049) 100%);
    border-radius: 1.5rem 1.5rem 0 0;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s ease;
}

.stat-card:hover::after {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(52, 58, 64, 0.8);
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    background: linear-gradient(135deg, #495057, #6c757d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 900;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-suffix {
    font-size: 1rem;
    opacity: 0.7;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Level Card */
.level-card {
    --card-accent: #28a745;
    --card-accent-secondary: #20c997;
    background: linear-gradient(135deg, 
        rgba(40, 167, 69, 0.1) 0%, 
        rgba(32, 201, 151, 0.05) 100%);
}

.level-card .stat-value {
    color: #28a745;
}

.level-progress {
    width: 100%;
    height: 8px;
    background: rgba(40, 167, 69, 0.15);
    border-radius: 4px;
    margin-top: 1rem;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.level-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 0 12px rgba(40, 167, 69, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
}

.level-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Rank Card */
.rank-card {
    --card-accent: #333333;
    --card-accent-secondary: #8e44ad;
    background: linear-gradient(135deg, 
        rgba(111, 66, 193, 0.1) 0%, 
        rgba(142, 68, 173, 0.05) 100%);
}

.rank-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.rank-card .stat-value {
    color: #333333;
    justify-content: center;
}

.rank-icon {
    font-size: 2rem;
    margin-right: 0.75rem;
    filter: drop-shadow(0 4px 8px rgba(111, 66, 193, 0.3));
    animation: floatIcon 3s ease-in-out infinite;
}

.mmr-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(111, 66, 193, 0.1);
    border-radius: 1rem;
    border: 2px solid rgba(111, 66, 193, 0.2);
    box-shadow: 
        0 4px 12px rgba(111, 66, 193, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.mmr-value:hover {
    background: rgba(111, 66, 193, 0.15);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(111, 66, 193, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.mmr-value .stat-suffix {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-4px) rotate(2deg);
    }
    75% {
        transform: translateY(-2px) rotate(-1deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-card {
        min-width: 100%;
        max-width: 100%;
        padding: 1.5rem 1rem;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .rank-icon {
        font-size: 1.5rem;
    }
}

/* Old profile stats styles removed */

.nickname-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.nickname-form input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.avatar-selection {
    margin-top: 30px;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.avatar-option img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    border: 2px solid transparent;
}

.avatar-option img:hover {
    transform: scale(1.1);
}

.avatar-option img.selected {
    border-color: #4CAF50;
}

.hidden {
    display: none;
}

/* DİL SEÇİCİ */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-selector button {
    padding: 5px 10px;
    margin-left: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.language-selector button.active {
    background-color: #007bff;
    color: white;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-selector-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: transparent;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    min-width: 60px;
}

.language-options {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0; /* Burada right: 0 yerine left: 0 kullanıyoruz */
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    width: 100%;
    width: auto;
    overflow: hidden; /* Taşmayı önlemek için */
    box-sizing: border-box;
}

.language-dropdown.active .language-options {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: none;
    background: none;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    margin: 0; /* Herhangi bir dış boşluğu kaldırıyoruz */
}

.lang-option:hover,
.language-selector-btn:hover {
    background-color: #333;
}

.lang-option {
    white-space: nowrap;
}

/* Responsive tasarım */
@media screen and (max-width: 768px) {
    nav {
        gap: 5px;
    }

    .language-selector-btn,
    .lang-option {
        padding: 6px;
        font-size: 12px;
    }
} 

/* Bagetler için stil */
.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100px;
}

.badge-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.badge-item .badge-name {
    font-size: 0.875rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.badge-item .badge-description {
    font-size: 0.75rem;
    color: #666;
}

@media (max-width: 768px) {
    header {
        padding: 0.25rem 0.5rem;
    }
    
    header h1 {
        font-size: 1.25rem;
    }
    
    nav button {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
} 

/* Premium Buton Stili */
.btn-premium {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #fff;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    white-space: nowrap;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700, #FFA500);
    z-index: -1;
    background-size: 400%;
    animation: neon-border 3s linear infinite;
    border-radius: 0.35rem;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shine 2s linear infinite;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    color: #fff;
}

@keyframes neon-border {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0;
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@media (max-width: 768px) {
    .btn-premium {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
} 

.form-group {
    margin: 10px 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
    color: #333;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.forgot-links {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
}

.forgot-links a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-links a:hover {
    color: #45a049;
    text-decoration: underline;
}

.separator {
    margin: 0 8px;
    color: #666;
}

#reset-password-form p,
#forgot-username-form p {
    color: #666;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

/* Gelişmiş Liderler Widget Stilleri */
.leaders-widget {
    position: fixed;
    top: 7rem; /* Dil dropdown'ını engellemeyecek kadar aşağıda */
    right: 1.25rem; /* 20px yerine rem */
    width: 21.875rem; /* 350px yerine rem */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1.25rem; /* 20px yerine rem */
    box-shadow: 0 0.9375rem 2.5rem rgba(0, 0, 0, 0.25); /* 15px 40px yerine rem */
    z-index: 999; /* Dil dropdown'ından daha düşük z-index */
    backdrop-filter: blur(0.9375rem); /* 15px yerine rem */
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-height: 40.625rem; /* 650px yerine rem */
    overflow: hidden;
    color: white;
}

.widget-header {
    padding: 20px 25px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.widget-header h3 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Tab Navigation */
.widget-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-icon {
    font-size: 1rem;
}

.widget-filters {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.language-filter {
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 0.85rem;
    outline: none;
}

.language-filter:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tab-text {
    font-weight: 600;
    font-size: 0.8rem;
}

/* Tab Content */
.widget-content {
    padding: 20px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-header {
    text-align: center;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.tab-header h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: bold;
    color: white;
}

.tab-description {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    color: #fff;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Leaders List */
.leaders-list {
    max-height: 450px;
    overflow: hidden; /* Kaydırma barı kaldırıldı */
    display: flex;
    flex-direction: column;
    gap: 8px; /* Gap biraz azaltıldı */
}

.leader-item {
    display: flex;
    align-items: center;
    padding: 10px 12px; /* Padding azaltıldı */
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.leader-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.leader-item:hover::before {
    left: 100%;
}

.leader-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Avatar ve Rank Container */
.leader-avatar-rank {
    position: relative;
    margin-right: 12px;
    flex-shrink: 0;
}

.leader-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.leader-rank {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-size: 11px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    z-index: 2;
}

.leader-rank.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: goldGlow 2s ease-in-out infinite alternate;
}

.leader-rank.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.4);
}

.leader-rank.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: #fff;
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.4);
}

.leader-rank.rank-other {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes goldGlow {
    0% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
    100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.7); }
}

.leader-info {
    flex: 1;
    min-width: 0;
}

.leader-name {
    font-weight: bold;
    color: #fff;
    font-size: 15px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leader-score {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 6px;
}

.score-jump {
    color: #4ade80;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.mmr-score {
    color: #fbbf24;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.rank-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leader-stats {
    text-align: right;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    min-width: 60px;
}

.stat-line {
    margin-bottom: 2px;
}

.win-rate {
    color: #4ade80;
    font-weight: 600;
}

.no-data {
    text-align: center;
    padding: 30px 15px;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.no-data p {
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 600;
    color: white;
}

.no-data small {
    font-size: 12px;
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.7);
}

.error-message {
    text-align: center;
    color: #fff;
    padding: 20px;
}

.retry-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive tasarım */
@media (max-width: 75rem) { /* 1200px yerine rem */
    .leaders-widget {
        right: 0.625rem; /* 10px yerine rem */
        width: 20rem; /* 320px yerine rem */
    }
}

@media (max-width: 48rem) { /* 768px yerine rem */
    .leaders-widget {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin: 1.25rem 0; /* 20px yerine rem */
        max-width: 28.125rem; /* 450px yerine rem */
    }
    
    .widget-tabs {
        flex-direction: column;
        gap: 2px;
    }
    
    .tab-btn {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .tab-text {
        display: none;
    }
    
    .tab-icon {
        font-size: 1.2rem;
    }
    
    .leader-item {
        padding: 10px;
        gap: 10px;
    }
    
    .leader-avatar {
        width: 35px;
        height: 35px;
    }
    
    .leader-rank {
        width: 18px;
        height: 18px;
        font-size: 10px;
        bottom: -1px;
        right: -1px;
    }
    
    .leader-name {
        font-size: 14px;
    }
    
    .leader-stats {
        font-size: 10px;
        min-width: 50px;
    }
    
    main {
        padding: 10px;
    }
}

/* User Tooltip Styles */
.user-tooltip {
    position: absolute;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    min-width: 320px;
    color: white;
}

.user-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.tooltip-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tooltip-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.tooltip-user-info h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tooltip-user-info .user-rank {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tooltip-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tooltip-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.tooltip-stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.tooltip-stat-value {
    color: #fff;
    font-weight: 600;
}

.tooltip-stat-value.highlight {
    color: #4ade80;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.tooltip-stat-value.mmr {
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

/* Tooltip Arrow - Sağ tarafta */
.user-tooltip::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -8px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #2d3748;
}

/* Responsive tooltip */
@media (max-width: 48rem) {
    .user-tooltip {
        min-width: 280px;
        padding: 20px;
        position: fixed;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .tooltip-avatar {
        width: 100px;
        height: 100px;
    }
    
    .tooltip-header {
        gap: 12px;
    }
    
    .tooltip-user-info h4 {
        font-size: 18px;
    }

    /* Mobilde arrow'u gizle */
    .user-tooltip::before {
        display: none;
    }
}

@media (max-width: 30rem) {
    .user-tooltip {
        min-width: 260px;
        padding: 16px;
    }
    
    .tooltip-avatar {
        width: 80px;
        height: 80px;
    }
    
    .tooltip-user-info h4 {
        font-size: 16px;
    }
}

/* SES KONTROL BUTONLARI */
.sound-controls {
    position: absolute;
    top: 30px;
    right: 0px;
    z-index: 1000;
    display: flex;
    gap: 8px;
}

.sound-btn {
    width: 48px;
    height: 48px;
    border: 2px solid #333;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.sound-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.sound-btn:active {
    transform: scale(0.95);
}

.sound-btn.disabled {
    background: rgba(128, 128, 128, 0.8);
    border-color: #666;
}

.sound-btn.disabled .sound-icon {
    opacity: 0.5;
}

.sound-icon {
    font-size: 24px;
    line-height: 1;
}

/* Game container pozisyonlandırma */
#game-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mobil uyumlu stilller */
@media (max-width: 768px) {
    .sound-controls {
        top: 5px;
        right: 5px;
        gap: 5px;
    }
    
    .sound-btn {
        width: 40px;
        height: 40px;
    }
    
    .sound-icon {
        font-size: 20px;
    }
}
