/*!
 * SlotsJuice Heroes Widget CSS
 * Version: 1.0.10
 * Optimized for Speed & Mobile Performance
 */

/* ===== CSS VARIABLES - BRAND IDENTITY ===== */
.slotsjuiceheros-widget {
    /* Brand Colors */
    --juice-orange: #FF6B35;
    --juice-orange-dark: #E55A2B;
    --juice-orange-light: #FF8A65;
    --juice-cream: #FFF8E1;
    --juice-dark: #1A1A1A;
    --juice-white: #FFFFFF;
    --juice-green: #2E7D32;
    --juice-green-dark: #1B5E20;
    --juice-green-light: #4CAF50;
    
    /* Brand Gradients */
    --juice-gradient: linear-gradient(135deg, #FF6B35, #E55A2B);
    --juice-gradient-hero: linear-gradient(135deg, #FF6B35 0%, #E55A2B 50%, #FF8A65 100%);
    --juice-gradient-green: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    --juice-gradient-mixed: linear-gradient(135deg, #FF6B35 0%, #2E7D32 50%, #1B5E20 100%);
    --juice-gradient-dark: linear-gradient(135deg, #1A1A1A 0%, #2D3748 50%, #1A202C 100%);
    
    /* Brand Radius */
    --juice-radius: 12px;
    --juice-radius-large: 20px;
    --juice-radius-xl: 30px;
    --juice-radius-drop: 50% 50% 50% 50% / 60% 60% 40% 40%;
    
    /* Brand Transitions - DISABLED FOR PERFORMANCE */
    
    /* Color Scheme Variations */
    --scheme-primary: var(--juice-orange);
    --scheme-primary-dark: var(--juice-orange-dark);
    --scheme-primary-light: var(--juice-orange-light);
    --scheme-secondary: var(--juice-green);
    --scheme-secondary-dark: var(--juice-green-dark);
    --scheme-secondary-light: var(--juice-green-light);
}

/* Color Scheme: Blue */
.slotsjuiceheros-widget.scheme-blue {
    --scheme-primary: #2196F3;
    --scheme-primary-dark: #1976D2;
    --scheme-primary-light: #64B5F6;
    --scheme-secondary: #00BCD4;
    --scheme-secondary-dark: #00838F;
    --scheme-secondary-light: #4DD0E1;
}

/* Color Scheme: Purple */
.slotsjuiceheros-widget.scheme-purple {
    --scheme-primary: #9C27B0;
    --scheme-primary-dark: #7B1FA2;
    --scheme-primary-light: #CE93D8;
    --scheme-secondary: #673AB7;
    --scheme-secondary-dark: #512DA8;
    --scheme-secondary-light: #9575CD;
}

/* Color Scheme: Red */
.slotsjuiceheros-widget.scheme-red {
    --scheme-primary: #F44336;
    --scheme-primary-dark: #D32F2F;
    --scheme-primary-light: #EF5350;
    --scheme-secondary: #FF5722;
    --scheme-secondary-dark: #E64A19;
    --scheme-secondary-light: #FF7043;
}

/* ===== RESET & BASE ===== */
.slotsjuiceheros-widget * {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.slotsjuiceheros-widget {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--juice-white);
    line-height: 1.6;
    font-size: 15px;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
    font-kerning: normal;
    overflow: hidden;
    contain: layout style paint;
}

/* ===== NO ANIMATIONS FOR PERFORMANCE ===== */

/* Animation Speed Controls - DISABLED FOR PERFORMANCE */

/* ===== MAIN HERO SECTION ===== */
.sjh-hero-section {
    background: var(--juice-gradient-dark);
    min-height: 42vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 35px 0;
    border-radius: 0 0 var(--juice-radius-xl) var(--juice-radius-xl);
    isolation: isolate;
}

.sjh-hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(46, 125, 50, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 139, 101, 0.05) 0%, transparent 40%);
    z-index: -1;
}

.sjh-container {
    max-width: 1521px;
    margin: 0 auto !important;
    padding: 0 30px;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

.sjh-hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 25px;
    align-items: center;
    min-height: 35vh;
}

/* Two columns layout - 20% jobbra tolás horizontális középre helyezésért */
.sjh-hero-content:not(.single-column) {
    margin-left: 10%;
    margin-right: -10%;
    transform: translateX(5%);
}

.sjh-hero-content.single-column {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 80%; /* 20% csökkentés single column módban */
    margin: 0 auto;
}

/* Hide graphics in single column mode */
.sjh-hero-content.single-column .sjh-hero-graphics {
    display: none;
}

/* Single column responsive widths - 20% csökkentés minden breakpointon */
@media (min-width: 1400px) {
    .sjh-hero-content.single-column {
        max-width: 1352px; /* 1690px * 0.8 */
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .sjh-hero-content.single-column {
        max-width: 1217px; /* 1521px * 0.8 */
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .sjh-hero-content.single-column {
        max-width: 1082px; /* 1352px * 0.8 */
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .sjh-hero-content.single-column {
        max-width: 946px; /* 1183px * 0.8 */
    }
}

@media (max-width: 767px) {
    .sjh-hero-content.single-column {
        max-width: 90%; /* Mobile-on kisebb csökkentés a jobb olvashatóság érdekében */
    }
}

/* ===== LEFT SIDE - GRAPHICS ===== */
.sjh-hero-graphics {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sjh-slot-machine {
    width: 150px;
    height: 180px;
    background: var(--juice-gradient-mixed);
    border-radius: var(--juice-radius-xl);
    position: relative;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sjh-slot-machine::before {
    content: attr(data-icon);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.8rem;
    z-index: 2;
    line-height: 1;
}

.sjh-slot-machine::after {
    content: attr(data-numbers);
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--juice-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 3;
}

/* ===== FLOATING COINS - STATIC ===== */
.sjh-floating-coin {
    position: absolute;
    width: 32px;
    height: 32px;
    background: var(--juice-gradient-hero);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.sjh-floating-coin:nth-child(2) {
    top: 10%;
    right: 10%;
}

.sjh-floating-coin:nth-child(3) {
    top: 70%;
    left: -10%;
}

.sjh-floating-coin:nth-child(4) {
    top: 20%;
    left: 60%;
}

.sjh-floating-coin:nth-child(5) {
    bottom: 10%;
    right: 20%;
}

.sjh-floating-coin:nth-child(6) {
    bottom: 30%;
    left: 15%;
}

/* ===== RIGHT SIDE - CONTENT ===== */
.sjh-hero-info {
}

.sjh-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 50px;
    padding: 8px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--juice-orange-light);
}

.sjh-hero-title {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 14px;
    background: var(--juice-gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.sjh-hero-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 18px;
    line-height: 1.4;
}

.sjh-hero-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 22px;
    line-height: 1.5;
}

/* ===== SEARCH BOX ===== */
.sjh-search-container {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.sjh-search-input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--juice-radius-large);
    color: var(--juice-white);
    font-size: 15px;
    font-family: inherit;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    outline: none;
}

.sjh-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.sjh-search-input:focus {
    border-color: var(--scheme-primary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.sjh-search-button {
    padding: 14px 28px;
    background: var(--juice-gradient);
    border: none;
    border-radius: var(--juice-radius-large);
    color: var(--juice-white);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* ===== FEATURE TAGS ===== */
.sjh-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sjh-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(46, 125, 50, 0.1);
    border: 2px solid rgba(46, 125, 50, 0.2);
    border-radius: 50px;
    color: var(--juice-green-light);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
}

/* Hover and active states removed for performance */

/* ===== FLOATING DECORATIONS - STATIC ===== */
.sjh-floating-decoration {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    z-index: 1;
}

.sjh-floating-decoration:nth-child(1) {
    top: 10%;
    left: 5%;
}

.sjh-floating-decoration:nth-child(2) {
    top: 20%;
    right: 10%;
}

.sjh-floating-decoration:nth-child(3) {
    bottom: 15%;
    left: 10%;
}

.sjh-floating-decoration:nth-child(4) {
    bottom: 25%;
    right: 5%;
}

/* ===== RESPONSIVE DESIGN - GOLDILOCKS ZONE ===== */

/* Large Desktop (1400px+) - Spacious Layout */
@media (min-width: 1400px) {
    .sjh-container { 
        max-width: 1690px; 
        margin: 0 auto !important;
        padding: 0 40px;
        width: 100%;
        box-sizing: border-box;
    }
    .sjh-hero-section { min-height: 45vh; padding: 40px 0; }
    .sjh-hero-title { font-size: 38px; }
    .sjh-hero-subtitle { font-size: 18px; }
    .sjh-slot-machine { width: 170px; height: 200px; }
    .sjh-slot-machine::before { font-size: 3.2rem; }
    .sjh-slot-machine::after { font-size: 1.8rem; }
}

/* Laptop/Desktop (1200px - 1399px) - Balanced Layout */
@media (min-width: 1200px) and (max-width: 1399px) {
    .sjh-container { 
        max-width: 1521px; 
        margin: 0 auto !important;
        width: 100%;
        box-sizing: border-box;
    }
    .sjh-hero-section { min-height: 42vh; padding: 35px 0; }
    .sjh-hero-title { font-size: 34px; }
    .sjh-hero-subtitle { font-size: 16px; }
    .sjh-slot-machine { width: 150px; height: 180px; }
}

/* Small Laptop (1024px - 1199px) - Optimized for Notebook Screens */
@media (min-width: 1024px) and (max-width: 1199px) {
    .sjh-container { 
        max-width: 1352px; 
        margin: 0 auto !important;
        padding: 0 35px; /* More edge spacing */
        width: 100%;
        box-sizing: border-box;
    }
    .sjh-hero-section { min-height: 38vh; padding: 30px 0; }
    .sjh-hero-content { gap: 22px; min-height: 32vh; }
    
    /* Two columns jobbra tolás laptop méretben */
    .sjh-hero-content:not(.single-column) {
        margin-left: 8%;
        margin-right: -8%;
        transform: translateX(4%);
    }
    
    .sjh-hero-title { font-size: 30px; margin-bottom: 12px; }
    .sjh-hero-subtitle { font-size: 15px; margin-bottom: 16px; }
    .sjh-hero-description { font-size: 13px; margin-bottom: 20px; }
    .sjh-search-container { margin-bottom: 16px; }
    .sjh-slot-machine { width: 130px; height: 160px; }
    .sjh-slot-machine::before { font-size: 2.4rem; }
    .sjh-slot-machine::after { font-size: 1.4rem; }
    .sjh-floating-coin { width: 26px; height: 26px; font-size: 1rem; }
    .sjh-floating-decoration { font-size: 1.8rem; }
}

/* Tablet Portrait & Small Laptop (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .sjh-hero-section { 
        padding: 28px 0; 
        min-height: 35vh; 
    }
    .sjh-container { 
        max-width: 1183px; 
        margin: 0 auto !important;
        padding: 0 30px; /* Adequate edge spacing */
        width: 100%;
        box-sizing: border-box;
    }
    .sjh-hero-content { 
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
        min-height: 28vh;
    }
    
    /* Tableten már single column, de ha mégis two columns lenne */
    .sjh-hero-content:not(.single-column) {
        margin-left: 0;
        margin-right: 0;
        transform: none;
    }
    
    .sjh-hero-title { font-size: 28px; margin-bottom: 10px; }
    .sjh-hero-subtitle { font-size: 14px; margin-bottom: 14px; }
    .sjh-hero-description { margin-bottom: 18px; font-size: 13px; }
    .sjh-search-container { margin-bottom: 14px; }
    .sjh-slot-machine { width: 120px; height: 150px; }
    .sjh-slot-machine::before { font-size: 2.2rem; }
    .sjh-slot-machine::after { font-size: 1.3rem; }
    .sjh-floating-coin { width: 24px; height: 24px; font-size: 0.9rem; }
}

/* Mobile Portrait (up to 767px) - Compact Full-Width Layout */
@media (max-width: 767px) {
    .sjh-hero-section { 
        padding: 25px 0; 
        min-height: 32vh; 
        border-radius: 0 0 var(--juice-radius-large) var(--juice-radius-large);
    }
    
    /* Full width mobile layout - NO MARGINS */
    .sjh-container { 
        padding: 0 15px; 
        max-width: 100%;
        margin: 0; /* Remove centering margins */
    }
    
    .sjh-hero-content { 
        grid-template-columns: 1fr !important; /* MINDIG single column mobilon */
        gap: 20px; 
        text-align: center;
        margin: 0 !important; /* Minden margót törlök */
        transform: none !important; /* Minden transzformációt törlök */
        width: 100%;
        max-width: 100%;
    }
    
    /* Mobile - graphics elrejtése mindig */
    .sjh-hero-graphics {
        display: none !important; /* Mobilon semmi grafika */
    }
    
    .sjh-hero-info {
        width: 100%;
    }
    
    /* Touch-friendly typography */
    .sjh-hero-title { 
        font-size: 26px; 
        line-height: 1.2;
        margin-bottom: 12px;
    }
    
    .sjh-hero-subtitle { 
        font-size: 16px; 
        margin-bottom: 16px;
        line-height: 1.3;
    }
    
    .sjh-hero-description { 
        font-size: 14px; 
        margin-bottom: 20px; 
        line-height: 1.5;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Hide graphics on mobile for compact layout */
    .sjh-hero-graphics.hide-mobile { 
        display: none; 
    }
    
    /* Touch-friendly search - teljes szélességű mobilon */
    .sjh-search-container { 
        display: flex !important;
        flex-direction: column; 
        gap: 12px; 
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .sjh-search-input { 
        padding: 16px 18px; 
        font-size: 16px; /* Prevent iOS zoom */
        border-radius: var(--juice-radius-large);
        min-height: 50px; /* Touch target */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border: none;
        outline: none;
    }
    
    .sjh-search-button { 
        padding: 16px 20px; 
        font-size: 15px;
        font-weight: 700;
        border-radius: var(--juice-radius-large);
        min-height: 50px; /* Touch target */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        justify-content: center;
        display: flex;
        align-items: center;
        border: none;
        cursor: pointer;
    }
    
    .sjh-floating-decoration { 
        font-size: 1.5rem; 
        opacity: 0.4;
    }
    
    /* Touch-friendly feature tags */
    .sjh-feature-tags { 
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .sjh-feature-tag { 
        padding: 12px 18px; 
        font-size: 14px;
        min-height: 44px; /* Touch target */
        border-radius: 25px;
        gap: 8px;
        font-weight: 600;
    }
    
    /* Badge optimization */
    .sjh-hero-badge {
        padding: 12px 20px;
        font-size: 15px;
        margin-bottom: 25px;
        border-radius: 30px;
        gap: 10px;
    }
    
    /* Mobile-specific touch feedback */
    .sjh-search-button:active {
        transform: scale3d(0.95, 0.95, 1);
        background: var(--juice-gradient-hero);
    }
    
    .sjh-feature-tag:active {
        transform: scale3d(0.95, 0.95, 1);
        background: rgba(46, 125, 50, 0.3);
    }
}

/* Small Mobile (up to 479px) - Ultra Compact */
@media (max-width: 479px) {
    .sjh-hero-section { 
        padding: 20px 0; 
        min-height: 28vh; 
        border-radius: 0 0 var(--juice-radius) var(--juice-radius);
    }
    
    /* FULL-WIDTH layout - NO MARGINS */
    .sjh-container { 
        padding: 0 10px; 
        max-width: 100%;
    }
    
    /* Optimal mobile typography */
    .sjh-hero-title { 
        font-size: 24px; 
        line-height: 1.1;
        margin-bottom: 10px;
    }
    
    .sjh-hero-subtitle { 
        font-size: 14px; 
        margin-bottom: 14px;
    }
    
    .sjh-hero-description { 
        font-size: 13px; 
        margin-bottom: 18px;
        max-width: 95%;
    }
    
    .sjh-search-container { 
        margin-bottom: 16px;
        gap: 10px;
    }
    
    /* Maintain touch targets on smallest screens */
    .sjh-search-input { 
        padding: 14px 16px; 
        font-size: 16px; /* iOS zoom prevention */
        min-height: 48px;
    }
    
    .sjh-search-button { 
        padding: 14px 18px; 
        font-size: 14px;
        min-height: 48px;
        gap: 6px;
    }
    
    /* Compact feature tags but still touch-friendly */
    .sjh-feature-tag { 
        padding: 10px 14px; 
        font-size: 13px;
        min-height: 40px;
        border-radius: 20px;
        gap: 6px;
    }
    
    /* Compact badge */
    .sjh-hero-badge {
        padding: 10px 16px;
        font-size: 14px;
        margin-bottom: 20px;
        gap: 8px;
    }
}

/* Ultra Small Mobile (up to 360px) - Minimal but Functional */
@media (max-width: 360px) {
    .sjh-hero-section { 
        padding: 18px 0; 
        min-height: 25vh; 
    }
    
    /* Complete full-width on smallest screens */
    .sjh-container { 
        padding: 0 8px; 
        max-width: 100%;
    }
    
    /* Compact typography */
    .sjh-hero-title { 
        font-size: 22px; 
        margin-bottom: 8px;
    }
    
    .sjh-hero-subtitle { 
        font-size: 13px; 
        margin-bottom: 12px;
    }
    
    .sjh-hero-description { 
        font-size: 12px; 
        margin-bottom: 14px;
        max-width: 98%;
    }
    
    .sjh-search-container { 
        margin-bottom: 14px;
        gap: 8px;
    }
    
    /* Smallest usable but still accessible feature tags */
    .sjh-feature-tag { 
        padding: 6px 10px; 
        font-size: 11px;
        min-height: 32px;
        border-radius: 16px;
        gap: 3px;
    }
    
    .sjh-feature-tags {
        gap: 6px;
    }
    
    /* Compact badge */
    .sjh-hero-badge {
        padding: 6px 12px;
        font-size: 12px;
        margin-bottom: 12px;
        gap: 4px;
    }
}

/* ===== HOVER EFFECTS DISABLED FOR PERFORMANCE ===== */

/* ===== ACCESSIBILITY ===== */
/* All animations already disabled for performance */

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .sjh-hero-section {
        background-attachment: fixed;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .sjh-hero-section {
        background: var(--juice-gradient-dark);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .sjh-hero-section {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .sjh-floating-coin,
    .sjh-floating-decoration {
        display: none !important;
    }
}
