/* v4.css - Royal Reels Casino Hero & Author Components */

/* Author Component Styles */
.rr-author {
    color: var(--heroscreen-main-color);
    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;
    position: relative
}

.rr-author__title {
    font-family: var(--font-2);
    font-size: 24px;
    font-weight: 600;
    line-height: 130%;
    background: linear-gradient(135deg, #ffd700 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.5px
}

.rr-author__card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 16px;
    position: relative;
    padding: 12px;
    background: rgba(26, 20, 37, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease
}

.rr-author__card:hover {
    background: rgba(26, 20, 37, 0.6);
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateX(4px)
}

.rr-author__card-avatar {
    -ms-flex-negative: 0;
    border-radius: 50%;
    flex-shrink: 0;
    height: 56px;
    overflow: hidden;
    width: 56px;
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(#1a1425, #1a1425) padding-box,
                linear-gradient(135deg, #ffd700, #7c3aed) border-box;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2)
}

.rr-author__card-avatar::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #7c3aed);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease
}

.rr-author__card:hover .rr-author__card-avatar::after {
    opacity: 0.5;
    animation: rr-pulse 2s infinite
}

@keyframes rr-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5 }
    50% { transform: scale(1.1); opacity: 0.2 }
}

.rr-author__card-avatar__img {
    display: block;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
    border-radius: 50%
}

.rr-author__card-info__name {
    font-family: var(--font-2);
    font-size: 20px;
    font-weight: 600;
    line-height: 27px;
    margin-bottom: 4px;
    color: #ffffff
}

.rr-author__card-info__description {
    color: var(--heroscreen-secondary-color);
    font-size: 16px;
    line-height: 22px;
    opacity: 0.9
}

.rr-author__card-link {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    cursor: pointer
}

/* Hero Screen Styles */
.rr-heroscreen {
    background: linear-gradient(180deg, rgba(15, 10, 31, 0.98) 0%, rgba(26, 20, 37, 0.95) 50%, rgba(15, 10, 31, 0.98) 100%);
    color: var(--heroscreen-main-color);
    overflow: hidden;
    position: relative
}

/* Animated background pattern */
.rr-heroscreen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    animation: rr-float 20s ease-in-out infinite;
    pointer-events: none
}

@keyframes rr-float {
    0%, 100% { transform: rotate(0deg) scale(1) }
    50% { transform: rotate(180deg) scale(1.1) }
}

.rr-heroscreen__info {
    display: grid;
    gap: 64px;
    grid-template-columns: 466px 1fr;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 48px 0;
    position: relative;
    z-index: 1
}

.rr-heroscreen__info-wrapper {
    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;
    animation: rr-slide-up 0.8s ease-out
}

@keyframes rr-slide-up {
    from { opacity: 0; transform: translateY(30px) }
    to { opacity: 1; transform: translateY(0) }
}

.rr-heroscreen__info-title {
    font-family: var(--font-2);
    font-size: 48px;
    font-weight: 600;
    line-height: 120%;
    background: linear-gradient(135deg, #ffffff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
    letter-spacing: -0.5px
}

.rr-heroscreen__info-bonus {
    position: relative;
    width: 100%;
    animation: rr-fade-scale 1s ease-out 0.3s backwards
}

@keyframes rr-fade-scale {
    from { opacity: 0; transform: scale(0.9) }
    to { opacity: 1; transform: scale(1) }
}

.rr-heroscreen__info-bonus__img {
    border-radius: 32px;
    height: auto;
    -o-object-fit: contain;
    object-fit: contain;
    width: 100%;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.2),
                0 0 80px rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: transform 0.3s ease
}

.rr-heroscreen__info-bonus__img:hover {
    transform: scale(1.02)
}

.rr-heroscreen__info .text-block {
    color: var(--heroscreen-secondary-color);
    font-size: 18px;
    line-height: 160%
}

.rr-heroscreen__info .text-block a {
    color: var(--heroscreen-links-color);
    text-decoration: none;
    position: relative;
    font-weight: 600;
    transition: color 0.3s ease
}

.rr-heroscreen__info .text-block a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffd700, #7c3aed);
    transition: width 0.3s ease
}

