/* Lightbox styles for DoggyGallery */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

@media (prefers-color-scheme: dark) {
    .lightbox {
        background: rgba(0, 0, 0, 0.98);
    }
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox img,
.lightbox video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.lightbox audio {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

/* Audio player background panel for better visibility */
.lightbox audio {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    backdrop-filter: blur(10px);
}

@media (prefers-color-scheme: dark) {
    .lightbox audio {
        background: rgba(0, 0, 0, 0.3);
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    z-index: 1001;
}

.lightbox-nav > *:first-child {
    display: flex;
    gap: 15px;
}

.lightbox-nav button {
    background: rgba(102, 126, 234, 0.9);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.lightbox-nav button:hover {
    background: rgba(85, 104, 211, 0.9);
}

.lightbox-nav button:active {
    transform: scale(0.95);
}

.random-timer-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(102, 126, 234, 0.85);
    padding: 10px 16px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.random-timer-controls label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.random-timer-controls input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: white;
}

.random-timer-controls input[type="number"] {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.random-timer-controls input[type="number"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
}

/* Remove arrows from number input */
.random-timer-controls input[type="number"]::-webkit-inner-spin-button,
.random-timer-controls input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(102, 126, 234, 0.7);
    color: white;
    border: none;
    padding: 20px 15px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    border-radius: 8px;
    transition: background 0.2s;
}

.lightbox-arrow:hover {
    background: rgba(85, 104, 211, 0.9);
}

.lightbox-arrow.prev {
    left: 20px;
}

.lightbox-arrow.next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-nav button {
        padding: 15px 25px;
        font-size: 18px;
    }

    .lightbox-arrow {
        padding: 25px 20px;
        font-size: 28px;
    }
}

/* Enhanced Audio Player */
.enhanced-audio-player {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(167, 139, 250, 0.2));
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (prefers-color-scheme: dark) {
    .enhanced-audio-player {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(167, 139, 250, 0.3));
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
}

.album-art-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.album-art {
    width: 280px;
    height: 280px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.track-info {
    text-align: center;
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audio-element {
    display: none;
}

.audio-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.time-display {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

/* Seek Slider */
.seek-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.seek-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.seek-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.seek-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.seek-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* Playback Controls */
.playback-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.play-pause-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.play-pause-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.play-pause-btn:active {
    transform: scale(0.95);
}

/* Volume Controls */
.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.volume-icon {
    font-size: 20px;
    cursor: pointer;
    user-select: none;
}

.volume-slider {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .enhanced-audio-player {
        padding: 20px;
        max-width: 90vw;
    }

    .album-art {
        width: 220px;
        height: 220px;
    }

    .track-info {
        font-size: 16px;
    }

    .play-pause-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .volume-icon {
        font-size: 18px;
    }
}
