/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== CUSTOM FONT - TYPO HANDY ==================== */
@font-face {
    font-family: 'TypoHandy';
    src: url('/assets/fonts/TypoHandy.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #667eea;
    --primary-dark: #5a6fd6;
    --secondary: #764ba2;
    --success: #4caf50;
    --danger: #f44336;
    --warning: #ff9800;
    --dark: #1a1a2e;
    --light: #f5f5f5;
    --white: #ffffff;
    --gray: #888888;
    --border: #e0e0e0;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --radius: 12px;
    --font: 'TypoHandy', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Scroll engelle */
    overscroll-behavior: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font);
    background: #1a1a2e; /* Fallback renk */
    min-height: 100vh;
    min-height: 100dvh; /* Mobil için */
    color: var(--dark);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Arka plan katmanı */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 460px;
    height: 100vh;
    height: 100dvh;
    background-image: url('../assets/images/ui/wordria_background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
    opacity: 0.1;
}

/* ==================== LANDING PAGE ==================== */
.landing-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    padding: 0px 0 5px;
}

.logo {
    background-image: url('../assets/images/ui/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    
    /* Genişlik: min 100px, ideal %10vw + 50px, max 300px */
    width: clamp(100px, 50vw + 50px, 300px);
    height: clamp(32px, 15vw + 15px, 97px);
    
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-left: auto;
    margin-right: auto;
}

.logo-icon {
    font-size: 48px;
    background: var(--white);
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.logo h1 {
    font-size: 42px;
    font-weight: 300;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.tagline {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    font-weight: 300;
}

/* ==================== CARDS ==================== */
.card {
    
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    background:#aeb8ff52;
}

.card h2 {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 16px;
    color: white;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
    width: 100%;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--light);
    color: var(--dark);
    border: 2px solid var(--border);
}

.btn-large {
    padding: 18px 24px;
    font-size: 22px;
    letter-spacing: 4px;
    font-weight: 300;
}

.btn-icon {
    font-size: 20px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 300;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font);
}

/* ==================== PLAY OPTIONS ==================== */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 16px 0;
    color: white;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.divider span {
    padding: 0 12px;
}

.join-form {
    display: flex;
    gap: 8px;
}

.room-input {
    flex: 1;
    padding: 7px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 200;
    font-family: var(--font);
    min-width: 150px;
}

.room-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ==================== GAME MODES ==================== */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mode-item {
    text-align: center;
    padding: 16px 8px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    background: rgb(255 255 255 / 80%);
    filter: drop-shadow(5px 5px 8px black);
}

.mode-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.mode-item.active-mode {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
}

.mode-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.mode-item h3 {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 4px;
}

.mode-item p {
    font-size: 11px;
    color: black;
}

/* ==================== STATS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 300;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== MODAL ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
        display: flex !important;
}

.modal {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal h2 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
}

/* ==================== AUTH FORM ==================== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-form input {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: var(--font);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--gray);
}

.guest-option {
    margin-top: 16px;
    text-align: center;
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 300;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

.toast.error {
    background: var(--danger);
}

.toast.success {
    background: var(--success);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 400px) {
    .landing-container {
        padding: 12px;
    }
    
    .logo h1 {
        font-size: 32px;
    }
    
    .modes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .mode-item {
        padding: 12px 4px;
    }
}
/* ==================== FOOTER ==================== */
.site-footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 5px;
    text-align: center;
    margin-top: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-bottom: 12px;
}

