/**
 * SlotsJuice Pop Banner - Stylesheet
 * Version: 1.0.0
 * Description: Advanced promotional banner with responsive design and animations
 * Goldilocks Zone Responsive Scaling System
 */

/* ========================================
   CSS VARIABLES - SLOTSJUICE BRAND
======================================== */
:root {
    --sjp-orange: #FF6B35;
    --sjp-orange-dark: #E55A2B;
    --sjp-orange-light: #FF8A65;
    --sjp-cream: #FFF8E1;
    --sjp-green: #2E7D32;
    --sjp-white: #FFFFFF;
    --sjp-dark: #1A1A1A;
    --sjp-gradient: linear-gradient(135deg, #FF6B35, #E55A2B);
    --sjp-gradient-hero: linear-gradient(135deg, #FF6B35 0%, #E55A2B 50%, #FF8A65 100%);
    --sjp-radius: 0.75rem;
    --sjp-radius-large: 1.25rem;
}

/* ========================================
   BANNER RESET & BASE STYLES
======================================== */
.sjp-promo-banner * {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   MAIN BANNER CONTAINER
======================================== */
.sjp-promo-banner {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    max-width: 75rem;
    width: calc(100% - 2.5rem);
    background: linear-gradient(135deg, #FF6B35 0%, #E55A2B 30%, #FF8A65 70%, #FF6B35 100%);
    backdrop-filter: blur(0.9375rem);
    box-shadow: 
        0 0.75rem 2.5rem rgba(255, 107, 53, 0.25),
        0 0.25rem 1.25rem rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--sjp-radius-large);
    animation: sjpBannerSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
    overflow: hidden;
}

/* Position Variants */
.sjp-promo-banner.sjp-position-top {
    top: 1.25rem;
    bottom: auto;
    animation: sjpBannerSlideDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sjp-promo-banner.sjp-position-inline {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 1.25rem auto;
    animation: sjpBannerFadeIn 0.6s ease;
}

/* Entrance Animations */
@keyframes sjpBannerSlideUp {
    0% {
        transform: translateX(-50%) translateY(150%);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes sjpBannerSlideDown {
    0% {
        transform: translateX(-50%) translateY(-150%);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes sjpBannerFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Banner Container */
.sjp-banner-container {
    padding: 1.25rem 1.5625rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5625rem;
    position: relative;
    min-height: 4.375rem;
}

/* Enhanced Border Pattern */
.sjp-promo-banner::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: calc(var(--sjp-radius-large) - 3px);
    pointer-events: none;
}

/* Static Background Pattern */
.sjp-banner-container::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><circle cx="30" cy="15" r="2" fill="rgba(255,255,255,0.08)"/><circle cx="45" cy="35" r="1.5" fill="rgba(255,255,255,0.06)"/><circle cx="15" cy="45" r="1" fill="rgba(255,255,255,0.04)"/></svg>') repeat;
    opacity: 0.5;
    pointer-events: none;
}

/* ========================================
   LEFT SECTION - CHECK BADGE & TITLE
======================================== */
.sjp-banner-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
}

/* Check Badge */
.sjp-check-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 225, 0.95) 100%);
    color: var(--sjp-orange-dark);
    padding: 0.875rem 1.375rem;
    border-radius: var(--sjp-radius);
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    border: 2px solid rgba(255, 107, 53, 0.25);
    box-shadow: 
        0 0.375rem 1.25rem rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    transition: all 0.3s ease;
}

.sjp-check-badge:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 
        0 0.5rem 1.5625rem rgba(255, 107, 53, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: var(--sjp-orange);
}

.sjp-check-badge::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    opacity: 0.8;
}

/* Promo Title */
.sjp-promo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sjp-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.01875rem;
    position: relative;
    margin: 0;
    line-height: 1.2;
}

