﻿:root {
    --primary-color: #4f46e5;
    --secondary-color: #7c3aed;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

    .nav-link:hover {
        color: var(--primary-color) !important;
    }

.container-fluid {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 20px;
    padding: 30px;
    min-height: calc(100vh - 140px);
}

.game-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin: 15px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .game-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

.btn-game {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 15px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .btn-game:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
        color: white;
    }

.score-card {
    background: linear-gradient(45deg, var(--success-color), #059669);
    color: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.badge-item {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 8px 12px;
    margin: 5px;
    font-size: 0.9rem;
}

.progress-modern {
    height: 10px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.progress-bar-modern {
    background: linear-gradient(45deg, var(--success-color), #10b981);
    height: 100%;
    border-radius: 50px;
    transition: width 0.6s ease;
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.category-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

    .category-card:hover {
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        transform: translateY(-2px);
    }

.loading-fallback {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Flash Cards CSS */
.flash-card-container {
    perspective: 1000px;
    height: 400px;
    margin: 20px 0;
}

.flash-card {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

    .flash-card.flipped {
        transform: rotateY(180deg);
    }

.flash-card-front, .flash-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.flash-card-front {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.flash-card-back {
    background: linear-gradient(45deg, var(--success-color), #059669);
    color: white;
    transform: rotateY(180deg);
}

.card-content {
    padding: 30px;
    width: 100%;
}

    .card-content h2, .card-content h3 {
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        word-wrap: break-word;
    }

.animate-fade-in {
    animation: fadeIn 0.5s ease-in;
}

@@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-element {
    animation: float 3s ease-in-out infinite;
}

@@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.question-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.answer-option {
    background: rgba(79, 70, 229, 0.1);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 15px 20px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .answer-option:hover {
        background: rgba(79, 70, 229, 0.2);
        border-color: var(--primary-color);
        transform: translateX(5px);
    }

    .answer-option.correct {
        background: rgba(16, 185, 129, 0.2);
        border-color: var(--success-color);
    }

    .answer-option.incorrect {
        background: rgba(239, 68, 68, 0.2);
        border-color: var(--danger-color);
    }

.timer-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(var(--warning-color) 0deg, rgba(245, 158, 11, 0.2) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.hint-box {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--warning-color);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.leaderboard-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

    .leaderboard-item:hover {
        transform: translateX(5px);
    }

.rank-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.rank-1 {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
}

.rank-2 {
    background: linear-gradient(45deg, #c0c0c0, #e5e7eb);
}

.rank-3 {
    background: linear-gradient(45deg, #cd7f32, #92400e);
}

.rank-other {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

/* 🎯 Modern Hızlı Sözlük Kartı */
.quick-dictionary-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.98));
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.quick-dictionary-card:hover {
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.15);
    transform: translateY(-2px);
}

.dictionary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(79, 70, 229, 0.1);
}

.dictionary-header h5 {
    margin: 0;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.3rem;
}

.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: var(--primary-color);
    font-size: 1.1rem;
    z-index: 10;
}

.dictionary-input {
    width: 100%;
    padding: 15px 50px 15px 45px;
    border: 2px solid rgba(79, 70, 229, 0.2);
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.dictionary-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.clear-search-btn {
    position: absolute;
    right: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--danger-color);
}

.clear-search-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: rotate(90deg);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(79, 70, 229, 0.05);
    padding-left: 20px;
}

.suggestion-word {
    font-weight: 600;
    color: var(--dark-color);
}

.suggestion-translation {
    color: #6b7280;
    font-size: 0.9rem;
}

.dictionary-result {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(124, 58, 237, 0.05));
    border-radius: 15px;
    padding: 25px;
    animation: slideIn 0.4s ease;
}

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

.word-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 15px;
}

.word-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    margin-bottom: 5px;
}

.word-pronunciation {
    color: #6b7280;
    font-style: italic;
    font-size: 1rem;
}

.speak-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.2rem;
}

.speak-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(79, 70, 229, 0.3);
}

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

.word-translation {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--success-color);
}

.translation-label {
    font-weight: 600;
    color: var(--success-color);
    margin-right: 10px;
}

.translation-text {
    font-size: 1.2rem;
    color: var(--dark-color);
    font-weight: 500;
}

.word-example {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(245, 158, 11, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--warning-color);
}

.example-label {
    font-weight: 600;
    color: var(--warning-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.example-text {
    color: var(--dark-color);
    font-style: italic;
    margin-bottom: 8px;
    font-size: 1rem;
}

.example-translation {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

.word-category {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-badge {
    padding: 6px 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.difficulty-badge {
    padding: 6px 15px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--success-color);
}

.dictionary-empty {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.dictionary-empty i {
    color: #d1d5db;
    margin-bottom: 15px;
}

.dictionary-empty p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.dictionary-empty small {
    font-size: 0.9rem;
}

/* Loading Animation */
.dictionary-loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 3px solid rgba(79, 70, 229, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

/* 🎯 Oyun Sayfası - Örnek Cümle Kutusu */
.example-sentence-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(147, 197, 253, 0.05));
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
    animation: slideIn 0.4s ease;
}

.example-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #3b82f6;
    font-size: 1.1rem;
}

.example-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.example-english,
.example-turkish {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: white;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.example-english:hover,
.example-turkish:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.example-text,
.example-text-tr {
    flex: 1;
    margin: 0;
    font-size: 1rem;
    color: #1f2937;
    font-weight: 500;
    line-height: 1.6;
}

.example-text {
    color: #2563eb;
}

.example-text-tr {
    color: #dc2626;
}

.btn-speak-example {
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-speak-example:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

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

.btn-speak-example:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-speak-example i {
    font-size: 1.1rem;
}

/* Animasyonlar */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
