/* v4-4.css - Royal Reels Casino Screenshots Section */

.rr-screenshots {
    color: var(--text-main);
    position: relative;
    overflow: hidden
}

/* Background decoration */
.rr-screenshots::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0
}

.rr-screenshots .container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column nowrap;
    flex-flow: column nowrap;
    gap: 24px;
    position: relative;
    z-index: 1
}

/* Title styling */
.rr-screenshots .section__title {
    text-align: center;
    background: linear-gradient(135deg, #ffd700 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    animation: rr-glow-text 3s ease-in-out infinite
}

@keyframes rr-glow-text {
    0%, 100% { 
        filter: brightness(1);
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.3)
    }
    50% { 
        filter: brightness(1.1);
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.5)
    }
}

/* Screenshots grid wrapper */
.rr-screenshots__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(26, 20, 37, 0.4) 0%, rgba(15, 10, 31, 0.3) 100%);
    border-radius: 24px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px)
}

/* Individual screenshot item */
.rr-screenshots__item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: rr-fade-up 0.6s ease-out backwards;
    animation-delay: calc(var(--item-index, 0) * 0.1s)
}

@keyframes rr-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* Screenshot image */
.rr-screenshots__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block
}

/* Hover overlay */
.rr-screenshots__item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(124, 58, 237, 0) 0%,
        rgba(124, 58, 237, 0.2) 50%,
        rgba(255, 215, 0, 0.3) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1
}

/* View icon on hover */
.rr-screenshots__item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 48px;
    color: #ffd700;
    transition: transform 0.3s ease;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5))
}

/* Hover effects */
.rr-screenshots__item:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(124, 58, 237, 0.3),
        0 0 0 2px rgba(255, 215, 0, 0.5)
}

.rr-screenshots__item:hover img {
    transform: scale(1.1)
}

.rr-screenshots__item:hover::before {
    opacity: 1
}

.rr-screenshots__item:hover::after {
    transform: translate(-50%, -50%) scale(1)
}

/* Caption for screenshots */
.rr-screenshots__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(15, 10, 31, 0.9) 100%
    );
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 3
}

.rr-screenshots__item:hover .rr-screenshots__caption {
    transform: translateY(0)
}

/* Lightbox overlay */
.rr-screenshots__lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 10, 31, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999
}

.rr-screenshots__lightbox.active {
    opacity: 1;
    visibility: visible
}

.rr-screenshots__lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: rr-zoom-in 0.3s ease
}

@keyframes rr-zoom-in {
    from {
        transform: scale(0.8);
        opacity: 0
    }
    to {
        transform: scale(1);
        opacity: 1
    }
}

/* Close button for lightbox */
.rr-screenshots__lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffd700 0%, #fbbf24 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000
}

.rr-screenshots__lightbox-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%)
}

/* Navigation buttons */
.rr-screenshots__nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px
}

.rr-screenshots__nav-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s ease
}

.rr-screenshots__nav-btn.active,
.rr-screenshots__nav-btn:hover {
    background: linear-gradient(135deg, #ffd700 0%, #7c3aed 100%);
    transform: scale(1.3)
}

/* Loading state */
.rr-screenshots__item.loading {
    background: linear-gradient(
        135deg,
        rgba(124, 58, 237, 0.1) 0%,
        rgba(255, 215, 0, 0.1) 100%
    );
    position: relative
}

.rr-screenshots__item.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 215, 0, 0.2);
    border-top-color: #ffd700;
    border-radius: 50%;
    animation: rr-spin 1s linear infinite
}

@keyframes rr-spin {
    from { transform: translate(-50%, -50%) rotate(0deg) }
    to { transform: translate(-50%, -50%) rotate(360deg) }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .rr-screenshots .container {
        gap: 16px
    }
    
    .rr-screenshots__grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
        padding: 12px
    }
    
    .rr-screenshots__item {
        aspect-ratio: 4/3
    }
    
    .rr-screenshots__item::after {
        font-size: 32px
    }
    
    .rr-screenshots__caption {
        font-size: 12px;
        padding: 8px
    }
    
    .rr-screenshots__lightbox img {
        max-width: 95%;
        max-height: 80vh;
        border-radius: 12px
    }
    
    .rr-screenshots__lightbox-close {
        width: 32px;
        height: 32px;
        top: 10px;
        right: 10px
    }
}

@media (max-width: 480px) {
    .rr-screenshots__grid {
        grid-template-columns: 1fr;
        padding: 8px
    }
    
    .rr-screenshots__item {
        aspect-ratio: 16/10
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .rr-screenshots__item,
    .rr-screenshots__item img,
    .rr-screenshots__item::after,
    .rr-screenshots__lightbox,
    .rr-screenshots__lightbox img {
        animation: none;
        transition: none
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .rr-screenshots__item {
        border: 2px solid rgba(255, 215, 0, 0.5)
    }
    
    .rr-screenshots__grid {
        border-width: 2px
    }
}

/* Print styles */
@media print {
    .rr-screenshots__item::before,
    .rr-screenshots__item::after,
    .rr-screenshots__caption,
    .rr-screenshots__nav,
    .rr-screenshots__lightbox {
        display: none
    }
    
    .rr-screenshots__grid {
        grid-template-columns: repeat(3, 1fr)
    }
}