/**
 * SlotsJuice Hero Widget - Frontend Styles
 * 
 * @package SlotsJuiceHead
 * @version 1.0.0
 */

/* ============================================
   CSS VARIABLES & ROOT SETTINGS
   ============================================ */
:root {
    --slotsjuicehead-juice-orange: #FF6B35;
    --slotsjuicehead-juice-orange-dark: #E55A2B;
    --slotsjuicehead-juice-orange-light: #FF8A65;
    --slotsjuicehead-juice-cream: #FFF8E1;
}

/* ============================================
   WIDGET WRAPPER - DIAGONAL SPLIT HERO
   ============================================ */
.slotsjuicehead-hero-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 380px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    border-radius: 0 0 30px 30px;
}

/* Full-width support for 32" displays */
.slotsjuicehead-full-width {
    width: 100% !important;
    max-width: 100% !important;
}

/* Mobile full-width edge-to-edge layout using calc(-50vw + 50%) */
@media (max-width: 767px) {
    .slotsjuicehead-mobile-fullwidth {
        width: 100vw !important;
        max-width: none !important;
        margin-left: calc(-50vw + 50%) !important;
        position: relative;
    }
    
    /* Elementor container override for mobile */
    .elementor-element .slotsjuicehead-mobile-fullwidth {
        width: 100vw !important;
        max-width: none !important;
        margin-left: calc(-50vw + 50%) !important;
    }
}

/* ============================================
   DIAGONAL BACKGROUND SPLIT
   ============================================ */
.slotsjuicehead-diagonal-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(165deg, 
        var(--slotsjuicehead-juice-orange) 0%, 
        var(--slotsjuicehead-juice-orange) 55%, 
        #ffffff 55%, 
        #ffffff 100%
    );
    z-index: 1;
}

/* Animated gradient overlay on orange section */
.slotsjuicehead-diagonal-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 45%;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.8) 0%,
        rgba(229, 90, 43, 0.9) 50%,
        rgba(255, 138, 101, 0.7) 100%
    );
    animation: slotsjuicehead-gradientShift 8s ease-in-out infinite;
    z-index: 2;
}

@keyframes slotsjuicehead-gradientShift {
    0%, 100% { 
        opacity: 1; 
    }
    50% { 
        opacity: 0.8; 
    }
}

/* ============================================
   FLOATING GEOMETRIC SHAPES
   ============================================ */
.slotsjuicehead-geo-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20% 80% 60% 40% / 70% 30% 70% 30%;
    animation: slotsjuicehead-morphShape 10s ease-in-out infinite;
    z-index: 3;
}

.slotsjuicehead-geo-shape:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.slotsjuicehead-geo-shape:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 15%;
    animation-delay: 2s;
}

.slotsjuicehead-geo-shape:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 30%;
    left: 35%;
    animation-delay: 4s;
}

@keyframes slotsjuicehead-morphShape {
    0%, 100% {
        border-radius: 20% 80% 60% 40% / 70% 30% 70% 30%;
        transform: rotate(0deg) scale(1);
    }
    50% {
        border-radius: 80% 20% 40% 60% / 30% 70% 30% 70%;
        transform: rotate(180deg) scale(1.1);
    }
}

/* ============================================
   MAIN CONTENT CONTAINER
   ============================================ */
.slotsjuicehead-hero-content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

/* ============================================
   LEFT CONTENT - GLASSMORPHISM TEXT AREA
   ============================================ */
.slotsjuicehead-hero-text-area {
    padding: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.slotsjuicehead-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
}

.slotsjuicehead-breadcrumb a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.slotsjuicehead-breadcrumb a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.slotsjuicehead-breadcrumb span {
    color: rgba(255, 255, 255, 0.7);
}

.slotsjuicehead-breadcrumb span[aria-current="page"] {
    color: rgba(255, 255, 255, 0.95);
}

/* ============================================
   HERO TITLE
   ============================================ */