.footer-links a {
    color: #d9d9d9;
    text-decoration: none;
    font-size: 11px;
    transition: color 0.2s;
    padding: 2px;
    background: #283255;
    border-radius: 5px;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-copyright {
    font-size: 12px;
    color: #666;
}

/* ==================== MODE BUTTONS (Continue/New Game) ==================== */
.mode-buttons {
    display: flex;
    gap: 6px;
    flex-direction: column;
}

.btn-small.btn-new-game {
    background: #4caf50;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-bottom: 4px;
}

.btn-small.btn-new-game:hover {
    background: #43a047;
}

.btn-small.btn-continue {
    background: #667eea;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 4px;
}
.btn-small.btn-continue:hover {
    background: #5a6fd6;
    transform: translateY(-1px);
}

.btn-small.btn-continue:active {
    transform: scale(0.98);
}

/* ==================== COOKIE CONSENT BANNER ==================== */
#consentBanner {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
/* ==================== DIFFICULTY SELECTOR ==================== */
.difficulty-selector {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    text-align: center;
}

.difficulty-label {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 300;
}

.difficulty-options {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.diff-btn {
    flex: 1;
    padding: 8px 4px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    color: #666;
}

.diff-btn:hover {
    transform: translateY(-1px);
}

.diff-btn.active {
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.diff-btn.easy.active {
    background: #4caf50;
    border-color: #4caf50;
}

.diff-btn.medium.active {
    background: #ff9800;
    border-color: #ff9800;
}

.diff-btn.hard.active {
    background: #f44336;
    border-color: #f44336;
}

/* Kolay modda yeşil ton */
.diff-btn.easy:not(.active):hover {
    border-color: #4caf50;
    color: #4caf50;
}

/* Orta modda turuncu ton */
.diff-btn.medium:not(.active):hover {
    border-color: #ff9800;
    color: #ff9800;
}

/* Zor modda kırmızı ton */
.diff-btn.hard:not(.active):hover {
    border-color: #f44336;
    color: #f44336;
}
#searchingTimer {
    transition: color 0.3s;
}
#continueGamesList {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar stilleri */
#continueGamesList::-webkit-scrollbar {
    width: 4px;
}
#continueGamesList::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}
#continueGamesList::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
/* style.css */

/* ==================== USER DROPDOWN ==================== */
#userDropdown {
    display: none;
    position: absolute;
    top: 65px;
    right: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 15px;
    z-index: 100;
    max-width: 200px;
    max-height:300px;
}

#userDropdown.visible {
    display: block;
}

#userDropdown .dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: flex-end;
}

#userDropdown .dropdown-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

#userDropdown .dropdown-name {
    font-weight: 300;
    margin: 0;
}

#userDropdown .dropdown-stats {
    font-size: 11px;
    color: #888;
    margin: 0;
}

#userDropdown hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 8px 0;
}

#userDropdown .dropdown-btn {
    width: 100%;
    padding: 8px 0;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 300;
    cursor: pointer;
    text-align: center;
    margin: 20px 10px 10px 0;

    
}

#userDropdown .dropdown-btn.logout {
    background: #fff3e0;
    color: #ff9800;
    height: 50px;
    
}

#userDropdown .dropdown-btn.login {
    background: #e8f5e9;
    color: #4caf50;
    height: 50px;
}

/* ==================== LANGUAGE SELECTION ==================== */


.languages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.lang-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid #e0e0e0;
    background: white;
}

.lang-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.lang-item.active {
    border-color: #667eea;
    background: #f0f4ff;
}

.lang-item.lang-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.lang-flag {
    font-size: 36px;
    margin-bottom: 8px;
}

.lang-name {
    font-weight: 300;
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.lang-desc {
    font-size: 12px;
    color: #888;
}

.lang-item.active .lang-desc {
    color: #667eea;
    font-weight: 300;
}
/* ==================== COLLAPSE ==================== */
.collapse-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.collapse-header h2 {
    margin: 0;
}

.collapse-arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
    color: #667eea;
}

.collapse-arrow.open {
    transform: rotate(90deg);
}
/* ==================== CACHE YÖNETİM BUTONU ==================== */
/* ==================== CACHE BUTONU ==================== */
.cache-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    border: none;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 100;
    opacity: 0.7;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cache-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.cache-btn:active {
    transform: scale(0.95);
}

/* Game header'daki cache butonu */
#cacheBtn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

#cacheBtn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* Dropdown'daki cache butonu */
.dropdown-btn.cache {
    background: #fff3e0;
    color: #ff9800;
}

.dropdown-btn.cache:hover {
    background: #ffe0b2;
}

/* Cache Manager Modal */
#cacheManagerModal .modal {
    max-width: 500px;
}

#cacheManagerModal .modal h2 {
    margin-bottom: 15px;
}

#cacheManagerModal .btn {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s;
    width: 100%;
}

#cacheManagerModal .btn:hover {
    transform: scale(1.02);
}

#cacheManagerModal .btn-primary {
    background: #667eea;
    color: white;
}

#cacheManagerModal .btn-primary:hover {
    background: #5a6fd6;
}

#cacheManagerModal .btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
}

