/* v4-6.css - Royal Reels Casino How To Section */

.rr-how-to {
    color: var(--text-main);
    position: relative
}

/* Background decoration */
.rr-how-to::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, rgba(124, 58, 237, 0.03) 0%, transparent 50%, rgba(255, 215, 0, 0.02) 100%);
    pointer-events: none;
    z-index: 0
}

.rr-how-to .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
}

.rr-how-to .section__title,
.rr-how-to .text-block {
    max-width: 820px
}

/* Steps grid */
.rr-how-to__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 8px;
    width: 100%;
    grid-gap: 16px;
    counter-reset: step-counter
}

/* Step card */
.rr-how-to__steps-card {
    background: linear-gradient(135deg, rgba(26, 20, 37, 0.95) 0%, rgba(15, 10, 31, 0.98) 100%);
    border-radius: 16px;
    color: var(--card-text);
    padding: 16px;
    width: 100%;
    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: 16px;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    border: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    counter-increment: step-counter;
    animation: rr-step-in 0.6s ease-out backwards;
    animation-delay: calc(var(--step-index, 0) * 0.15s)
}

@keyframes rr-step-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95)
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

/* Step number decoration */
.rr-how-to__steps-card::before {
    content: counter(step-counter);
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    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;
    font-size: 48px;
    font-weight: 700;
    color: rgba(255, 215, 0, 0.2);
    font-family: var(--font-2);
    z-index: 0
}

/* Hover effects */
.rr-how-to__steps-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(124, 58, 237, 0.2),
        0 0 0 2px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.3)
}

.rr-how-to__steps-card:hover::before {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
    color: rgba(255, 215, 0, 0.4)
}

/* Card content */
.rr-how-to__steps-card__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: 16px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    position: relative;
    z-index: 1
}

/* Step number text */
.rr-how-to__steps-card__num {
    color: #ffd700;
    font-size: 14px;
    font-weight: 600;
    line-height: 150%;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.rr-how-to__steps-card__num::before {
    content: 'Step ' counter(step-counter);
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
    border-radius: 20px;
    font-size: 12px
}

/* Step title */
.rr-how-to__steps-card__title {
    font-family: var(--font-2);
    font-size: 24px;
    font-weight: 600;
    line-height: 130%;
    background: linear-gradient(135deg, #ffffff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

/* Step description */
.rr-how-to__steps-card__description {
    color: var(--card-text-secondary);
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    opacity: 0.9
}

/* Step image */
.rr-how-to__steps-card__img {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    width: 100%;
    border: 1px solid rgba(255, 215, 0, 0.1);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%)
}

.rr-how-to__steps-card__img-content {
    display: block;
    height: auto;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
    filter: brightness(0.9)
}

.rr-how-to__steps-card:hover .rr-how-to__steps-card__img-content {
    transform: scale(1.05);
    filter: brightness(1)
}

/* Button in card */
.rr-how-to__steps-card .vAll-button {
    margin-top: auto;
    background: linear-gradient(135deg, #ffd700 0%, #fbbf24 100%);
    color: #0f0a1f;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden
}

.rr-how-to__steps-card .vAll-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s
}

.rr-how-to__steps-card .vAll-button:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.3)
}

.rr-how-to__steps-card .vAll-button:hover::before {
    width: 300%;
    height: 300%
}

/* Progress connector lines */
.rr-how-to__steps {
    position: relative
}

.rr-how-to__steps::after {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(16.666% - 8px);
    right: calc(16.666% - 8px);
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 215, 0, 0.3) 10%,
        rgba(124, 58, 237, 0.3) 50%,
        rgba(255, 215, 0, 0.3) 90%,
        transparent 100%
    );
    z-index: 0;
    pointer-events: none
}

/* Checkmark for completed steps */
.rr-how-to__steps-card[data-completed="true"]::after {
    content: '✓';
    position: absolute;
    top: 16px;
    left: 16px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    z-index: 2;
    animation: rr-check-pop 0.4s ease
}

@keyframes rr-check-pop {
    0% { transform: scale(0) }
    50% { transform: scale(1.2) }
    100% { transform: scale(1) }
}

/* Responsive Design */
@media (max-width: 1000px) {
    .rr-how-to__steps {
        grid-template-columns: repeat(2, 1fr)
    }
    
    .rr-how-to__steps::after {
        display: none
    }
}

@media (max-width: 768px) {
    .rr-how-to .container {
        gap: 16px
    }
    
    .rr-how-to__steps {
        gap: 24px;
        grid-template-columns: repeat(1, 1fr);
        margin-top: 0
    }
    
    .rr-how-to__steps-card {
        padding: 20px
    }
    
    .rr-how-to__steps-card::before {
        top: -10px;
        right: -10px;
        width: 60px;
        height: 60px;
        font-size: 32px
    }
    
    .rr-how-to__steps-card__num {
        font-size: 14px;
        font-weight: 400;
        line-height: 150%
    }
    
    .rr-how-to__steps-card__title {
        font-size: 20px;
        font-weight: 600;
        line-height: 140%
    }
    
    .rr-how-to__steps-card__description {
        font-size: 14px
    }
    
    .rr-how-to__steps-card .vAll-button {
        padding: 10px 20px;
        font-size: 14px
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .rr-how-to__steps-card,
    .rr-how-to__steps-card[data-completed="true"]::after {
        animation: none
    }
    
    .rr-how-to__steps-card,
    .rr-how-to__steps-card__img-content,
    .rr-how-to__steps-card .vAll-button {
        transition: none
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .rr-how-to__steps-card {
        border-width: 2px
    }
    
    .rr-how-to__steps-card__img {
        border-width: 2px
    }
}