.slotsjuicehead-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 18px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slotsjuicehead-hero-title .slotsjuicehead-highlight {
    display: block;
    background: linear-gradient(135deg, var(--slotsjuicehead-juice-cream), #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 46px;
}

/* ============================================
   FRESH BADGE
   ============================================ */
.slotsjuicehead-fresh-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.25);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.slotsjuicehead-badge-icon {
    font-size: 18px;
}

.slotsjuicehead-badge-text {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   DESCRIPTION
   ============================================ */
.slotsjuicehead-hero-description {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

/* ============================================
   RIGHT SIDE - ILLUSTRATION CARD
   ============================================ */
.slotsjuicehead-illustration-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 50px 40px;
    box-shadow: 
        0 30px 80px rgba(255, 107, 53, 0.3),
        0 0 0 1px rgba(255, 107, 53, 0.1);
    position: relative;
    overflow: hidden;
}

/* ============================================
   STATS GRID - HORIZONTAL LAYOUT
   ============================================ */
.slotsjuicehead-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.slotsjuicehead-stat-box {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 138, 101, 0.05) 100%);
    border: 2px solid rgba(255, 107, 53, 0.15);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.slotsjuicehead-stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.2);
    border-color: var(--slotsjuicehead-juice-orange);
}

.slotsjuicehead-stat-number {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--slotsjuicehead-juice-orange), var(--slotsjuicehead-juice-orange-dark));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.slotsjuicehead-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--slotsjuicehead-juice-orange-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE DESIGN - GOLDILOCKS ZONE
   ============================================ */

/* Tablet Large (1199px) */
@media (max-width: 1199px) {
    .slotsjuicehead-hero-content {
        padding: 40px 20px;
        gap: 45px;
    }

    .slotsjuicehead-hero-text-area {
        padding: 35px;
    }

    .slotsjuicehead-hero-title {
        font-size: 38px;
    }

    .slotsjuicehead-hero-title .slotsjuicehead-highlight {
        font-size: 42px;
    }

    .slotsjuicehead-hero-description {
        font-size: 14px;
    }

    .slotsjuicehead-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .slotsjuicehead-stat-box {
        padding: 14px 10px;
    }

    .slotsjuicehead-stat-number {
        font-size: 24px;
    }

    .slotsjuicehead-stat-label {
        font-size: 10px;
    }
}

/* Tablet Small (1023px) */
@media (max-width: 1023px) {
    .slotsjuicehead-diagonal-bg {
        background: linear-gradient(155deg, 
            var(--slotsjuicehead-juice-orange) 0%, 
            var(--slotsjuicehead-juice-orange) 50%, 
            #ffffff 50%, 
            #ffffff 100%
        );
    }

    .slotsjuicehead-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 35px 18px;
    }

    .slotsjuicehead-hero-text-area {
        padding: 30px;
    }

    .slotsjuicehead-hero-title {
        font-size: 34px;
    }

    .slotsjuicehead-hero-title .slotsjuicehead-highlight {
        font-size: 38px;
    }

    .slotsjuicehead-hero-description {
        font-size: 13px;
    }

    .slotsjuicehead-illustration-card {
        padding: 40px 30px;
    }

    .slotsjuicehead-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .slotsjuicehead-stat-box {
        padding: 18px 15px;
    }

    .slotsjuicehead-stat-number {
        font-size: 28px;
    }

    .slotsjuicehead-stat-label {
        font-size: 12px;
    }
}