#cacheManagerModal .btn-secondary:hover {
    background: #eee;
}
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background: #667eea;
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}
/* ==================== AI ZORLUK MODALI ==================== */
#aiDifficultyModal .modal {
    max-width: 400px;
    padding: 30px 25px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Zorluk Butonları */
#modalDifficultyOptions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

#modalDifficultyOptions .diff-btn {
    flex: 1;
    padding: 14px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

#modalDifficultyOptions .diff-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Aktif Durumlar */
#modalDifficultyOptions .diff-btn.easy.active {
    background: #4caf50;
    border-color: #4caf50;
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

#modalDifficultyOptions .diff-btn.medium.active {
    background: #ff9800;
    border-color: #ff9800;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

#modalDifficultyOptions .diff-btn.hard.active {
    background: #f44336;
    border-color: #f44336;
    color: white;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

/* Hover Durumları */
#modalDifficultyOptions .diff-btn.easy:not(.active):hover {
    border-color: #4caf50;
    color: #4caf50;
}

#modalDifficultyOptions .diff-btn.medium:not(.active):hover {
    border-color: #ff9800;
    color: #ff9800;
}

#modalDifficultyOptions .diff-btn.hard:not(.active):hover {
    border-color: #f44336;
    color: #f44336;
}

/* Modal Butonları */
#aiDifficultyModal .btn {
    padding: 14px;
    font-size: 15px;
    border-radius: 10px;
    transition: all 0.2s;
}

#aiDifficultyModal .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

#modalContinueBtn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

#modalNewGameBtn {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
}
/* ==================== DEVAM EDEN OYUNLAR ==================== */
#continueOnlineSection {
    margin-bottom: 1px;
    animation: fadeIn 0.4s ease;
}

#continueOnlineSection .continue-header {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    margin-bottom: 0px;
}

#continueOnlineSection .continue-title {
    font-size: 14px;
    font-weight: 200;
    
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

#continueOnlineSection .continue-count {
    background: #667eea;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

/* ==================== OYUN LİSTESİ (GRID) ==================== */
#continueGamesList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1px;
    max-height: 220px;
    overflow-y: auto;
    padding: 4px;
}

/* Scrollbar */
#continueGamesList::-webkit-scrollbar {
    width: 5px;
}

#continueGamesList::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

#continueGamesList::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 4px;
}

#continueGamesList::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* ==================== OYUN KARTI ==================== */
.continue-game-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1.5px solid #e8eaff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.continue-game-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.continue-game-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.continue-game-card:hover::before {
    transform: scaleY(1);
}

.continue-game-card:active {
    transform: translateY(0);
}

/* ==================== AVATARLAR ==================== */
.continue-avatars {
    position: relative;
    width: 52px;
    height: 44px;
    flex-shrink: 0;
}

.continue-avatar {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    background: #f0f4ff;
}

.continue-avatar.you {
    top: 0;
    left: 0;
    z-index: 2;
    border-color: #667eea;
}

.continue-avatar.opponent {
    bottom: 0;
    right: 0;
    z-index: 1;
    border-color: #ff9800;
}

