/**
 * SlotsJuice Expert Tips Widget Styles
 * Optimalizált CSS sebességre és teljesítményre
 * Version: 1.0.0
 */

/* CSS Custom Properties - Juice Theme */
.slotsjuice-expert-widget {
    --juice-orange: #FF6B35;
    --juice-orange-dark: #E55A2B;
    --juice-orange-light: #FF8A65;
    --juice-cream: #FFF8E1;
    --juice-green: #2E7D32;
    --juice-white: #FFFFFF;
    --juice-dark: #1A1A1A;
    --juice-gradient: linear-gradient(135deg, #FF6B35, #E55A2B);
    --juice-gradient-hero: linear-gradient(135deg, #FF6B35 0%, #E55A2B 50%, #FF8A65 100%);
    --juice-radius: 12px;
    --juice-radius-large: 20px;
    --juice-radius-drop: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

/* Base Widget Styles */
.slotsjuice-expert-widget {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--juice-dark);
    position: relative;
    contain: layout style;
    font-display: swap;
}

.slotsjuice-expert-widget * {
    box-sizing: border-box;
}

/* Container */
.slotsjuice-expert-widget .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Expert Wrapper */
.slotsjuice-expert-widget .expert-wrapper {
    background: #ffffff;
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: var(--juice-radius-large);
    padding: 50px 40px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.1);
    position: relative;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Header Section */
.slotsjuice-expert-widget .header {
    text-align: left;
    margin-bottom: 40px;
    position: relative;
}

.slotsjuice-expert-widget .header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}

/* Main Title */
.slotsjuice-expert-widget .main-title,
.slotsjuice-expert-widget .header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--juice-gradient-hero);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
    position: relative;
    line-height: 1.2;
}

.slotsjuice-expert-widget .main-title::after,
.slotsjuice-expert-widget .header h1::after {
    content: "🧃";
    font-size: 1.5rem;
    position: absolute;
    top: -5px;
    right: -40px;
    animation: juiceGlow 4s ease-in-out infinite;
}

@keyframes juiceGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.4));
        transform: translateY(0px) scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.6));
        transform: translateY(-3px) scale(1.05);
    }
}

/* Intro Text */
.slotsjuice-expert-widget .intro-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    font-weight: 500;
}

.slotsjuice-expert-widget .intro-highlight {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.6;
}

.slotsjuice-expert-widget .intro-highlight .highlight {
    color: var(--juice-orange);
    font-weight: 700;
}

/* Expert Badge */
.slotsjuice-expert-widget .expert-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #2c3e50;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.slotsjuice-expert-widget .expert-badge i {
    font-size: 1.1rem;
}

/* Tips Container */
.slotsjuice-expert-widget .tips-container {
    margin: 35px 0;
}

.slotsjuice-expert-widget .tip-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--juice-radius);
    border: 1px solid rgba(255, 107, 53, 0.15);
    box-shadow: 
        0 4px 15px rgba(255, 107, 53, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

.slotsjuice-expert-widget .tip-card:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 35px;
    width: 2px;
    height: 8px;
    background: var(--juice-gradient);
    z-index: 10;
}

.slotsjuice-expert-widget .tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 35px rgba(255, 107, 53, 0.15),
        0 8px 20px rgba(255, 107, 53, 0.08);
    border-color: rgba(255, 107, 53, 0.3);
    background: var(--juice-cream);
}

/* Tip Number */
.slotsjuice-expert-widget .tip-number {
    background: var(--juice-gradient);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    margin-right: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    position: relative;
}

.slotsjuice-expert-widget .tip-number::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(241, 196, 15, 0.4);
}

/* Tip Content */
.slotsjuice-expert-widget .tip-content {
    flex: 1;
    min-width: 0;
}

.slotsjuice-expert-widget .tip-title {
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--juice-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 10px 0;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.slotsjuice-expert-widget .tip-description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 450;
    background: rgba(255, 248, 225, 0.6);
    padding: 14px 16px;
    border-radius: 10px;
    border-left: 3px solid var(--juice-orange);
    margin: 0;
}

