/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: #000000;
    color: #e0e0e0;
    line-height: 1.6;
    padding-top: 180px; /* Space for fixed header */
    padding-bottom: 120px; /* Space for fixed footer */
}

/* Fixed Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #0a0a0a;
    border-bottom: 2px solid #1a1a1a;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.site-header h1 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
}

.site-header .explainer {
    font-size: 1rem;
    color: #b0b0b0;
    max-width: 900px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.site-header .pass-info {
    font-size: 0.9rem;
    color: #808080;
    font-style: italic;
}

.site-header a {
    color: #4a9eff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.site-header a:hover {
    border-bottom-color: #4a9eff;
}

/* Main Gallery */
.gallery {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Individual Image Entry */
.image-entry {
    background-color: #0f0f0f;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 60px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.image-entry:last-child {
    margin-bottom: 0;
}

/* Image Header with Metadata */
.image-header {
    margin-bottom: 25px;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 15px;
}

.metadata h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 600;
}

.metadata .capture-time {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.metadata .processed-time {
    font-size: 0.9rem;
    color: #808080;
    font-style: italic;
}

/* Image Container - Main Layout */
.image-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

/* Satellite Image */
.satellite-image {
    background-color: #000000;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
}

.satellite-image a {
    display: block;
    line-height: 0;
}

.satellite-image img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: opacity 0.2s;
}

.satellite-image img:hover {
    opacity: 0.9;
}

/* Maps Sidebar */
.maps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 200px; /* Below fixed header */
}

.map-item {
    background-color: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 15px;
}

.map-item h3 {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.map-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    border: 1px solid #1a1a1a;
}

/* Fixed Footer */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #0a0a0a;
    border-top: 2px solid #1a1a1a;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-content > div {
    margin-bottom: 5px;
}

.footer-content > div:last-child {
    margin-bottom: 0;
}

.footer-content strong {
    color: #ffffff;
    font-weight: 600;
}

.footer-content a {
    color: #4a9eff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.footer-content a:hover {
    border-bottom-color: #4a9eff;
}

.footer-content .location {
    color: #808080;
    font-style: italic;
    margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .image-container {
        grid-template-columns: 1fr;
    }
    
    .maps {
        position: static;
        flex-direction: row;
        gap: 15px;
    }
    
    .map-item {
        flex: 1;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 220px;
        padding-bottom: 180px;
    }
    
    .site-header h1 {
        font-size: 1.5rem;
    }
    
    .site-header .explainer {
        font-size: 0.9rem;
    }
    
    .maps {
        flex-direction: column;
    }
    
    .image-entry {
        padding: 20px;
        margin-bottom: 40px;
    }
    
    .footer-content {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 260px;
    }
    
    .site-header {
        padding: 15px;
    }
    
    .site-header h1 {
        font-size: 1.25rem;
    }
    
    .metadata h2 {
        font-size: 1.2rem;
    }
    
    .image-entry {
        padding: 15px;
    }
}