/* ==================== OYUN BİLGİSİ ==================== */
.continue-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.continue-players {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.continue-meta {
    font-size: 10.5px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.continue-meta .room-badge {
    background: #f0f4ff;
    color: #667eea;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 10px;
}

.continue-meta .time-badge {
    color: #999;
}

/* ==================== SKOR VE DURUM ==================== */
.continue-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.continue-score {
    font-size: 11px;
    font-weight: 700;
    color: #333;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.continue-score .you-score {
    color: #4caf50;
}

.continue-score .opponent-score {
    color: #f44336;
}

/* Oyun Durumu Rozeti */
.continue-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.continue-badge.playing {
    background: #e8f5e9;
    color: #2e7d32;
}

.continue-badge.your-turn {
    background: #fff3e0;
    color: #e65100;
    animation: pulseBadge 1.5s ease-in-out infinite;
}

.continue-badge.waiting {
    background: #f0f4ff;
    color: #667eea;
}

@keyframes pulseBadge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ==================== OK İKONU ==================== */
.continue-arrow {
    color: #ccc;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.continue-game-card:hover .continue-arrow {
    color: #667eea;
    transform: translateX(3px);
}

/* ==================== BOŞ DURUM ==================== */
.continue-empty {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 13px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 600px) {
    #continueGamesList {
        grid-template-columns: 1fr;
        max-height: 260px;
    }
    
    .continue-game-card {
        padding: 10px;
        gap: 10px;
    }
    
    .continue-avatars {
        width: 46px;
        height: 40px;
    }
    
    .continue-avatar {
        width: 30px;
        height: 30px;
    }
    
    .continue-players {
        font-size: 12px;
    }
}

/* ==================== ANİMASYON ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
.continue-games-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    background: linear-gradient(
179deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.continue-games-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.continue-games-btn:hover::before {
    left: 100%;
}

.continue-games-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.continue-games-btn:active {
    transform: translateY(0);
}

.continue-games-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.continue-games-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.continue-games-title {
    font-family: var(--font);
    font-size: 15px;
    font-weight: 200;
    letter-spacing: 0.3px;
}

.continue-games-subtitle {
    font-family: var(--font);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 200;
}

.continue-games-badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 13px;
    font-weight: 800;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.continue-games-arrow {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.continue-games-btn:hover .continue-games-arrow {
    transform: translateX(4px);
    color: white;
}

/* ==================== DEVAM OYUNLARI MODALI ==================== */
.continue-games-modal {
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.continue-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.continue-modal-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
}

.continue-modal-close {
    background: #f5f5f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.continue-modal-close:hover {
    background: #ffebee;
    color: #f44336;
    transform: rotate(90deg);
}

.continue-modal-subtitle {
    font-size: 13px;
    color: #888;
    margin-bottom: 18px;
}

.continue-modal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 10px;
}

/* Scrollbar */
.continue-modal-list::-webkit-scrollbar {
    width: 5px;
}

.continue-modal-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.continue-modal-list::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 4px;
}

.continue-modal-list::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* ==================== MODAL OYUN KARTI ==================== */
.continue-game-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fafbff;
    border: 1.5px solid #e8eaff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.continue-game-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.continue-game-card:hover {
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.continue-game-card:hover::before {
    transform: scaleY(1);
}

.continue-game-card:active {
    transform: translateY(0);
}

/* Avatarlar */
.continue-avatars {
    position: relative;
    width: 56px;
    height: 48px;
    flex-shrink: 0;
}

.continue-avatar {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    background: #f0f4ff;
}

.continue-avatar.you {
    top: 0;
    left: 0;
    z-index: 2;
    border-color: #667eea;
}

.continue-avatar.opponent {
    bottom: 0;
    right: 0;
    z-index: 1;
    border-color: #ff9800;
}

/* Oyun bilgisi */
.continue-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.continue-players {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.continue-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.room-badge {
    background: #f0f4ff;
    color: #667eea;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 11px;
}

.time-badge {
    font-size: 11px;
    color: #999;
}

/* Durum rozeti */
.continue-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
}

.continue-badge.playing {
    background: #e8f5e9;
    color: #2e7d32;
}

.continue-badge.your-turn {
    background: #fff3e0;
    color: #e65100;
    animation: pulseBadge 1.5s ease-in-out infinite;
}

.continue-badge.waiting {
    background: #f0f4ff;
    color: #667eea;
}

@keyframes pulseBadge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Skor */
.continue-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.continue-score {
    font-size: 13px;
    font-weight: 800;
    color: #333;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
}

.you-score {
    color: #4caf50;
}

.opponent-score {
    color: #f44336;
}

.continue-arrow {
    color: #ccc;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.continue-game-card:hover .continue-arrow {
    color: #667eea;
    transform: translateX(3px);
}

/* Boş durum */
.continue-modal-empty {
    text-align: center;
    padding: 30px 20px;
    color: #888;
}

.continue-modal-empty p {
    margin: 4px 0;
    font-size: 15px;
    font-weight: 600;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 600px) {
    .continue-games-modal {
        padding: 20px;
        max-height: 85vh;
    }
    
    .continue-modal-header h3 {
        font-size: 18px;
    }
    
    .continue-game-card {
        padding: 12px;
        gap: 10px;
    }
    
    .continue-avatars {
        width: 48px;
        height: 42px;
    }
    
    .continue-avatar {
        width: 32px;
        height: 32px;
    }
    
    .continue-players {
        font-size: 13px;
    }
}

/* ==================== ANİMASYON ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}