/* SlotsJuice FAQ Widget - Optimized CSS v1.0.0 */

:root {
    --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%;
}

/* Widget Wrapper */
.slotsjuicefaq-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--juice-dark);
    position: relative;
    min-height: 200px;
}

.slotsjuicefaq-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.slotsjuicefaq-wrapper .faq-wrapper {
    background: #ffffff;
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: var(--juice-radius-large);
    padding: 40px 35px;
    margin: 20px 0;
    box-shadow: 0 6px 28px rgba(255, 107, 53, 0.08);
    position: relative;
}

/* Header Section */
.slotsjuicefaq-wrapper .header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.slotsjuicefaq-wrapper .header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.slotsjuicefaq-wrapper .header h1,
.slotsjuicefaq-wrapper .header h2,
.slotsjuicefaq-wrapper .header h3,
.slotsjuicefaq-wrapper .header h4,
.slotsjuicefaq-wrapper .header h5,
.slotsjuicefaq-wrapper .header h6,
.slotsjuicefaq-wrapper .header p {
    font-size: clamp(1.4rem, 4vw, 2.1rem);
    font-weight: 700;
    background: var(--juice-gradient-hero);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0;
    letter-spacing: -0.3px;
    position: relative;
}

.slotsjuicefaq-wrapper .header h1::after,
.slotsjuicefaq-wrapper .header h2::after,
.slotsjuicefaq-wrapper .header h3::after,
.slotsjuicefaq-wrapper .header h4::after,
.slotsjuicefaq-wrapper .header h5::after,
.slotsjuicefaq-wrapper .header h6::after,
.slotsjuicefaq-wrapper .header p::after {
    content: "🧃";
    font-size: 1.5rem;
    position: absolute;
    top: -3px;
    right: -42px;
    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);
    }
}

.slotsjuicefaq-wrapper .header-subtitle {
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
}

.slotsjuicefaq-wrapper .header-highlight {
    font-size: clamp(0.8rem, 2.3vw, 0.95rem);
    color: var(--juice-orange);
    font-weight: 600;
}

/* FAQ Badge */
.slotsjuicefaq-wrapper .faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #2c3e50;
    padding: 10px 20px;
    border-radius: 22px;
    font-weight: 600;
    font-size: clamp(0.7rem, 2vw, 0.85rem);
    box-shadow: 0 4px 16px rgba(241, 196, 15, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.slotsjuicefaq-wrapper .faq-badge i {
    font-size: 1rem;
}

/* FAQ Grid - Goldilocks Zone Responsive */
.slotsjuicefaq-wrapper .faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr));
    gap: clamp(14px, 3vw, 20px);
    margin-top: 25px;
}

.slotsjuicefaq-wrapper .faq-item {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 107, 53, 0.1);
    border-radius: var(--juice-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.08);
    transition: all 0.3s ease;
    position: relative;
    will-change: transform;
}

.slotsjuicefaq-wrapper .faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.12);
    border-color: rgba(255, 107, 53, 0.3);
}

.slotsjuicefaq-wrapper .faq-item.active {
    border-color: var(--juice-orange);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15);
}

.slotsjuicefaq-wrapper .faq-question {
    padding: clamp(12px, 3vw, 18px) clamp(14px, 3.5vw, 20px);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 248, 225, 0.3) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
    user-select: none;
}

.slotsjuicefaq-wrapper .faq-question:hover {
    background: var(--juice-cream);
}

.slotsjuicefaq-wrapper .faq-question h1,
.slotsjuicefaq-wrapper .faq-question h2,
.slotsjuicefaq-wrapper .faq-question h3,
.slotsjuicefaq-wrapper .faq-question h4,
.slotsjuicefaq-wrapper .faq-question h5,
.slotsjuicefaq-wrapper .faq-question h6,
.slotsjuicefaq-wrapper .faq-question p {
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    font-weight: 600;
    color: var(--juice-dark);
    margin: 0;
    line-height: 1.4;
    flex: 1;
    padding-right: 12px;
}

