/* Layout styles for SAT-DISCOVERY dashboard */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--dark-blue);
    color: var(--yellow);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header */
header {
    background-color: rgba(2, 11, 22, 0.95);
    border-bottom: 2px solid var(--yellow);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    color: var(--yellow);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

header nav a {
    color: var(--yellow);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

header nav a:hover,
header nav a.active {
    background-color: rgba(255, 215, 0, 0.1);
}

/* Main container */
main {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 320px;
    background-color: rgba(2, 11, 22, 0.8);
    border-right: 1px solid rgba(255, 215, 0, 0.2);
    overflow-y: auto;
    padding: 1.5rem;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section h3 {
    color: var(--yellow);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Content area with map and results */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Map panel (70% height) */
.map-panel {
    height: 70%;
    background-color: #0a1929;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

/* Results panel (30% height) */
.results-panel {
    height: 30%;
    background-color: rgba(2, 11, 22, 0.9);
    overflow-y: auto;
    padding: 1rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.results-count {
    color: var(--yellow);
    font-size: 0.9rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        max-height: 40vh;
        border-right: none;
        border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    }
    
    .map-panel {
        height: 50%;
    }
    
    .results-panel {
        height: 50%;
    }
}

/* Detail page layout */
.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.detail-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--yellow);
}

.detail-header h2 {
    color: var(--yellow);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .detail-content {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background-color: rgba(2, 11, 22, 0.95);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding: 1rem 2rem;
    text-align: center;
    color: rgba(255, 215, 0, 0.7);
    font-size: 0.85rem;
}
