/**
 * Gallery Page Styles
 * ScooterCam Sunset Gallery & Daily Timelapse Archive
 */

/* Gallery Page Layout */
.gallery-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.page-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
}

.page-header .subtitle {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Gallery Navigation */
.gallery-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    gap: 15px;
}

.nav-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.view-toggle,
.camera-toggle {
    display: flex;
    gap: 10px;
}

.toggle-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.toggle-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.toggle-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.btn-back {
    padding: 10px 20px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.btn-back:hover {
    background: #555;
}

/* Current Selection Display */
.current-selection {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 30px;
}

.selection-info {
    margin: 0;
    font-size: 1.1rem;
}

.selection-info strong {
    font-weight: 700;
}

/* Month Sections */
.gallery-month {
    margin-bottom: 60px;
}

.gallery-month h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    color: #333;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Gallery Items */
.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* Video Container */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Item Metadata */
.gallery-item-meta {
    padding: 15px;
    background: white;
}

.video-date {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #333;
}

.video-time {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #666;
}

.download-link {
    display: inline-block;
    padding: 8px 15px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.download-link:hover {
    background: #5568d3;
}

/* Month Navigation */
.month-nav {
    margin: 40px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.month-nav h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.month-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.month-nav li {
    margin: 0;
}

.month-nav a {
    display: block;
    padding: 8px 15px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.month-nav a:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Gallery Info Section */
.gallery-info {
    margin: 60px 0;
    padding: 30px;
    background: #f5f5f5;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.gallery-info h2 {
    margin-top: 0;
    color: #333;
}

.gallery-info p {
    line-height: 1.6;
    color: #555;
}

/* No Content Message */
.no-content {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 40px 0;
}

.no-content p {
    font-size: 1.1rem;
    color: #666;
}

.no-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.no-content a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .gallery-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-controls {
        width: 100%;
    }
    
    .view-toggle,
    .camera-toggle {
        width: 100%;
    }
    
    .toggle-btn {
        flex: 1;
        text-align: center;
    }
    
    .btn-back {
        width: 100%;
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-month h2 {
        font-size: 1.5rem;
    }
    
    .month-nav ul {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 30px 15px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .gallery-page {
        padding: 10px;
    }
    
    .toggle-btn,
    .btn-back {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .current-selection {
        padding: 15px;
    }
    
    .selection-info {
        font-size: 1rem;
    }
}