/* Layout styles for Between The Lines */

/* Container structure */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Wider container when analysis card is visible */
.container:has(#analysisCard:not([style*="display: none"])) {
    max-width: 1600px;
}

/* Unified Analysis Card - wide layout on desktop */
#analysisCard {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

#analysisCard .card {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Legacy selectors - keep for backwards compatibility */
.container:has(#recentEventView) {
    max-width: 1600px;
}

/* Fallback for browsers that don't support :has() */
body:has(#recentEventView:not([style*="display: none"])) .container {
    max-width: 1600px;
}

/* Compact Header */
.site-header {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

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

.logo-section {
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 10px;
}

/* Events grid layout for recent events view */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Compact filters row */
.filters-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filters-row .filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters-row .filter-item {
    display: flex;
    align-items: center;
}

.filters-row .filter-label {
    font-weight: 500;
    color: #5f6368;
    font-size: 14px;
    margin-right: 5px;
    white-space: nowrap;
}

.filters-row .spacer {
    flex: 1;
}

/* Analysis layout */
.analysis-section {
    margin: 30px 0;
}

/* Sections */
.section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    color: #2c3e50;
    font-weight: 600;
}

/* Footer */
.site-footer {
    margin-top: 40px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
}

/* App views */
#regularView, #recentEventsContainer {
    min-height: 90vh;
}

/* Two-column layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 15px;
        margin: 15px 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .container {
        padding: 0 0.75rem;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .logo-section {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
    
    .filters-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .filters-row .filter-group {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .filters-row .filter-item {
        flex: 1;
        min-width: 120px;
    }
    
    .section {
        margin-bottom: 30px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .container {
        padding: 0 0.5rem;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .filters-row {
        padding: 10px;
        gap: 10px;
    }
    
    .logo-section {
        gap: 10px;
    }
    
    .section-title {
        font-size: 16px;
    }
} 