/* Gallery specific styles */

.gallery-header {
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    z-index: 10;
}

.gallery-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    color: var(--accent-amber);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(246, 171, 14, 0.3);
}

.gallery-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Gallery Grid */
.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: var(--accent-gold);
    box-shadow: 0 8px 30px var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-title {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.gallery-item-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.comment-count {
    color: var(--accent-gold);
    margin-left: 0.5rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 8, 16, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    background: var(--bg-darker);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    animation: lightboxSlideIn 0.3s ease;
}

@keyframes lightboxSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    padding: 2rem;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--card-border);
    color: var(--text-light);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--card-border);
    color: var(--text-light);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: #e74c3c;
    border-color: #e74c3c;
}

/* Sidebar */
.lightbox-sidebar {
    background: var(--bg-darker);
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.lightbox-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.lightbox-date {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Comments Section */
.comments-section {
    flex: 1;
}

.comments-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--card-border);
}

.comments-list {
    margin-bottom: 2rem;
}

.comment {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--accent-gold);
    font-size: 0.95rem;
}

.comment-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.comment-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.no-comments {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 2rem 0;
}

/* Comment Form */
.comment-form {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 0.75rem;
    color: var(--text-light);
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    background: var(--accent-gold);
    color: var(--bg-dark);
    border: none;
    border-radius: 6px;
    padding: 0.875rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(246, 171, 14, 0.3);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Responsive */
@media (max-width: 968px) {
    .lightbox-content {
        grid-template-columns: 1fr;
        max-height: 95vh;
    }
    
    .lightbox-image-container {
        max-height: 50vh;
    }
    
    .lightbox-sidebar {
        max-height: 45vh;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .gallery-title {
        font-size: 2rem;
    }
    
    .lightbox {
        padding: 1rem;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox-content {
        padding: 1rem;
    }
    
    .lightbox-sidebar {
        padding: 1.5rem;
    }
}

/* Webcams Section */
.webcams-section {
    max-width: 1400px;
    margin: 0 auto 4rem auto;
    padding: 0 2rem;
}

.webcams-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: var(--accent-gold);
    text-align: center;
    margin: 0 0 1rem 0;
}

.webcams-description {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0 auto 2.5rem auto;
    max-width: 700px;
    line-height: 1.6;
}

.webcams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.webcam-container {
    background: rgba(26, 32, 64, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.webcam-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-weight: 600;
}

.webcam-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.webcam-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.webcams-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    padding: 1rem;
    background: rgba(212, 165, 116, 0.1);
    border-radius: 8px;
}

/* Gallery Divider */
.gallery-divider {
    max-width: 1200px;
    margin: 3rem auto;
    height: 2px;
    background: linear-gradient(to right, 
        transparent, 
        var(--card-border), 
        transparent);
}

.gallery-section-header {
    max-width: 1400px;
    margin: 0 auto 2rem auto;
    padding: 0 2rem;
}

.gallery-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: var(--accent-gold);
    text-align: center;
    margin: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .webcams-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .webcams-section {
        padding: 0 1rem;
    }
    
    .webcams-title {
        font-size: 1.5rem;
    }
    
    .webcams-description {
        font-size: 1rem;
    }
    
    .webcam-container {
        padding: 1rem;
    }
    
    .webcam-label {
        font-size: 1rem;
    }
    
    .gallery-section-title {
        font-size: 1.4rem;
    }
}
