/* v4-8.css - Royal Reels Casino FAQ Section */

.rr-faq {
    color: var(--text-main);
    position: relative;
    overflow: hidden
}

/* Background decoration */
.rr-faq::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0
}

.rr-faq .container {
    display: grid;
    gap: 64px;
    grid-template-columns: 37.6% auto;
    position: relative;
    z-index: 1
}

/* FAQ Info Section */
.rr-faq__info {
    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: sticky;
    top: calc(var(--header-height, 80px) + 20px);
    height: fit-content
}

.rr-faq__info .section__title {
    background: linear-gradient(135deg, #ffd700 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 48px;
    line-height: 120%
}

.rr-faq__info .text-block {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 160%
}

/* FAQ CTA Button */
.rr-faq__info .vAll-button {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
    width: fit-content
}

.rr-faq__info .vAll-button:hover {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4)
}

/* FAQ List */
.rr-faq__list {
    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
}

/* FAQ Item (Details element) */
.rr-faq__list-item {
    padding-bottom: 24px;
    padding-right: 40px;
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, rgba(26, 20, 37, 0.4) 0%, rgba(15, 10, 31, 0.3) 100%);
    border-radius: 16px;
    padding: 24px;
    padding-right: 64px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 16px;
    animation: rr-faq-fade-in 0.6s ease-out backwards;
    animation-delay: calc(var(--faq-index, 0) * 0.1s)
}

@keyframes rr-faq-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* Bottom gradient line */
.rr-faq__list-item:after {
    background: linear-gradient(
        270deg,
        rgba(124, 58, 237, 0.3) 0%,
        rgba(255, 215, 0, 0.5) 50%,
        rgba(124, 58, 237, 0.3) 100%
    );
    bottom: 0;
    content: "";
    height: 2px;
    left: 24px;
    right: 24px;
    position: absolute;
    width: calc(100% - 48px);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease
}

/* Open state styles */
.rr-faq__list-item[open] {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.1)
}

.rr-faq__list-item[open]:after {
    opacity: 1
}

.rr-faq__list-item[open] summary:after {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
    color: #ffd700
}

/* Hover effects */
.rr-faq__list-item:hover {
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateX(4px)
}

/* Summary (Question) */
.rr-faq__list-item summary {
    cursor: pointer;
    list-style: none;
    position: relative;
    outline: none;
    transition: color 0.3s ease
}

.rr-faq__list-item summary::-webkit-details-marker {
    display: none
}

.rr-faq__list-item summary:focus-visible {
    outline: 2px solid #ffd700;
    outline-offset: 4px;
    border-radius: 8px
}

/* Arrow icon */
.rr-faq__list-item summary:after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: var(--text-main);
    content: "\f004";
    font-family: latter-icons;
    font-size: 24px;
    height: 40px;
    line-height: 40px;
    position: absolute;
    right: -40px;
    text-align: center;
    top: 0;
    -webkit-transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 40px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center
}

.rr-faq__list-item:hover summary:after {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
    transform: scale(1.1)
}

/* Question text */
.rr-faq__list-item__question {
    font-family: var(--font-2);
    font-size: 24px;
    font-weight: 600;
    line-height: 130%;
    color: var(--text-main);
    padding-right: 20px;
    transition: color 0.3s ease
}

.rr-faq__list-item[open] .rr-faq__list-item__question {
    background: linear-gradient(135deg, #ffd700 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

/* Answer content */
.rr-faq__list-item .text-block {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    animation: rr-answer-reveal 0.4s ease-out
}

@keyframes rr-answer-reveal {
    from {
        opacity: 0;
        transform: translateY(-10px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.rr-faq__list-item .text-block p {
    color: #000;
    line-height: 170%
}

.rr-faq__list-item .text-block a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    position: relative
}

.rr-faq__list-item .text-block a:hover {
    text-decoration: underline
}

/* Number indicator for FAQs */
.rr-faq__list {
    counter-reset: faq-counter
}

.rr-faq__list-item {
    counter-increment: faq-counter
}

.rr-faq__list-item__question::before {
    content: counter(faq-counter, decimal-leading-zero) ".";
    display: inline-block;
    margin-right: 12px;
    color: #ffd700;
    font-weight: 700;
    font-size: 18px;
    opacity: 0.7
}

/* Responsive Design */
@media (max-width: 1200px) {
    .rr-faq .container {
        gap: 32px
    }
    
    .rr-faq__info {
        position: relative;
        top: 0
    }
}

@media (max-width: 1000px) {
    .rr-faq .container {
        gap: 24px;
        grid-template-columns: repeat(1, 1fr)
    }
    
    .rr-faq__info .section__title {
        font-size: 36px
    }
}

@media (max-width: 768px) {
    .rr-faq .container,
    .rr-faq__info,
    .rr-faq__list {
        gap: 16px
    }
    
    .rr-faq__list-item {
        padding: 16px;
        padding-right: 56px;
        padding-bottom: 16px;
        margin-bottom: 12px
    }
    
    .rr-faq__list-item:after {
        left: 16px;
        right: 16px;
        width: calc(100% - 32px)
    }
    
    .rr-faq__list-item summary:after {
        right: -36px;
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 20px
    }
    
    .rr-faq__list-item__question {
        font-size: 18px;
        font-weight: 600;
        line-height: 140%
    }
    
    .rr-faq__list-item__question::before {
        font-size: 14px;
        margin-right: 8px
    }
    
    .rr-faq__info .section__title {
        font-size: 28px
    }
    
    .rr-faq__info .text-block {
        font-size: 16px
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .rr-faq__list-item,
    .rr-faq__list-item .text-block {
        animation: none
    }
    
    .rr-faq__list-item,
    .rr-faq__list-item summary:after {
        transition: none
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .rr-faq__list-item {
        border-width: 2px
    }
    
    .rr-faq__list-item[open] {
        border-width: 2px
    }
}

/* Print styles */
@media print {
    .rr-faq__list-item {
        border: 1px solid #000;
        background: none
    }
    
    .rr-faq__list-item[open] {
        page-break-inside: avoid
    }
}