/* pickaladder - layout.css (v0.10.2 Final Layout Fix) */

:root {
    --sidebar-width: 350px;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden; 
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Navbar & Header */
.header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    margin-bottom: 20px;
    position: relative;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand, .navbar-menu a {
    color: var(--text-primary);
    text-decoration: none;
}

.navbar-brand {
    font-size: 1.5em;
    font-weight: 500;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-menu a {
    position: relative;
    padding-bottom: 4px;
}

.navbar-menu a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
}

.navbar-user-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- Dashboard Column System (Refactored to Grid) --- */

.dashboard-columns {
    display: grid;
    /* Forces columns into specific tracks: Feed gets the rest, Sidebar gets exactly 350px */
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 24px;
    align-items: flex-start;
}

.dashboard-column-left, 
.dashboard-column-right {
    /* Critical: prevents children (like wide cards) from shoving the column wider than its track */
    min-width: 0; 
    width: 100%;
}

/* --- Grid Systems --- */

.card-grid, .groups-grid, .tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 24px;
    margin-top: 20px;
    width: 100%;
}

.group-card {
    padding: 0 !important;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.group-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

/* --- Mobile Responsiveness --- */

@media screen and (max-width: 992px) {
    .dashboard-columns {
        /* Collapse the grid into a single column on mobile */
        grid-template-columns: 1fr;
    }
    
    .dashboard-column-right {
        order: -1; /* Move social/competitions to top for mobile users */
    }
    
    .navbar-menu { 
        display: none; 
    }
}

/* Animations & Onboarding */
.bg-volt { background-color: var(--accent-color) !important; }

.pulse {
    animation: pulse-animation 2s infinite;
    border-left: 4px solid var(--accent-color) !important;
}

@keyframes pulse-animation {
    0% { background-color: rgba(132, 204, 22, 0.05); }
    50% { background-color: rgba(132, 204, 22, 0.2); }
    100% { background-color: rgba(132, 204, 22, 0.05); }
}

/* Login Page Hero */
.login-landing-container {
    display: flex;
    min-height: calc(100vh - 120px);
    align-items: center;
    gap: 40px;
}

.login-form-side {
    flex: 1;
    max-width: 500px;
}

.feature-hero-side {
    flex: 1;
    padding: 40px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--border-color) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
}
