/* Layout and Navigation Styles */

/* Main Container */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Desktop Layout */
@media (min-width: 769px) {
    .main-container {
        flex-direction: row;
        padding-left: 240px;
    }
    
    .bottom-nav {
        display: none !important;
    }
}

/* Mobile Layout */
@media (max-width: 768px) {
    .main-container { padding-bottom: 80px; width: 100%; overflow-x: hidden; }
    
    .sidebar-nav {
        display: none !important;
    }
    
    html, body { width: 100%; overflow-x: hidden; }
}

/* Sidebar Navigation */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    height: 100vh;
    background: var(--surface-elevated);
    border-right: 1px solid var(--border);
    padding: var(--spacing-lg);
    z-index: var(--z-fixed);
    overflow-y: auto;
}

.sidebar-group {
    margin-bottom: var(--spacing-lg);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
}

.sidebar-item:hover {
    background: var(--surface);
    color: var(--primary);
}

.sidebar-item.active {
    background: var(--primary);
    color: white;
}

.sidebar-item .icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-elevated);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: var(--spacing-sm) 0;
    z-index: var(--z-fixed);
    backdrop-filter: var(--blur);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    min-width: 64px;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary);
}

.nav-icon {
    font-size: 1.5rem;
}

.nav-item small {
    font-size: var(--font-size-xs);
    font-weight: 500;
}

/* Tab Content */
.tab-content {
    display: none;
    flex: 1;
    padding: var(--spacing-lg);
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.tab-content.active {
    display: block;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding: 0 var(--spacing-md);
}

.header h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: var(--spacing-xl) 0 var(--spacing-lg) 0;
}

.section-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
}

.see-all-btn {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.see-all-btn:hover {
    background: var(--surface);
}

/* Content Rows */
.content-row {
    display: flex !important;
    gap: 16px !important;
    overflow-x: auto !important;
    padding: 4px 2px 10px 2px !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.content-row::-webkit-scrollbar {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header {
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .header h1 {
        font-size: var(--font-size-2xl);
    }
    
    .section-title {
        font-size: var(--font-size-lg);
    }
    
    .tab-content {
        padding: var(--spacing-md);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .section-header {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .content-row {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: var(--font-size-xl);
    }
    
    .section-title {
        font-size: var(--font-size-base);
    }
}
