/* Detections Page Specific Styles */

/* Remove redundant navbar styles to use global navbar */

/* Hero Section */
.detections-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #16213e 0%, #0f0f23 100%);
    text-align: center;
}

.detections-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #b8b8d1;
    max-width: 600px;
    margin: 0 auto;
}

/* Detections Section */
.detections-section {
    padding: 80px 0;
    background: #0f0f23;
    min-height: 60vh;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 1rem;
}

.gallery-header h2 {
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 600;
    margin: 0;
}

.gallery-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.date-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.date-filter label {
    color: #b8b8d1;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.date-input {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-input:focus {
    outline: none;
    border-color: #4a90e2;
    background: rgba(255, 255, 255, 0.15);
}

.date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.control-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.control-btn.secondary {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
}

.control-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 60px 0;
    color: #b8b8d1;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(74, 144, 226, 0.5);
}

.gallery-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-image {
    transform: scale(1.05);
}

.gallery-item-info {
    padding: 1.5rem;
}

.gallery-item-date {
    font-size: 0.9rem;
    color: #4a90e2;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-item-time {
    font-size: 0.8rem;
    color: #b8b8d1;
}

.gallery-item-filename {
    font-size: 0.7rem;
    color: #7a7a9a;
    margin-top: 0.5rem;
    font-family: monospace;
}

/* No Detections State */
.no-detections {
    text-align: center;
    padding: 80px 0;
    color: #b8b8d1;
}

.no-detections-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.no-detections h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.lightbox-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-container {
    max-width: 90vw;
    max-height: 90vh;
    background: rgba(15, 15, 35, 0.95);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2001;
    pointer-events: auto;
    position: relative;
}

.lightbox-info h3 {
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.lightbox-info p {
    color: #4a90e2;
    margin: 0;
    font-size: 0.9rem;
}

.lightbox-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
    z-index: 2002;
    pointer-events: auto;
    position: relative;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-content {
    position: relative;
    overflow: hidden;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transform-origin: center center;
    pointer-events: auto;
}

.lightbox-content img:active {
    cursor: grabbing;
}

.lightbox-content img.dragging {
    cursor: grabbing !important;
    transition: none !important;
    transform-origin: center center !important;
}

.lightbox-content img.zoomed {
    cursor: grab;
}

.lightbox-content img.not-zoomed {
    cursor: default;
}

.lightbox-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 0.5rem;
    z-index: 2001;
    pointer-events: auto;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 2002;
    pointer-events: auto;
}

.zoom-btn:hover {
    background: rgba(74, 144, 226, 0.8);
    transform: scale(1.1);
}

.lightbox-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2001;
    pointer-events: auto;
    position: relative;
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 2002;
    pointer-events: auto;
    position: relative;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(74, 144, 226, 0.8);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.image-counter {
    color: #b8b8d1;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navbar adjustments removed - using global navbar styles */
    
    .detections-hero h1 {
        font-size: 2.5rem;
    }
    
    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .gallery-header h2 {
        font-size: 2rem;
    }
    
    .gallery-controls {
        width: 100%;
        justify-content: flex-start;
    }
    
    .date-filter {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .date-filter label {
        font-size: 0.8rem;
    }
    
    .date-input {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .lightbox-container {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .lightbox-header {
        padding: 1rem;
    }
    
    .lightbox-navigation {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .control-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .lightbox-content img {
        max-height: 50vh;
    }
} 