/* LEXITEST CORE CSS - THEME & ANIMATIONS */
/* © 2025 Hakan Zehir - LexiTest Modular Architecture */

:root {
    --primary: #2563eb;
    --accent: #059669;
    --warning: #d97706;
    --danger: #ef4444;
    --info: #0891b2;
    --success: #22c55e;
    --admin-border: rgba(59, 130, 246, 0.15);
    --card-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100vw;
    height: 100vh;
    background: #00000F;
    overflow-x: hidden;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #ffffff;
}

/* STARS AND FIREFLIES CANVAS */
.stars, .fireflies, .fireflies-front {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

.stars { z-index: 0; }
.fireflies { z-index: 1; }
.fireflies-front { z-index: 2; }

/* MAIN LAYOUT CONTAINER */
.main-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

/* HEADER SECTION */
.header-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(15, 15, 40, 0.3);
    border-radius: var(--card-radius);
    padding: 21px 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    position: relative;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* TOP NAVIGATION HEADER */
.top-navigation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 20px;
    background: rgba(15, 15, 40, 0.3);
    border-radius: var(--card-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    position: relative;
    z-index: 20;
}

/* Home Button - Inside top navigation */
.top-navigation-header .home-btn {
    position: static;
    background: rgba(15, 15, 40, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    margin-left: 20px;
}

.top-navigation-header .home-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.top-navigation-header .home-icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.top-navigation-header .home-btn:hover .home-icon {
    color: #3B82F6;
}

.header-copyright {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8125rem;
    font-weight: 500;
    color: #fbbf24;
}

/* VOCABULARY TEST HEADER - Copy of top-navigation-header */
.vocabulary-test-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 20px;
    background: rgba(15, 15, 40, 0.3);
    border-radius: var(--card-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    position: relative;
    z-index: 20;
}

.vocabulary-test-title {
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(180deg, #10b981, #065f46);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.logo-container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.logo-container img {
    max-width: 180px;
    width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
}

.logo-fallback {
    color: var(--primary);
    font-size: 2.8em;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    margin-bottom: 12px;
    display: none;
    letter-spacing: 2px;
    text-align: center;
}

.copyright {
    font-size: 0.8125rem;
    margin-top: 8px;
    text-align: center;
    font-weight: 500;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FOOTER SECTION */
.footer-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    margin-top: 20px;
    background: rgba(15, 15, 40, 0.3);
    border-radius: var(--card-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    position: relative;
}

.footer-copyright {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #fbbf24;
    text-align: center;
}

/* ANSWER EFFECTS ANIMATION */
.answer-effect {
    position: fixed;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    animation: answer-fall linear;
    top: -50px;
    box-shadow: 0 0 10px currentColor;
}

.answer-effect.correct {
    background: var(--success);
    color: var(--success);
}

.answer-effect.wrong {
    background: var(--danger);
    color: var(--danger);
}

@keyframes answer-fall {
    0% {
        transform: translateY(0px) translateX(0px);
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) translateX(50px);
        opacity: 0;
    }
}

/* LOADING AND ERROR STATES */
.loading {
    text-align: center;
    font-size: 1.5rem;
    margin: 60px 0;
    color: var(--primary);
    font-weight: 600;
}

.error {
    text-align: center;
    color: var(--danger);
    font-size: 1.25rem;
    margin: 60px 0;
    font-weight: 600;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .main-container {
        padding: 20px;
        max-width: 100%;
    }
    
    .top-navigation-header {
        padding: 10px 0;
        margin-bottom: 20px;
    }
    
    .top-navigation-header .home-btn {
        width: 32px;
        height: 32px;
        padding: 5px;
        margin-left: 15px;
    }
    
    .top-navigation-header .home-icon {
        width: 18px;
        height: 18px;
    }
    
    .header-copyright {
        font-size: 0.75rem;
    }
    
    .vocabulary-test-header {
        padding: 10px 0;
        margin-bottom: 20px;
    }
    
    .vocabulary-test-title {
        font-size: 1.5rem;
        font-weight: 700;
    }
    
    .logo-container img {
        max-width: 160px;
        width: 160px;
    }
    
    .header-wrap {
        padding: 14px 28px;
        margin-bottom: 20px;
    }
    
    .logo-fallback {
        font-size: 2.4em;
        margin-bottom: 10px;
    }
    
    .copyright {
        font-size: 0.75rem;
        margin-top: 6px;
    }
    
    .footer-header {
        padding: 10px 0;
        margin-top: 20px;
    }
    
    .footer-copyright {
        font-size: 0.75rem;
    }
    
    .loading {
        font-size: 1.25rem;
        margin: 50px 0;
    }
    
    .error {
        font-size: 1.125rem;
        margin: 50px 0;
    }
}