/* Main CSS Orchestrator - Modular Tetris Styles */

/* Import all CSS modules in correct order */
@import url('./base.css');
@import url('./menu.css');
@import url('./game.css');
@import url('./multiplayer.css');
@import url('./animations.css');
@import url('./responsive.css');

/* Additional user info styles specific to index.html */
.user-info {
    text-align: center;
    background: rgba(0, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.user-stats {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #ccc;
}

.logout-btn {
    background: linear-gradient(45deg, #ff4444, #cc0000) !important;
    margin-top: 1rem;
}

.logout-btn:hover {
    background: linear-gradient(45deg, #ff6666, #ee2222) !important;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 2px solid #00ffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.navbar-brand .brand-text {
    color: #00ffff;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px #00ffff;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar-item {
    color: #ccc;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.navbar-item:hover {
    color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
}

.profile-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.profile-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-dropdown .navbar-item {
    border: none;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #00ffff;
    border-radius: 5px;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.8rem 1rem;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

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

.dropdown-item:hover {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    padding-left: 1.2rem;
}

/* Adjust main content to account for navbar */
body {
    padding-top: 60px;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
    display: block !important;
    justify-content: unset !important;
    align-items: unset !important;
}

/* Remove navbar padding for auth pages */
body.auth-page {
    padding-top: 0 !important;
}

/* Special override for single player page to center content */
body.single-player-page {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding-top: 60px !important;
}

.menu-container {
    margin-top: 2rem;
}

/* Ensure page containers can scroll */
.leaderboard-container,
.profile-container {
    margin-top: 1rem !important;
    margin-bottom: 2rem !important;
    overflow: visible !important;
}

/* Fix for full page content */
html {
    overflow-y: auto !important;
    height: auto !important;
}

/* Score Notification Styles */
#score-notification {
    position: fixed !important;
    top: 80px !important; /* Adjusted for navbar */
    right: 20px !important;
    padding: 1rem !important;
    border-radius: 5px !important;
    color: white !important;
    font-weight: bold !important;
    z-index: 10000 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    max-width: 300px !important;
    word-wrap: break-word !important;
}

/* Center game container for single player mode */
#single-player-game {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: calc(100vh - 65px) !important;
    padding: 2rem !important;
}

/* Ensure the game-container inside single-player is properly positioned */
#single-player-game .game-container {
    margin: 0 auto !important;
    position: relative !important;
}

/* Info tooltip styles */
.info-tooltip {
    display: inline-block;
    margin-left: 8px;
    cursor: pointer;
    font-size: 0.9em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.info-tooltip:hover {
    opacity: 1;
}

/* Responsive navbar */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }

    .navbar-brand .brand-text {
        font-size: 1.2rem;
    }

    .navbar-menu {
        gap: 1rem;
    }

    .navbar-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
