/**
 * Slots Juice Banner 1 - Styles
 * Version: 1.0.0
 * Optimized for speed and Google requirements
 */

/* Critical CSS - Above the fold content */
.sjb1-banner-container {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff8c42 100%);
    border-radius: 24px;
    padding: 36px 80px;
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 25px 50px rgba(255, 107, 53, 0.2);
    position: relative;
    overflow: hidden;
    animation: sjb1-fadeInUp 0.8s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    will-change: transform;
    contain: layout style paint;
}

/* Performance optimizations */
.sjb1-banner-container * {
    will-change: auto;
}

.sjb1-banner-container *:hover,
.sjb1-banner-container *:focus,
.sjb1-banner-container *:active {
    will-change: transform, opacity, background-color;
}

/* Background decorative elements - Optimized for performance */
.sjb1-banner-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: sjb1-float 6s ease-in-out infinite;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.sjb1-banner-container::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: sjb1-float 8s ease-in-out infinite reverse;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Animations - Optimized for performance */
@keyframes sjb1-fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes sjb1-float {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -20px, 0) scale(1.05);
    }
}

@keyframes sjb1-slideInLeft {
    from {
        opacity: 0;
        transform: translate3d(-30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes sjb1-slideInRight {
    from {
        opacity: 0;
        transform: translate3d(30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .sjb1-banner-container,
    .sjb1-banner-container::before,
    .sjb1-banner-container::after,
    .sjb1-exclusive-tag,
    .sjb1-main-title,
    .sjb1-description,
    .sjb1-cta-button,
    .sjb1-slot-machine,
    .sjb1-slot-reel,
    .sjb1-sparkle {
        animation: none !important;
        transition: none !important;
    }
}

/* Content sections */
.sjb1-content-section {
    flex: 1;
    color: white;
    z-index: 2;
    position: relative;
}

.sjb1-exclusive-tag {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    animation: sjb1-slideInLeft 0.8s ease-out 0.2s both;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateZ(0);
}

.sjb1-exclusive-tag::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: sjb1-shine 3s ease-in-out infinite;
    will-change: transform;
}

.sjb1-main-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    animation: sjb1-slideInLeft 0.8s ease-out 0.4s both;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    color: white;
}

.sjb1-description {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 0.95;
    max-width: 500px;
    animation: sjb1-slideInLeft 0.8s ease-out 0.6s both;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    color: white;
}

.sjb1-cta-button {
    background-color: #2d3748;
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: sjb1-slideInLeft 0.8s ease-out 0.8s both;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.sjb1-cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    will-change: width, height;
}

.sjb1-cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.sjb1-cta-button:hover {
    background-color: #1a202c;
    transform: translate3d(0, -2px, 0) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.sjb1-cta-button::after {
    content: '→';
    font-size: 18px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.sjb1-cta-button:hover::after {
    transform: translateX(5px);
}

.sjb1-cta-button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Slot Machine Styles */
.sjb1-slot-machine {
    position: relative;
    z-index: 2;
    animation: sjb1-slideInRight 0.8s ease-out 0.6s both;
}

.sjb1-slot-machine-device {
    background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.sjb1-slot-machine-device:hover {
    transform: translate3d(0, -5px, 0);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.sjb1-slot-screen {
    background: linear-gradient(180deg, #0f1419 0%, #1a202c 100%);
    border-radius: 10px;
    padding: 21px 14px;
    display: flex;
    gap: 7px;
    justify-content: center;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.sjb1-slot-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: sjb1-screen-shine 4s ease-in-out infinite;
    will-change: transform;
}

.sjb1-slot-reel {
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    width: 56px;
    height: 70px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
    color: #ff6b35;
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.05),
        0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: sjb1-reel-bounce 0.5s ease-out;
    animation-delay: calc(0.9s + var(--reel-delay));
    animation-fill-mode: both;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.sjb1-slot-reel:nth-child(1) {
    --reel-delay: 0s;
}

.sjb1-slot-reel:nth-child(2) {
    --reel-delay: 0.1s;
}

.sjb1-slot-reel:nth-child(3) {
    --reel-delay: 0.2s;
}

.sjb1-slot-reel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: sjb1-reel-shine 3s ease-in-out infinite;
    will-change: transform;
}

.sjb1-slot-base {
    background: linear-gradient(180deg, #4a5568 0%, #2d3748 100%);
    height: 21px;
    border-radius: 0 0 16px 16px;
    margin-top: 7px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.sjb1-slot-handle {
    position: absolute;
    right: -28px;
    top: -56px;
    width: 21px;
    height: 56px;
    background: linear-gradient(180deg, #4a5568 0%, #2d3748 100%);
    border-radius: 11px;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transform: translateZ(0);
    outline: none;
    border: none;
}

.sjb1-slot-handle:hover {
    transform: rotate(20deg);
}

.sjb1-slot-handle:focus {
    outline: 2px solid rgba(255, 107, 53, 0.5);
    outline-offset: 2px;
}

.sjb1-slot-handle::after {
    content: '';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: radial-gradient(circle at 30% 30%, #ff8c42, #ff6b35);
    border-radius: 50%;
    box-shadow: 
        0 4px 15px rgba(255, 107, 53, 0.4),
        inset -2px -2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sjb1-slot-handle:hover::after {
    transform: translateX(-50%) scale(1.1);
}

/* Sparkle Effects */
.sjb1-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: sjb1-sparkle 3s ease-in-out infinite;
}

.sjb1-sparkle-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.sjb1-sparkle-2 {
    top: 30%;
    right: 25%;
    animation-delay: 0.5s;
}

.sjb1-sparkle-3 {
    bottom: 20%;
    left: 30%;
    animation-delay: 1s;
}

.sjb1-sparkle-4 {
    top: 50%;
    right: 15%;
    animation-delay: 1.5s;
}

.sjb1-sparkle-5 {
    bottom: 35%;
    right: 40%;
    animation-delay: 2s;
}

/* Animation keyframes */
@keyframes sjb1-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes sjb1-screen-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes sjb1-reel-bounce {
    0% {
        transform: translate3d(0, -100px, 0);
        opacity: 0;
    }
    60% {
        transform: translate3d(0, 10px, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@keyframes sjb1-reel-shine {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }
    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

@keyframes sjb1-sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes sjb1-spin {
    0% { 
        transform: rotateX(0deg); 
    }
    100% { 
        transform: rotateX(360deg); 
    }
}

@keyframes sjb1-pulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.2); 
    }
}

/* Responsive Design - Goldilocks Zone Approach */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .sjb1-banner-container {
        padding: 40px 90px;
    }
    
    .sjb1-main-title {
        font-size: clamp(36px, 3.5vw, 44px);
    }
    
    .sjb1-description {
        font-size: clamp(16px, 1.5vw, 18px);
    }
}

/* Standard Desktop & Small Desktop (769px - 1199px) */
@media (min-width: 769px) and (max-width: 1199px) {
    .sjb1-banner-container {
        padding: 32px 50px;
        max-width: 95%;
    }
    
    .sjb1-main-title {
        font-size: clamp(28px, 4vw, 38px);
    }
    
    .sjb1-description {
        font-size: clamp(14px, 2.2vw, 16px);
        max-width: 450px;
    }
    
    .sjb1-slot-reel {
        width: clamp(48px, 5.5vw, 56px);
        height: clamp(60px, 7vw, 70px);
        font-size: clamp(26px, 3.5vw, 34px);
    }
    
    .sjb1-cta-button {
        font-size: clamp(14px, 2vw, 16px);
        padding: clamp(10px, 1.5vw, 12px) clamp(20px, 3vw, 28px);
    }
}

/* Tablet Portrait & Large Mobile (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .sjb1-banner-container {
        flex-direction: column;
        padding: 24px 15px;
        text-align: center;
        margin: 0;
        border-radius: 12px;
        gap: 20px;
    }

    .sjb1-main-title {
        font-size: clamp(22px, 5.5vw, 32px);
        margin-bottom: 8px;
    }

    .sjb1-description {
        font-size: clamp(14px, 3.5vw, 16px);
        margin: 0 auto 16px;
        padding: 0 10px;
        max-width: 400px;
    }

    .sjb1-cta-button {
        padding: clamp(8px, 2vw, 12px) clamp(20px, 5vw, 32px);
        font-size: clamp(14px, 3.5vw, 16px);
    }

    .sjb1-slot-machine {
        margin-top: 16px;
    }

    .sjb1-slot-reel {
        width: clamp(38px, 8vw, 48px);
        height: clamp(48px, 10vw, 60px);
        font-size: clamp(22px, 5vw, 28px);
    }
    
    .sjb1-exclusive-tag {
        font-size: clamp(11px, 3vw, 13px);
        padding: 4px 14px;
    }
}

/* Mobile (320px - 480px) */
@media (max-width: 480px) {
    .sjb1-banner-container {
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        margin: 0;
        border-radius: 0;
        max-width: 100%;
        box-shadow: none;
        gap: 16px;
    }

    .sjb1-main-title {
        font-size: clamp(18px, 6vw, 24px);
        margin-bottom: 6px;
        padding: 0 15px;
    }

    .sjb1-description {
        font-size: clamp(12px, 4vw, 14px);
        margin: 0 auto 12px;
        padding: 0 15px;
        line-height: 1.4;
    }

    .sjb1-cta-button {
        padding: 8px 20px;
        font-size: clamp(12px, 4vw, 14px);
        margin: 0 15px;
    }

    .sjb1-slot-machine {
        margin-top: 12px;
    }
    
    .sjb1-slot-machine-device {
        padding: 8px;
        transform: scale(0.9);
    }
    
    .sjb1-slot-screen {
        padding: 12px 8px;
        gap: 4px;
    }

    .sjb1-slot-reel {
        width: clamp(30px, 8vw, 36px);
        height: clamp(38px, 10vw, 45px);
        font-size: clamp(18px, 5vw, 22px);
    }
    
    .sjb1-exclusive-tag {
        font-size: clamp(10px, 3vw, 11px);
        padding: 3px 10px;
        margin: 0 15px 8px;
    }
    
    /* Optimize slot handle for mobile */
    .sjb1-slot-handle {
        right: -20px;
        top: -45px;
        width: 16px;
        height: 45px;
    }
    
    .sjb1-slot-handle::after {
        width: 20px;
        height: 20px;
        top: -10px;
    }
}

/* Extra Small Mobile (below 320px) */
@media (max-width: 319px) {
    .sjb1-banner-container {
        padding: 15px 0;
    }
    
    .sjb1-main-title {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .sjb1-description {
        font-size: 11px;
        padding: 0 10px;
    }
    
    .sjb1-cta-button {
        font-size: 11px;
        padding: 6px 16px;
        margin: 0 10px;
    }
    
    .sjb1-slot-machine-device {
        transform: scale(0.8);
    }
    
    .sjb1-exclusive-tag {
        font-size: 9px;
        padding: 2px 8px;
        margin: 0 10px 6px;
    }
}

/* High DPI/Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .sjb1-slot-reel,
    .sjb1-cta-button,
    .sjb1-exclusive-tag {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .sjb1-banner-container {
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .sjb1-banner-container {
        flex-direction: row;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .sjb1-main-title {
        font-size: clamp(16px, 4vw, 20px);
        margin-bottom: 4px;
    }
    
    .sjb1-description {
        font-size: clamp(11px, 2.5vw, 13px);
        margin-bottom: 8px;
    }
    
    .sjb1-slot-machine {
        margin-top: 0;
    }
    
    .sjb1-slot-machine-device {
        transform: scale(0.8);
    }
}

/* Performance optimization for older browsers */
.sjb1-banner-container,
.sjb1-slot-machine-device,
.sjb1-slot-reel,
.sjb1-cta-button,
.sjb1-exclusive-tag {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
}

/* Print styles */
@media print {
    .sjb1-banner-container {
        box-shadow: none;
        background: #f0f0f0 !important;
        color: #000 !important;
    }
    
    .sjb1-sparkle,
    .sjb1-slot-machine {
        display: none;
    }
    
    .sjb1-main-title,
    .sjb1-description,
    .sjb1-exclusive-tag {
        color: #000 !important;
        text-shadow: none !important;
    }
}