/* v4-3.css - Royal Reels Casino Welcome Section */

.rr-welcome {
    color: var(--text-main);
    position: relative;
    overflow: hidden
}

/* Animated background decoration */
.rr-welcome::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    animation: rr-float-slow 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0
}

@keyframes rr-float-slow {
    0%, 100% { transform: translate(0, 0) scale(1) }
    50% { transform: translate(-30px, 30px) scale(1.1) }
}

.rr-welcome__content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 64px;
    row-gap: 20px;
    position: relative;
    z-index: 1
}

.rr-welcome__info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column nowrap;
    flex-flow: column nowrap;
    gap: 24px;
    animation: rr-fade-in-left 0.8s ease-out
}

@keyframes rr-fade-in-left {
    from { 
        opacity: 0;
        transform: translateX(-30px)
    }
    to { 
        opacity: 1;
        transform: translateX(0)
    }
}

/* Title styling */
.rr-welcome__info .section__title {
    background: #fdca06;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 48px;
    line-height: 120%;
    position: relative;
    padding-bottom: 16px
}

.rr-welcome__info .section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ffd700 0%, #7c3aed 100%);
    border-radius: 2px;
    animation: rr-expand 1s ease-out 0.5s backwards
}

@keyframes rr-expand {
    from { width: 0 }
    to { width: 80px }
}

/* Text content styling */
.rr-welcome__info .text-block {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 160%
}

.rr-welcome__info .text-block p {
    margin-bottom: 16px
}

.rr-welcome__info .text-block a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease
}

.rr-welcome__info .text-block a:hover {
    color: #fbbf24;
    text-decoration: underline
}

/* Button styling */
.rr-welcome__info .vAll-button_secondary {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    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;
    position: relative;
    overflow: hidden
}

.rr-welcome__info .vAll-button_secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s
}

.rr-welcome__info .vAll-button_secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4)
}

.rr-welcome__info .vAll-button_secondary:hover::before {
    width: 300%;
    height: 300%
}

/* Image container */
.rr-welcome__img {
    -ms-flex-negative: 0;
    border-radius: 24px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    width: 466px;
    animation: rr-fade-in-right 0.8s ease-out 0.2s backwards;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.1)
}

@keyframes rr-fade-in-right {
    from { 
        opacity: 0;
        transform: translateX(30px)
    }
    to { 
        opacity: 1;
        transform: translateX(0)
    }
}

.rr-welcome__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none
}

.rr-welcome__img:hover::after {
    opacity: 1
}

.rr-welcome__img-content {
    display: block;
    height: auto;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease
}

.rr-welcome__img:hover .rr-welcome__img-content {
    transform: scale(1.05)
}

/* Video play button */
.rr-welcome__img-btn {
    background: linear-gradient(135deg, #ffd700 0%, #fbbf24 100%);
    border-radius: 50%;
    color: #0f0a1f;
    font-family: var(--font-2);
    height: 80px;
    width: 80px;
    left: 50%;
    padding: 20px;
    position: absolute;
    text-align: center;
    text-decoration: none;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    cursor: pointer;
    z-index: 2
}

/* Pulsing animation for play button */
.rr-welcome__img-btn::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.5);
    animation: rr-pulse-ring 2s infinite
}

@keyframes rr-pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1
    }
    50% {
        transform: scale(1.2);
        opacity: 0
    }
    100% {
        transform: scale(1.2);
        opacity: 0
    }
}

.rr-welcome__img-btn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5)
}

.rr-welcome__img-btn:disabled {
    background: var(--button-disable-bg);
    color: var(--button-disable-color);
    pointer-events: none;
    opacity: 0.5
}

.rr-welcome__img-btn svg {
    height: 100%;
    width: 100%;
    display: block
}

/* Iframe styles */
.rr-welcome__img .latter-iframe {
    aspect-ratio: 47/35;
    border: none;
    display: block;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
    background: #0f0a1f
}

.rr-welcome__img.active-iframe .rr-welcome__img-btn,
.rr-welcome__img.active-iframe .rr-welcome__img-content {
    display: none
}

.rr-welcome__img.active-iframe::after {
    display: none
}

/* Responsive Design */
@media (max-width: 1200px) {
    .rr-welcome__content {
        gap: 32px
    }
    
    .rr-welcome__img {
        width: 400px
    }
    
    .rr-welcome__info .section__title {
        font-size: 42px
    }
}

@media (max-width: 1024px) {
    .rr-welcome__content {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 24px;
        padding-bottom: 16px;
        position: relative
    }
    
    .rr-welcome__info {
        display: contents;
        gap: 16px
    }
    
    .rr-welcome__info .section__title {
        -webkit-box-ordinal-group: 0;
        -ms-flex-order: -1;
        order: -1
    }
    
    .rr-welcome__img {
        width: 100%;
        max-width: 600px;
        margin: 0 auto
    }
}

@media (max-width: 768px) {
    .rr-welcome__content {
        gap: 16px
    }
    
    .rr-welcome__info .section__title {
        font-size: 32px
    }
    
    .rr-welcome__info .text-block {
        font-size: 16px
    }
    
    .rr-welcome__img-btn {
        height: 60px;
        width: 60px;
        padding: 15px
    }
    
    .rr-welcome__img .latter-iframe {
        aspect-ratio: unset;
        min-height: calc(100vh - var(--header-height))
    }
}

/* Hover effects for non-touch devices */
@media not all and (pointer: coarse) {
    .rr-welcome__img-btn:hover {
        background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
        color: var(--button-hover-color, #0f0a1f)
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .rr-welcome::before,
    .rr-welcome__info,
    .rr-welcome__img,
    .rr-welcome__img-btn::before {
        animation: none
    }
    
    .rr-welcome__info .section__title::after {
        animation: none;
        width: 80px
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .rr-welcome__img {
        border-width: 3px
    }
    
    .rr-welcome__img-btn {
        border: 2px solid #ffd700
    }
}