/* ============================================ */
/* MAIN CSS
/* Core global styles for the French Learning Website
/* ============================================ */

/* Global Body Styles */
body {
    font-family: var(--font-family-sans);
    background: var(--primary-lighter);
    min-height: 100vh;
    padding-top: 0;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================ */
/* ANIMATIONS
/* ============================================ */

/* Loading Animation - Optimized for faster load */
.loading {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.3s ease forwards;
}

/* fadeInUp keyframe moved to pages.css to avoid duplication */

/* Page Transitions - Optimized for faster load */
.page-transition {
    animation: pageLoad 0.4s ease-out;
}

@keyframes pageLoad {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: none;
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

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

/* ============================================ */
/* NAVBAR AND Z-INDEX MANAGEMENT
/* ============================================ */

/* Navbar and Dropdown Z-Index */
.navbar {
    z-index: 9999;
}

.dropdown-menu {
    z-index: 10000;
}

/* ============================================ */
/* DEVELOPMENT NOTICE POPUP
/* ============================================ */

.dev-notice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dev-notice-overlay.show {
    opacity: 1;
    visibility: visible;
}

.dev-notice-popup {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
}

.dev-notice-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.dev-notice-close:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.dev-notice-overlay.show .dev-notice-popup {
    transform: scale(1);
}

.dev-notice-icon {
    font-size: 3rem;
    color: #f59e0b;
    margin-bottom: 1rem;
}

.dev-notice-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.dev-notice-message {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.dev-notice-checkbox {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #4b5563;
    user-select: none;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-input:checked + .checkbox-custom {
    background: #3b82f6;
    border-color: #3b82f6;
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label:hover .checkbox-custom {
    border-color: #3b82f6;
}

.dev-notice-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dev-notice-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-hover);
}

.dev-notice-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.discord-button {
    background: #5865f2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discord-button:hover {
    background: #4752c4;
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.3);
}

.primary-button {
    background: var(--primary-color);
}

.primary-button:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-primary-hover);
}

/* ============================================ */
/* FLOATING ACTION BUTTON - GLOBAL NAVIGATION
/* ============================================ */

.floating-action-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.fab-main {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--primary-alpha-40);
    transition: all 0.3s ease;
    color: white;
    font-size: 1.5rem;
}

.fab-main:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px var(--primary-alpha-40);
}

.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-action-btn.active .fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-item {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.fab-item:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    text-decoration: none;
}

/* ============================================ */
/* RESPONSIVE ADJUSTMENTS
/* ============================================ */

@media (max-width: 768px) {
    .floating-action-btn {
        bottom: 20px;
        right: 20px;
    }
    
    .fab-main {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .fab-item {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