.slotsjuicefaq-wrapper .faq-icon {
    width: clamp(26px, 5vw, 30px);
    height: clamp(26px, 5vw, 30px);
    background: var(--juice-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(0.75rem, 1.8vw, 0.8rem);
    font-weight: 700;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.slotsjuicefaq-wrapper .faq-item.active .faq-icon {
    transform: rotate(180deg);
    background: linear-gradient(135deg, var(--juice-green), #27ae60);
}

.slotsjuicefaq-wrapper .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 248, 225, 0.4);
}

.slotsjuicefaq-wrapper .faq-item.active .faq-answer {
    max-height: 300px;
}

.slotsjuicefaq-wrapper .faq-answer-content {
    padding: clamp(14px, 3.5vw, 20px);
    font-size: clamp(0.78rem, 2vw, 0.88rem);
    line-height: 1.6;
    color: #555;
    font-weight: 500;
}

.slotsjuicefaq-wrapper .faq-answer-content p {
    margin-bottom: 12px;
}

.slotsjuicefaq-wrapper .faq-answer-content p:last-child {
    margin-bottom: 0;
}

.slotsjuicefaq-wrapper .highlight {
    color: var(--juice-orange);
    font-weight: 700;
}

/* Floating Juice Drops */
.slotsjuicefaq-wrapper .floating-drop {
    position: absolute;
    font-size: clamp(1rem, 2.5vw, 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);
    will-change: transform;
}

.slotsjuicefaq-wrapper .floating-drop:nth-child(1) { top: 10%; left: 8%; animation-delay: 0s; }
.slotsjuicefaq-wrapper .floating-drop:nth-child(2) { top: 20%; right: 12%; animation-delay: 2s; }
.slotsjuicefaq-wrapper .floating-drop:nth-child(3) { bottom: 30%; left: 15%; animation-delay: 4s; }
.slotsjuicefaq-wrapper .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));
    }
}

/* Laptop Optimizations (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .slotsjuicefaq-wrapper .container {
        max-width: 95%;
        padding: 0 15px;
    }
    
    .slotsjuicefaq-wrapper .faq-wrapper {
        padding: 35px 28px;
        margin: 15px 0;
    }
    
    .slotsjuicefaq-wrapper .faq-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 18px;
    }
}

/* Tablet Optimizations */
@media (max-width: 1023px) {
    .slotsjuicefaq-wrapper .faq-wrapper {
        padding: 30px 22px;
        margin: 10px 0;
        border-radius: 15px;
    }
    
    .slotsjuicefaq-wrapper .faq-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Mobile Optimizations - Full Width */
@media (max-width: 767px) {
    .slotsjuicefaq-wrapper .container {
        padding: 0;
        max-width: 100%;
    }

    .slotsjuicefaq-wrapper .faq-wrapper {
        padding: 25px 15px;
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .slotsjuicefaq-wrapper .header {
        margin-bottom: 25px;
    }
    
    .slotsjuicefaq-wrapper .header h1::after {
        font-size: 1.2rem;
        right: -35px;
    }
    
    .slotsjuicefaq-wrapper .faq-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .slotsjuicefaq-wrapper .header-top {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .slotsjuicefaq-wrapper .faq-badge {
        align-self: center;
        padding: 8px 16px;
    }
}

/* Small Mobile Optimizations */
@media (max-width: 479px) {
    .slotsjuicefaq-wrapper .faq-wrapper {
        padding: 20px 12px;
    }
    
    .slotsjuicefaq-wrapper .header h1::after {
        font-size: 1rem;
        right: -30px;
    }

    .slotsjuicefaq-wrapper .header-top {
        margin-bottom: 16px;
        gap: 12px;
    }

    .slotsjuicefaq-wrapper .faq-badge {
        padding: 6px 14px;
    }
}



/* Performance Optimizations */
.slotsjuicefaq-wrapper * {
    box-sizing: border-box;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .slotsjuicefaq-wrapper .faq-item,
    .slotsjuicefaq-wrapper .faq-icon,
    .slotsjuicefaq-wrapper .floating-drop {
        animation: none !important;
        transition: none !important;
    }
    
    .slotsjuicefaq-wrapper .header h1::after {
        animation: none !important;
    }
}