/* ============================================
   Gallery Navigation - Carousel Style
   ============================================ */

.gallery-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

.gallery-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 120px;
    background: rgba(191, 66, 84, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10000;
}

.gallery-nav-arrow:hover {
    background: rgba(191, 66, 84, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.gallery-nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-nav-arrow.left {
    left: 0;
    border-radius: 0 8px 8px 0;
}

.gallery-nav-arrow.right {
    right: 0;
    border-radius: 8px 0 0 8px;
}

.gallery-nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Tooltip on hover */
.gallery-nav-arrow::after {
    content: attr(data-game-title);
    position: absolute;
    background: rgba(44, 46, 53, 0.95);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gallery-nav-arrow.left::after {
    left: 70px;
}

.gallery-nav-arrow.right::after {
    right: 70px;
}

.gallery-nav-arrow:hover::after {
    opacity: 1;
}

/* Game indicator at bottom */
.gallery-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(44, 46, 53, 0.9);
    border-radius: 24px;
    pointer-events: auto;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-indicator-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.gallery-indicator-dot.active {
    background: #BF4254;
    width: 32px;
    border-radius: 6px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .gallery-nav-arrow {
        width: 50px;
        height: 100px;
        font-size: 1.5rem;
    }
    
    .gallery-nav-arrow::after {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .gallery-indicator {
        bottom: 10px;
        padding: 8px 16px;
        gap: 8px;
    }
    
    .gallery-indicator-dot {
        width: 10px;
        height: 10px;
    }
    
    .gallery-indicator-dot.active {
        width: 24px;
    }
}

/* Extra small screens - make arrows smaller and less intrusive */
@media (max-width: 480px) {
    .gallery-nav-arrow {
        width: 40px;
        height: 80px;
        font-size: 1.25rem;
        opacity: 0.8;
    }
    
    .gallery-nav-arrow:hover {
        opacity: 1;
    }
    
    /* Hide tooltip on very small screens */
    .gallery-nav-arrow::after {
        display: none;
    }
}

/* Print - hide navigation */
@media print {
    .gallery-nav,
    .gallery-indicator {
        display: none !important;
    }
}
