/* Reset & Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Background Glow Effects */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(160px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.15;
}

.bg-glow-1 {
    top: -10%;
    left: -10%;
    background: var(--accent-blue);
}

.bg-glow-2 {
    bottom: -10%;
    right: -10%;
    background: var(--accent-purple);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #252836;
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: #383c52;
}

/* App Header */
.app-header {
    background: rgba(7, 8, 13, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-fast);
}

.header-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0.65rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.header-row-primary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-row-secondary {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.45rem;
}

.logo {
    font-size: 2.2rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: 1px;
    font-family: 'Outfit', sans-serif;
}

.logo-accent {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 2px;
}

/* App Main Content */
.app-main {
    flex: 1;
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.gradient-text {
    background: var(--grad-neon);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

/* Control Section (Filters & Search) */
.control-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Footer */
.app-footer {
    background: #040508;
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: auto;
}

.footer-container {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.app-footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.app-footer .footer-notice {
    font-size: 0.75rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .app-main {
        padding: 1.5rem 1rem;
    }

    .header-container {
        padding: 0.75rem 1rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .header-actions {
        gap: 0.5rem !important;
    }
    
    .user-status-container {
        padding: 0.25rem 0.6rem !important;
        gap: 0.4rem !important;
    }
    
    .user-display-name {
        font-size: 0.8rem !important;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .header-actions .btn {
        padding: 0.45rem 0.8rem;
        font-size: 0.8rem;
        gap: 0.35rem;
    }
}

@media (max-width: 520px) {
    .logo {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }
    
    /* Hide text inside header action buttons and make them compact square icons */
    .app-header .btn-icon-text span {
        display: none;
    }
    
    .app-header .btn-icon-text {
        padding: 0.55rem;
        min-width: 36px;
        min-height: 36px;
        border-radius: var(--radius-md);
    }
    
    .app-header .btn-icon-text .icon {
        margin: 0;
        width: 1.15rem;
        height: 1.15rem;
    }
    
    /* Responsive styling for logged in user state */
    .user-status-container {
        padding: 0.2rem 0.4rem !important;
        border-radius: var(--radius-md) !important;
        gap: 0.3rem !important;
    }
    
    .user-display-name {
        display: none; /* Hide nickname on extremely small screens */
    }
    
    #admin-panel-btn, 
    #profile-btn, 
    #logout-btn {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.7rem !important;
    }
}