.sjp-promo-title::after {
    content: "🏆";
    margin-left: 0.375rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ========================================
   CENTER SECTION - CASINO LOGO & BONUS
======================================== */
.sjp-banner-center {
    display: flex;
    align-items: center;
    gap: 0.9375rem;
    flex: 1;
    justify-content: center;
}

/* Casino Logo */
.sjp-casino-logo {
    width: 5.625rem;
    height: 3.4375rem;
    background: linear-gradient(135deg, var(--sjp-white) 0%, var(--sjp-cream) 100%);
    border-radius: var(--sjp-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.6875rem;
    color: var(--sjp-orange);
    text-align: center;
    line-height: 1.1;
    box-shadow: 
        0 0.375rem 1.25rem rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.4);
    position: relative;
}

.sjp-casino-logo::before {
    content: "⭐";
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 0.625rem;
    background: var(--sjp-orange);
    color: white;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* Bonus Info Container */
.sjp-bonus-info {
    text-align: center;
}

/* Bonus Amount */
.sjp-bonus-amount {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--sjp-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    margin: 0 0 0.125rem 0;
    position: relative;
    line-height: 1.2;
}

.sjp-bonus-amount::before {
    content: "💰";
    margin-right: 0.3125rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Bonus Details */
.sjp-bonus-details {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    margin: 0;
    line-height: 1.2;
}

.sjp-bonus-details::before {
    content: "🎰";
    margin-right: 0.25rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* ========================================
   RIGHT SECTION - PLAY NOW BUTTON
======================================== */
.sjp-banner-right {
    flex: 0 0 auto;
}

/* Play Now Button */
.sjp-play-now-btn {
    background: linear-gradient(135deg, var(--sjp-white) 0%, var(--sjp-cream) 100%);
    color: var(--sjp-orange-dark);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--sjp-radius);
    font-weight: 800;
    font-size: 0.9375rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.0375rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0.5rem 1.5625rem rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 107, 53, 0.3);
    min-width: 8.75rem;
}

.sjp-play-now-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--sjp-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sjp-play-now-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0.5rem 1.5625rem rgba(255, 107, 53, 0.3);
    border-color: var(--sjp-orange);
}

.sjp-play-now-btn:hover::before {
    opacity: 1;
}

.sjp-play-now-btn:hover .sjp-btn-text {
    color: var(--sjp-white);
}

.sjp-btn-text {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.sjp-play-now-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* ========================================
   CLOSE BUTTON
======================================== */
.sjp-close-banner {
    position: absolute;
    top: 0.625rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    cursor: pointer;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.sjp-close-banner:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--sjp-white);
    transform: scale(1.1);
}

/* ========================================
   GOLDILOCKS ZONE RESPONSIVE DESIGN
======================================== */

/* TABLET RESPONSIVE - Medium Screens */
@media (max-width: 1199px) {
    .sjp-promo-banner {
        max-width: 56.25rem;
        width: calc(100% - 1.875rem);
        bottom: 0.9375rem;
    }

    .sjp-banner-container {
        padding: 1.125rem 1.25rem;
        gap: 1.25rem;
        min-height: 4.0625rem;
    }
    
    .sjp-promo-title {
        font-size: 1.125rem;
    }
    
    .sjp-bonus-amount {
        font-size: 1rem;
    }
    
    .sjp-play-now-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .sjp-casino-logo {
        width: 5rem;
        height: 3.125rem;
    }
}

/* LAPTOP OPTIMIZATION - Critical for laptop screens */
@media (max-width: 1023px) {
    .sjp-promo-banner {
        max-width: 50rem;
        width: calc(100% - 1.5rem);
    }

    .sjp-banner-container {
        padding: 1rem 1.125rem;
        gap: 1.125rem;
    }

    .sjp-promo-title {
        font-size: 1.0625rem;
    }

    .sjp-check-badge {
        padding: 0.75rem 1.125rem;
        font-size: 0.8125rem;
    }

    .sjp-casino-logo {
        width: 4.5rem;
        height: 2.875rem;
        font-size: 0.625rem;
    }

    .sjp-bonus-amount {
        font-size: 0.9375rem;
    }

    .sjp-bonus-details {
        font-size: 0.75rem;
    }

    .sjp-play-now-btn {
        padding: 0.6875rem 1.375rem;
        font-size: 0.8125rem;
        min-width: 7.5rem;
    }
}

/* COMPACT MOBILE DESIGN - Goldilocks Zone Mobile */
@media (max-width: 767px) {
    /* Hide desktop decorative elements */
    .sjp-promo-title::after,
    .sjp-bonus-amount::before,
    .sjp-bonus-details::before,
    .sjp-casino-logo::before {
        display: none;
    }

    .sjp-promo-banner {
        max-width: none;
        width: calc(100% - 1rem);
        bottom: 0.5rem;
        border-width: 0;
        border-radius: 0.75rem;
        background: linear-gradient(135deg, #FF6B35 0%, #E55A2B 100%);
        box-shadow: 
            0 0.5rem 1.25rem rgba(255, 107, 53, 0.25),
            0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
        transform: translateX(-50%) translateY(0);
    }

    .sjp-banner-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.7rem;
        padding: 1.05rem 1rem;
        text-align: left;
        min-height: auto;
        position: relative;
    }

    .sjp-banner-left {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex: 0 0 auto;
    }

    .sjp-banner-center {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex: 1;
        justify-content: center;
    }

    .sjp-banner-right {
        flex: 0 0 auto;
    }

    .sjp-check-badge {
        background: rgba(255, 255, 255, 0.9);
        color: var(--sjp-orange-dark);
        font-size: 0.7875rem;
        font-weight: 700;
        padding: 0.35rem 0.7rem;
        border-radius: 1.05rem;
        text-transform: uppercase;
        letter-spacing: 0.0263rem;
        display: inline-block;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border: none;
        white-space: nowrap;
    }

    .sjp-promo-title {
        font-size: 0.9625rem;
        font-weight: 600;
        color: var(--sjp-white);
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
        margin: 0;
        line-height: 1.2;
        white-space: nowrap;
    }

    .sjp-casino-logo {
        width: 2.8rem;
        height: 2.8rem;
        background: var(--sjp-white);
        border-radius: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.525rem;
        font-weight: 800;
        color: var(--sjp-orange);
        text-align: center;
        line-height: 1;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
        flex-shrink: 0;
    }

    .sjp-bonus-info {
        flex: 1;
        text-align: center;
    }

    .sjp-bonus-amount {
        font-size: 1.05rem;
        font-weight: 800;
        color: var(--sjp-white);
        margin-bottom: 0.125rem;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        white-space: nowrap;
    }

    .sjp-bonus-details {
        font-size: 0.7875rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        white-space: nowrap;
    }

    .sjp-play-now-btn {
        background: var(--sjp-white);
        color: var(--sjp-orange-dark);
        padding: 0.7rem 1.4rem;
        border: none;
        border-radius: 0.7rem;
        font-size: 0.9625rem;
        font-weight: 700;
        font-family: 'Inter', sans-serif;
        text-transform: uppercase;
        letter-spacing: 0.0263rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: all 0.2s ease;
        cursor: pointer;
        white-space: nowrap;
        min-width: 6.125rem;
    }

    .sjp-play-now-btn:active {
        transform: translateY(1px);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }

    .sjp-close-banner {
        position: absolute;
        top: 0.375rem;
        right: 0.5rem;
        width: 1.25rem;
        height: 1.25rem;
        background: rgba(0, 0, 0, 0.2);
        border: none;
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.75rem;
        cursor: pointer;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }
    
    .sjp-close-banner:hover {
        background: rgba(0, 0, 0, 0.3);
        color: var(--sjp-white);
    }
}

/* SMALL MOBILE COMPACT - Ultra-compact for very small screens */
@media (max-width: 479px) {
    .sjp-promo-banner {
        width: calc(100% - 0.75rem);
        bottom: 0.375rem;
        border-radius: 0.625rem;
        transform: translateX(-50%) translateY(0);
    }

    .sjp-banner-container {
        gap: 0.375rem;
        padding: 0.625rem 0.75rem;
    }

    .sjp-casino-logo {
        width: 1.75rem;
        height: 1.75rem;
        border-radius: 0.3125rem;
        font-size: 0.3125rem;
    }

    .sjp-check-badge {
        font-size: 0.5rem;
        padding: 0.1875rem 0.375rem;
    }

    .sjp-promo-title {
        font-size: 0.625rem;
    }

    .sjp-bonus-amount {
        font-size: 0.6875rem;
    }

    .sjp-bonus-details {
        font-size: 0.5rem;
    }

    .sjp-play-now-btn {
        font-size: 0.625rem;
        padding: 0.375rem 0.75rem;
        border-radius: 0.375rem;
        min-width: 3.75rem;
    }
}

/* ========================================
   BANNER HIDE ANIMATION
======================================== */
.sjp-promo-banner.sjp-hidden {
    transform: translateX(-50%) translateY(150%);
    opacity: 0;
    transition: all 0.4s ease;
}

.sjp-promo-banner.sjp-position-top.sjp-hidden {
    transform: translateX(-50%) translateY(-150%);
}

.sjp-promo-banner.sjp-position-inline.sjp-hidden {
    transform: scale(0.9);
    opacity: 0;
}

/* Ensure proper transform origin for fixed banners */
.sjp-promo-banner:not(.sjp-position-inline) {
    transform-origin: center bottom;
}

.sjp-promo-banner.sjp-position-top {
    transform-origin: center top;
}

/* ========================================
   ELEMENTOR EDITOR COMPATIBILITY
======================================== */
.elementor-editor .sjp-promo-banner {
    position: relative;
    left: auto;
    bottom: auto;
    top: auto;
    transform: none;
    margin: 1rem auto;
    z-index: auto;
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
======================================== */
.sjp-promo-banner,
.sjp-check-badge,
.sjp-play-now-btn {
    will-change: transform;
}

/* GPU Acceleration for smooth animations */
.sjp-promo-banner * {
    transform: translateZ(0);
}