.rr-heroscreen__info .text-block a:hover {
    color: #fbbf24
}

.rr-heroscreen__info .text-block a:hover::after {
    width: 100%
}

.rr-heroscreen__buttons {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
    width: 100%
}

.rr-heroscreen__link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-family: var(--font-2);
    padding: 12px 24px;
    white-space: nowrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    gap: 8px;
    line-height: 150%;
    border-radius: 12px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px
}

/* Primary button style */
.rr-heroscreen__link:first-child {
    background: linear-gradient(135deg, #ffd700 0%, #fbbf24 100%);
    color: #0f0a1f;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3)
}

.rr-heroscreen__link:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 215, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.4)
}

/* Secondary button style */
.rr-heroscreen__link:last-child {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 215, 0, 0.5);
    backdrop-filter: blur(10px)
}

.rr-heroscreen__link:last-child:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
    transform: translateY(-2px)
}

/* Button shine effect */
.rr-heroscreen__link::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s
}

.rr-heroscreen__link:hover::before {
    transform: rotate(45deg) translateX(100%)
}

.rr-heroscreen__link svg {
    height: 24px;
    width: 24px;
    flex-shrink: 0
}

.rr-heroscreen .rr-rating {
    color: var(--heroscreen-main-color)
}

.rr-heroscreen .rr-rating__title {
    display: none
}

/* Media Queries */
@media (max-width: 1200px) {
    .rr-heroscreen__info {
        gap: 32px;
        grid-template-columns: 400px 1fr
    }
}

@media (max-width: 1024px) {
    .rr-heroscreen__info {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        padding: 16px 0;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-flow: column nowrap;
        flex-flow: column nowrap;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        gap: 24px
    }

    .rr-heroscreen__info-wrapper {
        display: contents
    }

    .rr-heroscreen__info-title {
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
        order: 2
    }

    .rr-heroscreen__info-bonus {
        display: contents
    }

    .rr-heroscreen__info-bonus .rr-bonus {
        bottom: 0;
        position: relative;
        -webkit-box-ordinal-group: 4;
        -ms-flex-order: 3;
        order: 3
    }

    .rr-heroscreen__info-bonus__img {
        -webkit-box-ordinal-group: 8;
        -ms-flex-order: 7;
        order: 7
    }

    .rr-heroscreen__info .rr-author {
        -webkit-box-ordinal-group: 9;
        -ms-flex-order: 8;
        order: 8
    }

    .rr-heroscreen__info .text-block {
        -webkit-box-ordinal-group: 5;
        -ms-flex-order: 4;
        order: 4
    }

    .rr-heroscreen__buttons {
        -webkit-box-ordinal-group: 7;
        -ms-flex-order: 6;
        order: 6
    }

    .rr-heroscreen .rr-rating {
        -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
        order: 1
    }

    .rr-heroscreen .rr-calculator {
        -webkit-box-ordinal-group: 6;
        -ms-flex-order: 5;
        order: 5
    }
}

@media (max-width: 768px) {
    .rr-author__title {
        font-size: 20px;
        font-weight: 600;
        line-height: 140%
    }

    .rr-author__card {
        padding: 8px
    }

    .rr-author__card-avatar {
        height: 48px;
        width: 48px
    }

    .rr-author__card-info__name {
        font-size: 16px;
        font-weight: 600;
        line-height: 150%
    }

    .rr-author__card-info__description {
        font-size: 14px;
        font-weight: 400;
        line-height: 19px
    }

    .rr-heroscreen__info-title {
        font-size: 36px;
        line-height: 50px
    }

    .rr-heroscreen__buttons {
        grid-template-columns: 1fr
    }

    .rr-heroscreen__link {
        padding: 10px 20px;
        font-size: 14px
    }

    .rr-heroscreen__info .text-block {
        font-size: 16px
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .rr-heroscreen::before,
    .rr-author__card-avatar::after {
        animation: none
    }
    
    .rr-heroscreen__info-wrapper,
    .rr-heroscreen__info-bonus {
        animation: none
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .rr-author__card {
        border-width: 2px
    }
    
    .rr-heroscreen__link {
        border-width: 3px
    }
}