/* Mobile (767px) */
@media (max-width: 767px) {
    .slotsjuicehead-hero-wrapper {
        min-height: auto;
        border-radius: 0;
    }

    .slotsjuicehead-diagonal-bg {
        background: var(--slotsjuicehead-juice-orange);
    }

    .slotsjuicehead-diagonal-bg::before {
        right: 0;
    }

    .slotsjuicehead-hero-content {
        padding: 25px 15px 25px;
        gap: 20px;
        grid-template-columns: 1fr;
    }

    .slotsjuicehead-hero-text-area {
        padding: 30px 25px;
        border-radius: 30px;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.25) 0%, 
            rgba(255, 255, 255, 0.15) 100%
        );
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 2px solid rgba(255, 255, 255, 0.4);
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }

    .slotsjuicehead-hero-title {
        font-size: 30px;
    }

    .slotsjuicehead-hero-title .slotsjuicehead-highlight {
        font-size: 34px;
    }

    .slotsjuicehead-hero-description {
        font-size: 13px;
        margin-bottom: 0;
    }

    .slotsjuicehead-breadcrumb {
        font-size: 12px;
    }

    .slotsjuicehead-geo-shape {
        display: none;
    }

    /* Mobile stats on orange background */
    .slotsjuicehead-illustration-card {
        padding: 0 15px;
        margin: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
    }

    /* Mobile elegant stats grid */
    .slotsjuicehead-stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .slotsjuicehead-stat-box {
        padding: 18px 15px;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.3) 0%, 
            rgba(255, 255, 255, 0.2) 100%
        );
        border: 2px solid rgba(255, 255, 255, 0.4);
        border-radius: 18px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 
            0 8px 20px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
        transition: all 0.3s ease;
    }

    .slotsjuicehead-stat-box:active {
        transform: scale(0.97);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    .slotsjuicehead-stat-number {
        font-size: 28px;
        margin-bottom: 5px;
        color: #ffffff;
        font-weight: 800;
        text-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.2),
            0 0 20px rgba(255, 255, 255, 0.3);
        background: none;
        -webkit-text-fill-color: #ffffff;
    }

    .slotsjuicehead-stat-label {
        font-size: 11px;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.95);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }
}

/* Small Mobile (479px) */
@media (max-width: 479px) {
    .slotsjuicehead-hero-content {
        padding: 20px 12px 20px;
        gap: 18px;
    }

    .slotsjuicehead-hero-text-area {
        padding: 25px 20px;
        border-radius: 25px;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.25) 0%, 
            rgba(255, 255, 255, 0.15) 100%
        );
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 2px solid rgba(255, 255, 255, 0.4);
        box-shadow: 
            0 15px 35px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }

    .slotsjuicehead-hero-title {
        font-size: 26px;
    }

    .slotsjuicehead-hero-title .slotsjuicehead-highlight {
        font-size: 30px;
    }

    .slotsjuicehead-hero-description {
        font-size: 12px;
        margin-bottom: 0;
    }

    .slotsjuicehead-breadcrumb {
        font-size: 11px;
        gap: 6px;
    }

    .slotsjuicehead-fresh-badge {
        padding: 6px 12px;
        font-size: 10px;
    }

    .slotsjuicehead-badge-icon {
        font-size: 14px;
    }

    .slotsjuicehead-badge-text {
        font-size: 9px;
    }

    /* Small mobile stats on orange background */
    .slotsjuicehead-illustration-card {
        padding: 0 12px;
        margin: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        border: none;
    }

    /* Small mobile compact grid */
    .slotsjuicehead-stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .slotsjuicehead-stat-box {
        padding: 16px 12px;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.3) 0%, 
            rgba(255, 255, 255, 0.2) 100%
        );
        border: 2px solid rgba(255, 255, 255, 0.4);
        border-radius: 16px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 
            0 6px 16px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }

    .slotsjuicehead-stat-number {
        font-size: 24px;
        margin-bottom: 5px;
        color: #ffffff;
        font-weight: 800;
        text-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.2),
            0 0 15px rgba(255, 255, 255, 0.3);
        background: none;
        -webkit-text-fill-color: #ffffff;
    }

    .slotsjuicehead-stat-label {
        font-size: 10px;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.95);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }
}

/* ============================================
   ELEMENTOR EDITOR VISIBILITY FIX
   ============================================ */
.elementor-editor-active .slotsjuicehead-hero-wrapper {
    min-height: 500px !important;
    display: block !important;
    visibility: visible !important;
}

.elementor-editor-active .elementor-widget-slotsjuicehead-hero .elementor-widget-container {
    min-height: 500px !important;
    display: block !important;
}