.slotsjuice-expert-widget .tip-link {
    color: var(--juice-orange);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.slotsjuice-expert-widget .tip-link:hover {
    border-bottom-color: #f1c40f;
    color: var(--juice-orange-dark);
}

/* Floating Drops */
.slotsjuice-expert-widget .floating-drop {
    position: absolute;
    font-size: 1.2rem;
    color: var(--juice-orange-light);
    animation: dropFloat 6s ease-in-out infinite;
    opacity: 0.4;
    z-index: -1;
    border-radius: var(--juice-radius-drop);
    pointer-events: none;
}

.slotsjuice-expert-widget .floating-drop:nth-child(1) { top: 10%; left: 8%; animation-delay: 0s; }
.slotsjuice-expert-widget .floating-drop:nth-child(2) { top: 20%; right: 12%; animation-delay: 2s; }
.slotsjuice-expert-widget .floating-drop:nth-child(3) { bottom: 30%; left: 15%; animation-delay: 4s; }
.slotsjuice-expert-widget .floating-drop:nth-child(4) { bottom: 15%; right: 20%; animation-delay: 1s; }

@keyframes dropFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 107, 53, 0.3));
    }
    50% { 
        transform: translateY(-20px) scale(1.1);
        filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
    }
}

/* Mobile Touch Enhancements */
@media (max-width: 767px) {
    .slotsjuice-expert-widget .tip-card {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .slotsjuice-expert-widget .tip-card:active {
        transform: translateY(-1px) scale(0.98);
        transition: all 0.15s ease;
    }

    .slotsjuice-expert-widget .tip-link {
        padding: 2px 4px;
        border-radius: 4px;
        background: rgba(255, 107, 53, 0.1);
        transition: all 0.2s ease;
    }

    .slotsjuice-expert-widget .tip-link:active {
        background: rgba(255, 107, 53, 0.2);
        transform: scale(0.95);
    }
}

/* Laptop & Large Tablet Optimizations - Goldilocks Zone */
@media (max-width: 1199px) and (min-width: 1024px) {
    .slotsjuice-expert-widget .expert-wrapper {
        padding: 35px 25px;
        margin: 15px 0;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .slotsjuice-expert-widget .main-title,
    .slotsjuice-expert-widget .header h1 {
        font-size: 2rem;
    }
    
    .slotsjuice-expert-widget .tip-card {
        padding: 16px;
        margin-bottom: 7px;
    }
    
    .slotsjuice-expert-widget .tip-number {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
        margin-right: 16px;
    }
    
    .slotsjuice-expert-widget .tip-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .slotsjuice-expert-widget .tip-description {
        font-size: 0.85rem;
        padding: 12px 14px;
    }
    
    .slotsjuice-expert-widget .tip-card:not(:last-child)::after {
        left: 33px;
    }
}

/* Medium Tablet Optimizations */
@media (max-width: 1023px) and (min-width: 768px) {
    .slotsjuice-expert-widget .expert-wrapper {
        padding: 30px 20px;
        margin: 10px 0;
        border-radius: 15px;
    }
    
    .slotsjuice-expert-widget .main-title,
    .slotsjuice-expert-widget .header h1 {
        font-size: 1.8rem;
    }
    
    .slotsjuice-expert-widget .tip-card {
        padding: 18px;
        margin-bottom: 14px;
    }
    
    .slotsjuice-expert-widget .tip-number {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        margin-right: 16px;
    }
    
    .slotsjuice-expert-widget .tip-title {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }
    
    .slotsjuice-expert-widget .tip-description {
        font-size: 0.88rem;
        padding: 14px 16px;
    }
}

/* Full-width Mobile - No margins, kompakt layout */
@media (max-width: 767px) {
    .slotsjuice-expert-widget .container {
        padding: 0 5px;
    }

    .slotsjuice-expert-widget .expert-wrapper {
        padding: 25px 15px;
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .slotsjuice-expert-widget .header {
        margin-bottom: 30px;
        background: var(--juice-gradient-hero);
        padding: 20px 15px;
        border-radius: 15px;
        position: relative;
        overflow: hidden;
    }

    .slotsjuice-expert-widget .header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        z-index: 1;
        animation: headerFloat 6s ease-in-out infinite;
    }

    @keyframes headerFloat {
        0%, 100% { transform: translateY(0px) rotate(0deg); }
        50% { transform: translateY(-3px) rotate(180deg); }
    }

    .slotsjuice-expert-widget .header > * {
        position: relative;
        z-index: 2;
    }

    .slotsjuice-expert-widget .header-top {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 15px;
    }

    .slotsjuice-expert-widget .main-title,
    .slotsjuice-expert-widget .header h1 {
        font-size: 1.7rem;
        margin-bottom: 10px;
        color: white;
        background: none;
        -webkit-text-fill-color: white;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .slotsjuice-expert-widget .main-title::after,
    .slotsjuice-expert-widget .header h1::after {
        content: "🧃";
        font-size: 1.3rem;
        right: -35px;
        top: -3px;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    }

    .slotsjuice-expert-widget .expert-badge {
        align-self: center;
        background: rgba(255,255,255,0.95);
        color: var(--juice-orange);
        border: 2px solid rgba(255,255,255,0.3);
        backdrop-filter: blur(10px);
    }

    .slotsjuice-expert-widget .intro-text,
    .slotsjuice-expert-widget .intro-highlight {
        font-size: 0.9rem;
        color: rgba(255,255,255,0.95);
        text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }

    .slotsjuice-expert-widget .intro-highlight .highlight {
        color: #f1c40f;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }
    
    .slotsjuice-expert-widget .tip-card {
        flex-direction: row;
        text-align: left;
        padding: 18px 16px;
        margin-bottom: 16px;
        border-radius: 15px;
        align-items: flex-start;
        background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(255,248,225,0.95) 100%);
        border: 2px solid rgba(255, 107, 53, 0.2);
        box-shadow: 
            0 8px 25px rgba(255, 107, 53, 0.12),
            0 4px 12px rgba(0, 0, 0, 0.05),
            inset 0 1px 0 rgba(255,255,255,0.9);
        backdrop-filter: blur(8px);
        position: relative;
        overflow: hidden;
    }

    .slotsjuice-expert-widget .tip-card::after {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
        transform: translateX(100%);
        transition: transform 0.6s ease;
    }

    .slotsjuice-expert-widget .tip-card:hover::after {
        transform: translateX(-100%);
    }

    .slotsjuice-expert-widget .tip-card:hover {
        transform: translateY(-3px);
        box-shadow: 
            0 12px 35px rgba(255, 107, 53, 0.18),
            0 6px 20px rgba(255, 107, 53, 0.1);
        border-color: rgba(255, 107, 53, 0.4);
    }
    
    .slotsjuice-expert-widget .tip-number {
        margin: 2px 16px 0 0;
        width: 38px;
        height: 38px;
        font-size: 1rem;
        flex-shrink: 0;
        background: var(--juice-gradient);
        box-shadow: 
            0 6px 18px rgba(255, 107, 53, 0.35),
            0 2px 8px rgba(255, 107, 53, 0.2);
        border: 2px solid rgba(255,255,255,0.9);
        position: relative;
        z-index: 10;
    }

    .slotsjuice-expert-widget .tip-number::after {
        width: 16px;
        height: 16px;
        top: -3px;
        right: -3px;
        background: linear-gradient(135deg, #f1c40f, #f39c12);
        box-shadow: 0 3px 8px rgba(241, 196, 15, 0.4);
    }
    
    .slotsjuice-expert-widget .tip-title {
        font-size: 1rem;
        margin-bottom: 12px;
        text-align: left;
        font-weight: 800;
        letter-spacing: -0.3px;
        line-height: 1.2;
        color: var(--juice-orange-dark);
        text-shadow: 0 1px 2px rgba(255,107,53,0.1);
    }
    
    .slotsjuice-expert-widget .tip-description {
        font-size: 0.88rem;
        padding: 15px 18px;
        text-align: left;
        background: rgba(255, 248, 225, 0.8);
        border-radius: 12px;
        border-left: 4px solid var(--juice-orange);
        line-height: 1.6;
        font-weight: 500;
        color: #444;
        box-shadow: inset 0 1px 3px rgba(255,107,53,0.1);
    }

    .slotsjuice-expert-widget .tip-card:not(:last-child)::after {
        left: 35px;
        width: 3px;
        height: 10px;
        background: var(--juice-gradient);
        border-radius: 2px;
        bottom: -10px;
    }
}

/* Compact Small Mobile */
@media (max-width: 479px) {
    .slotsjuice-expert-widget .expert-wrapper {
        padding: 20px 10px;
    }

    .slotsjuice-expert-widget .header {
        padding: 18px 12px;
        border-radius: 12px;
        margin-bottom: 25px;
    }
    
    .slotsjuice-expert-widget .main-title,
    .slotsjuice-expert-widget .header h1 {
        font-size: 1.5rem;
    }
    
    .slotsjuice-expert-widget .main-title::after,
    .slotsjuice-expert-widget .header h1::after {
        font-size: 1.1rem;
        right: -30px;
    }
    
    .slotsjuice-expert-widget .tip-card {
        padding: 16px 14px;
        margin-bottom: 14px;
        border-radius: 12px;
        background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(255,248,225,0.96) 100%);
        border: 2px solid rgba(255, 107, 53, 0.25);
        box-shadow: 
            0 6px 20px rgba(255, 107, 53, 0.15),
            0 3px 10px rgba(0, 0, 0, 0.05);
    }
    
    .slotsjuice-expert-widget .tip-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        margin: 1px 14px 0 0;
        box-shadow: 
            0 4px 14px rgba(255, 107, 53, 0.3),
            0 2px 6px rgba(255, 107, 53, 0.15);
        border: 1.5px solid rgba(255,255,255,0.9);
    }

    .slotsjuice-expert-widget .tip-number::after {
        width: 14px;
        height: 14px;
        top: -2px;
        right: -2px;
    }
    
    .slotsjuice-expert-widget .tip-title {
        font-size: 0.92rem;
        margin-bottom: 10px;
        font-weight: 800;
        letter-spacing: -0.2px;
        line-height: 1.2;
        color: var(--juice-orange-dark);
    }
    
    .slotsjuice-expert-widget .tip-description {
        font-size: 0.82rem;
        padding: 12px 15px;
        background: rgba(255, 248, 225, 0.85);
        border-radius: 10px;
        border-left: 3px solid var(--juice-orange);
        line-height: 1.5;
        font-weight: 500;
        color: #444;
    }
    
    .slotsjuice-expert-widget .expert-badge {
        padding: 8px 12px;
        font-size: 0.7rem;
    }
    
    .slotsjuice-expert-widget .intro-text,
    .slotsjuice-expert-widget .intro-highlight {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .slotsjuice-expert-widget .header-top {
        margin-bottom: 12px;
        gap: 12px;
    }

    .slotsjuice-expert-widget .tip-card:not(:last-child)::after {
        left: 31px;
        width: 2.5px;
        height: 8px;
        background: var(--juice-gradient);
        border-radius: 2px;
        bottom: -8px;
    }
}

/* Optimalizálások teljesítményhez */
@media (prefers-reduced-motion: reduce) {
    .slotsjuice-expert-widget * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Preload optimalizáció */
.slotsjuice-expert-widget[data-animations="no"] .floating-drop,
.slotsjuice-expert-widget[data-animations="no"] .main-title::after,
.slotsjuice-expert-widget[data-animations="no"] .header h1::after {
    animation: none !important;
}

/* Loading state optimization */
.slotsjuice-expert-widget.loading {
    opacity: 0;
    transform: translateY(20px);
}

.slotsjuice-expert-widget.loaded {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}