/* v4-7.css - Royal Reels Casino Games Advanced Section */

.rr-games-advanced {
    color: var(--text-main);
    position: relative;
    overflow: hidden
}

/* Premium background effect */
.rr-games-advanced::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    right: -100px;
    bottom: -100px;
    background: 
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.03) 0%, transparent 70%);
    animation: rr-pulse-bg 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0
}

@keyframes rr-pulse-bg {
    0%, 100% { transform: scale(1) rotate(0deg) }
    50% { transform: scale(1.1) rotate(5deg) }
}

.rr-games-advanced .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: 32px;
    position: relative;
    z-index: 1
}

.rr-games-advanced .text-block {
    margin-top: -8px
}

.rr-games-advanced .section__title,
.rr-games-advanced .text-block {
    max-width: 820px
}

/* CTA Link */
.rr-games-advanced__link {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden
}

.rr-games-advanced__link::before {
    content: '→';
    position: absolute;
    right: 32px;
    transition: transform 0.3s ease
}

.rr-games-advanced__link:hover {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    transform: translateX(8px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4)
}

.rr-games-advanced__link:hover::before {
    transform: translateX(4px)
}

/* Games Grid */
.rr-games-advanced__list {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 8px
}

/* Advanced Game Card */
.rr-games-advanced__card {
    border-radius: 16px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    min-height: 256px;
    overflow: hidden;
    padding: 16px;
    width: 100%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column nowrap;
    flex-flow: column nowrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    background: linear-gradient(135deg, rgba(26, 20, 37, 0.95) 0%, rgba(15, 10, 31, 0.98) 100%);
    color: #ffffff;
    gap: 24px;
    justify-content: space-between;
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: rr-card-slide-in 0.6s ease-out backwards;
    animation-delay: calc(var(--card-index, 0) * 0.1s)
}

@keyframes rr-card-slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px)
    }
    to {
        opacity: 1;
        transform: translateX(0)
    }
}

/* Gradient overlay for cards with background */
.rr-games-advanced__card:before {
    background: linear-gradient(
        270deg,
        rgba(15, 10, 31, 0) 0%,
        rgba(15, 10, 31, 0.6) 40%,
        rgba(15, 10, 31, 0.95) 100%
    );
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
    transition: opacity 0.3s ease
}

/* Hover effects */
.rr-games-advanced__card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 24px 48px rgba(124, 58, 237, 0.3),
        0 0 0 2px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.4)
}

/* Cards without background */
.rr-games-advanced__card:not(:has(.rr-games-advanced__card-bg)) {
    color: var(--card-text);
    background: 
        linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(255, 215, 0, 0.03) 100%),
        linear-gradient(135deg, rgba(26, 20, 37, 0.98) 0%, rgba(15, 10, 31, 1) 100%)
}

.rr-games-advanced__card:not(:has(.rr-games-advanced__card-bg)):before {
    display: none
}

.rr-games-advanced__card:not(:has(.rr-games-advanced__card-bg)) .rr-games-advanced__card-info {
    max-width: unset
}

/* Background image */
.rr-games-advanced__card-bg {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0
}

.rr-games-advanced__card-bg__img {
    display: block;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
    transition: transform 0.4s ease;
    filter: brightness(0.7) saturate(1.2)
}

.rr-games-advanced__card:hover .rr-games-advanced__card-bg__img {
    transform: scale(1.15);
    filter: brightness(0.9) saturate(1.3)
}

/* Card content */
.rr-games-advanced__card-info {
    max-width: 220px;
    position: relative;
    z-index: 2
}

/* Category label */
.rr-games-advanced__card-info__category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    line-height: 150%;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffd700;
    padding: 2px 8px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 215, 0, 0.2)
}

/* Card title */
.rr-games-advanced__card-info__title {
    font-family: var(--font-2);
    font-size: 24px;
    font-weight: 600;
    line-height: 130%;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3)
}

/* Tags container */
.rr-games-advanced__card-info__tags {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 8px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap
}

/* Individual tag */
.rr-games-advanced__card-info__tag {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.9) 0%, rgba(109, 40, 217, 0.9) 100%);
    border-radius: 16px;
    color: #ffffff;
    display: block;
    font-size: 11px;
    padding: 4px 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease
}

.rr-games-advanced__card-info__tag:hover {
    background: linear-gradient(135deg, #ffd700 0%, #fbbf24 100%);
    color: #0f0a1f;
    transform: scale(1.05)
}

/* Features list */
.rr-games-advanced__card-info ul {
    gap: 10px;
    margin-top: 16px;
    list-style: none
}

.rr-games-advanced__card-info ul li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-size: 14px;
    font-weight: 400;
    line-height: 150%;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9)
}

.rr-games-advanced__card-info ul li:before {
    content: "";
    background: linear-gradient(135deg, #ffd700 0%, #7c3aed 100%);
    border-radius: 50%;
    height: 8px;
    min-width: 8px;
    width: 8px;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4)
}

/* Card buttons */
.rr-games-advanced__card-buttons {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, 1fr);
    margin-top: auto;
    position: relative;
    z-index: 2
}

.rr-games-advanced__card-buttons__item {
    padding: 10px 16px;
    background: linear-gradient(135deg, #ffd700 0%, #fbbf24 100%);
    color: #0f0a1f;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3)
}

/* Secondary button style */
.rr-games-advanced__card-buttons__item:nth-child(2) {
    background: transparent;
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.5);
    box-shadow: none
}

/* Button hover effects */
.rr-games-advanced__card-buttons__item:hover {
    transform: translateY(-2px)
}

.rr-games-advanced__card-buttons__item:first-child:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4)
}

.rr-games-advanced__card-buttons__item:nth-child(2):hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2)
}

/* Responsive Design */
@media (max-width: 1000px) {
    .rr-games-advanced__list {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width: 768px) {
    .rr-games-advanced .container {
        gap: 16px
    }
    
    .rr-games-advanced .text-block {
        margin-top: 0
    }
    
    .rr-games-advanced__card {
        min-height: 220px;
        padding: 12px
    }
    
    .rr-games-advanced__card-info__title {
        font-size: 20px;
        font-weight: 600;
        line-height: 140%
    }
    
    .rr-games-advanced__card-info__category {
        font-size: 11px
    }
    
    .rr-games-advanced__card-info ul li {
        font-size: 13px
    }
    
    .rr-games-advanced__card-buttons__item {
        padding: 8px 12px;
        font-size: 12px
    }
}

@media (max-width: 600px) {
    .rr-games-advanced__list {
        grid-template-columns: repeat(1, 1fr)
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .rr-games-advanced::before,
    .rr-games-advanced__card {
        animation: none
    }
    
    .rr-games-advanced__card,
    .rr-games-advanced__card-bg__img,
    .rr-games-advanced__card-buttons__item {
        transition: none
    }
}