@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root { 
    --brand-blue: #0f172a; 
    --brand-purple: #1e293b; 
    --accent-glow: #38bdf8; 
    --accent-purple: #8e44ad;
    --brand-white: #ffffff; 
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
}

/* ARKAPLAN */
.app-wrapper {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(0, 0, 0, 0.8) 100%), url('../background.jpg');
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed;
    min-height: 100vh; 
    width: 100%; 
    padding: 0 0 50px 0;
    color: white; 
    text-align: center;
}

.brand-header {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0) 100%);
    padding: 20px 10px; 
    margin-bottom: 20px;
}

/* LOGO */
.brand-logo {
    font-size: 2.5em; 
    font-weight: 900;
}
.brand-logo span {
    background: linear-gradient(90deg, #facc15, #f59e0b) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important; /* VS Code'u susturan standart uyumluluk kodu */
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

.music-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
}

/* KUTULAR */
.glass-box, .glass-panel {
    background: rgba(30, 41, 59, 0.6) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important; 
    border-radius: 24px !important;
    padding: 25px;
    max-width: 800px; 
    margin: 0 auto 20px auto !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* INPUT VE SELECTLER */
.custom-input, .custom-select {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 12px !important;
    outline: none;
    box-sizing: border-box;
    width: 100%;
    font-family: 'Nunito', sans-serif;
}
.custom-input:focus, .custom-select:focus {
    border-color: var(--accent-purple) !important;
    box-shadow: 0 0 10px rgba(142, 68, 173, 0.3) !important;
}

/* BUTONLAR */
.action-btn, .nav-tab {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    color: #f8fafc !important;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}
.action-btn:hover, .nav-tab:hover {
    background: rgba(56, 189, 248, 0.1) !important;
    border-color: var(--accent-glow) !important;
    transform: translateY(-2px);
}
.nav-tab.active {
    background: var(--accent-purple) !important;
    border-color: transparent !important;
    color: white !important;
}

.icon-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 50%;
}
.icon-btn:hover {
    background: rgba(255,255,255,0.1) !important;
    transform: scale(1.1);
}

button[style*="width: 100%"] {
    background: linear-gradient(90deg, var(--accent-purple), #3b82f6) !important;
    border: none !important;
    font-weight: 900 !important;
    font-size: 1.1em !important;
}

.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 800;
    color: white !important;
    display: inline-block;
    text-transform: uppercase;
}
.badge-noun { background: #3b82f6 !important; } 
.badge-verb { background: #ef4444 !important; } 
.badge-adj  { background: #f59e0b !important; } 
.badge-adv  { background: #10b981 !important; } 

.word-card {
    background: rgba(15, 23, 42, 0.7) !important;
    border-left: 6px solid var(--accent-glow) !important;
    border-radius: 20px !important;
    padding: 15px;
    transition: 0.2s;
}
.word-card:hover {
    border-left-color: #facc15 !important;
    transform: translateY(-2px);
}

/* FLASHCARDS */
.scene {
    width: 100%;
    max-width: 500px;
    height: 300px;
    margin: 0 auto 30px auto;
    perspective: 600px;
    cursor: pointer;
}
.card {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    background: transparent !important;
    border: none !important;
}
.card.is-flipped { transform: rotateY(180deg); }
.card__face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: rgba(30, 41, 59, 0.9) !important;
    border: 2px dashed rgba(142, 68, 173, 0.5) !important;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    color: white !important;
}
.card__face * { color: white !important; }
.card__face--back { transform: rotateY(180deg); }

/* SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--brand-blue); }
::-webkit-scrollbar-thumb { background: rgba(56, 189, 248, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-glow); }
::selection { background: var(--accent-purple) !important; color: white !important; }

/* MOBİL (RESPONSIVE) KORUMASI */
@media (max-width: 600px) {
    .glass-box { width: 95%; padding: 15px; }
    .brand-logo { font-size: 2em; }
    #quizOptions { grid-template-columns: 1fr !important; }
    .scene { height: 250px; }
}