/**
 * SlotsGamblers Where to Play Widget Styles
 * 
 * @package SlotsGamblersWhereToPlay
 * @version 1.0.1
 * 
 * Scoped CSS with sgwtp- prefix to prevent conflicts
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --sgwtp-color-purple: #9333EA;
    --sgwtp-color-purple-light: #A855F7;
    --sgwtp-color-pink: #EC4899;
    --sgwtp-color-orange: #FF8C42;
    --sgwtp-color-green: #10B981;
    --sgwtp-color-white: #FFFFFF;
    --sgwtp-color-gray-light: #F7F7F7;
    --sgwtp-text-primary: #1A1A1A;
    --sgwtp-text-secondary: #6B7280;
    --sgwtp-border-color: #E0E0E0;
    --sgwtp-spacing-sm: 0.5rem;
    --sgwtp-spacing-md: 1rem;
    --sgwtp-spacing-lg: 1.5rem;
    --sgwtp-spacing-xl: 2rem;
    --sgwtp-radius-md: 0.5rem;
    --sgwtp-radius-lg: 0.75rem;
    --sgwtp-radius-xl: 1rem;
}

/* ========================================
   Main Container
   ======================================== */
.sgwtp-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--sgwtp-color-white);
    border: 0.0625rem solid var(--sgwtp-border-color);
    border-radius: var(--sgwtp-radius-xl);
    padding: var(--sgwtp-spacing-xl);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
    max-width: 100%;
    margin: 0 auto;
}

/* ========================================
   Section Title
   ======================================== */
.sgwtp-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--sgwtp-text-primary);
    margin: 0 0 var(--sgwtp-spacing-lg) 0;
    line-height: 1.2;
}

/* ========================================
   Casino Cards Grid
   ======================================== */
.sgwtp-grid {
    display: grid;
    gap: var(--sgwtp-spacing-lg);
    margin-top: var(--sgwtp-spacing-lg);
}

/* Desktop Grid */
.sgwtp-grid-desktop-1 {
    grid-template-columns: 1fr;
}

.sgwtp-grid-desktop-2 {
    grid-template-columns: repeat(2, 1fr);
}

.sgwtp-grid-desktop-3 {
    grid-template-columns: repeat(3, 1fr);
}

.sgwtp-grid-desktop-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ========================================
   Casino Card
   ======================================== */
.sgwtp-card {
    background: var(--sgwtp-color-white);
    border: 0.125rem solid var(--sgwtp-border-color);
    border-radius: var(--sgwtp-radius-lg);
    padding: var(--sgwtp-spacing-lg);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.sgwtp-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.5rem 1.5rem rgba(147, 51, 234, 0.15);
    border-color: var(--sgwtp-color-purple);
}

/* ========================================
   Card Badge
   ======================================== */
.sgwtp-badge {
    position: absolute;
    top: -0.625rem;
    right: -0.625rem;
    background: linear-gradient(135deg, var(--sgwtp-color-purple) 0%, var(--sgwtp-color-orange) 100%);
    color: var(--sgwtp-color-white);
    padding: 0.25rem 0.625rem;
    border-radius: var(--sgwtp-radius-md);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 0.25rem 0.5rem rgba(147, 51, 234, 0.3);
}

/* ========================================
   Card Logo
   ======================================== */
.sgwtp-logo {
    width: 5rem;
    height: 5rem;
    background: var(--sgwtp-color-gray-light);
    border: 0.125rem solid var(--sgwtp-border-color);
    border-radius: var(--sgwtp-radius-md);
    margin: 0 auto var(--sgwtp-spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* ========================================
   Card Content
   ======================================== */
.sgwtp-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--sgwtp-text-primary);
    margin: 0 0 var(--sgwtp-spacing-sm) 0;
}

.sgwtp-bonus {
    font-size: 0.9375rem;
    color: var(--sgwtp-color-orange);
    font-weight: 700;
    margin-bottom: var(--sgwtp-spacing-md);
}

/* ========================================
   Card Features
   ======================================== */
.sgwtp-features {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: var(--sgwtp-spacing-md);
}

.sgwtp-feature {
    font-size: 0.8125rem;
    color: var(--sgwtp-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.sgwtp-feature::before {
    content: '✓';
    color: var(--sgwtp-color-green);
    font-weight: 700;
}

/* ========================================
   CTA Button
   ======================================== */
.sgwtp-cta {
    display: inline-block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--sgwtp-color-green);
    color: var(--sgwtp-color-white);
    border: none;
    border-radius: var(--sgwtp-radius-md);
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.25rem 0.75rem rgba(16, 185, 129, 0.3);
}

.sgwtp-cta:hover {
    background: #0D9F6E;
    transform: translateY(-0.125rem);
    box-shadow: 0 0.375rem 1rem rgba(16, 185, 129, 0.4);
    color: var(--sgwtp-color-white);
    text-decoration: none;
}

/* ========================================
   Shimmer Animation
   ======================================== */
@keyframes sgwtpShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ========================================
   Responsive - Tablet Large (64rem / 1024px)
   ======================================== */
@media (max-width: 64rem) {
    .sgwtp-grid-tablet-1 {
        grid-template-columns: 1fr;
    }
    
    .sgwtp-grid-tablet-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sgwtp-grid-tablet-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .sgwtp-grid-tablet-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   Responsive - Mobile (48rem / 768px)
   ======================================== */
@media (max-width: 48rem) {
    /* Mobile Full-Width Container - Edge to Edge */
    .elementor-widget-slotsgamblerswheretoplay .sgwtp-wrapper {
        width: 100vw !important;
        max-width: none !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 0 var(--sgwtp-spacing-md) var(--sgwtp-spacing-lg);
    }

    /* Mobile Banner Style - 2026 Rounded Banner Design */
    .elementor-widget-slotsgamblerswheretoplay .sgwtp-section-title {
        font-size: 1.25rem;
        margin-bottom: var(--sgwtp-spacing-lg);
        width: calc(100vw - 2rem) !important;
        max-width: none !important;
        margin-left: calc(-50vw + 50% + 1rem) !important;
        margin-right: calc(-50vw + 50% + 1rem) !important;
        background: linear-gradient(135deg, 
            #9333EA 0%, 
            #A855F7 35%,
            #EC4899 65%,
            #FF8C42 100%);
        color: var(--sgwtp-color-white);
        padding: 1.75rem 1.5rem;
        text-align: center;
        position: relative;
        font-weight: 800;
        letter-spacing: -0.03em;
        line-height: 1.3;
        border-radius: 1rem;
        box-shadow: 
            0 0.625rem 2.5rem rgba(147, 51, 234, 0.4),
            0 0.25rem 1rem rgba(236, 72, 153, 0.3),
            inset 0 0.125rem 0.25rem rgba(255, 255, 255, 0.25);
        overflow: hidden;
    }

    /* Shimmer Effect on Banner */
    .elementor-widget-slotsgamblerswheretoplay .sgwtp-section-title::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.15) 50%,
            transparent 100%
        );
        animation: sgwtpShimmer 2.5s ease-in-out infinite;
        pointer-events: none;
        z-index: 1;
    }

    /* Soft Glow Below Banner */
    .elementor-widget-slotsgamblerswheretoplay .sgwtp-section-title::after {
        content: '';
        position: absolute;
        bottom: -1rem;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        height: 1.5rem;
        background: radial-gradient(ellipse at center, 
            rgba(147, 51, 234, 0.3) 0%, 
            rgba(236, 72, 153, 0.2) 50%,
            transparent 100%
        );
        filter: blur(0.5rem);
        pointer-events: none;
        z-index: -1;
    }

    /* Mobile Grid - Single Column */
    .sgwtp-grid-mobile-1 {
        grid-template-columns: 1fr;
    }
    
    .sgwtp-grid-mobile-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .elementor-widget-slotsgamblerswheretoplay .sgwtp-grid {
        gap: 0.75rem;
        margin-top: var(--sgwtp-spacing-md);
    }

    /* Compact Vertical Card Layout */
    .elementor-widget-slotsgamblerswheretoplay .sgwtp-card {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.625rem;
    }

    .elementor-widget-slotsgamblerswheretoplay .sgwtp-badge {
        top: -0.375rem;
        right: -0.375rem;
        padding: 0.1875rem 0.5rem;
        font-size: 0.625rem;
    }

    .elementor-widget-slotsgamblerswheretoplay .sgwtp-logo {
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
        margin: 0 auto 0.375rem;
    }

    .elementor-widget-slotsgamblerswheretoplay .sgwtp-name {
        font-size: 0.9375rem;
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }

    .elementor-widget-slotsgamblerswheretoplay .sgwtp-bonus {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    /* 2-Column Features Grid on Mobile */
    .elementor-widget-slotsgamblerswheretoplay .sgwtp-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.375rem 0.5rem;
        margin-bottom: 0.625rem;
    }

    .elementor-widget-slotsgamblerswheretoplay .sgwtp-feature {
        font-size: 0.6875rem;
        justify-content: flex-start;
        line-height: 1.2;
    }

    .elementor-widget-slotsgamblerswheretoplay .sgwtp-feature::before {
        font-size: 0.625rem;
        flex-shrink: 0;
    }

    .elementor-widget-slotsgamblerswheretoplay .sgwtp-cta {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
        margin-top: 0.125rem;
    }
}

/* ========================================
   Responsive - Small Mobile (30rem / 480px)
   ======================================== */
@media (max-width: 30rem) {
    .elementor-widget-slotsgamblerswheretoplay .sgwtp-section-title {
        font-size: 1.125rem;
        padding: 1.75rem 1rem 2.75rem;
    }

    .elementor-widget-slotsgamblerswheretoplay .sgwtp-card {
        padding: 0.875rem;
    }

    .elementor-widget-slotsgamblerswheretoplay .sgwtp-logo {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }

    .elementor-widget-slotsgamblerswheretoplay .sgwtp-name {
        font-size: 0.875rem;
    }

    .elementor-widget-slotsgamblerswheretoplay .sgwtp-bonus {
        font-size: 0.75rem;
    }

    .elementor-widget-slotsgamblerswheretoplay .sgwtp-feature {
        font-size: 0.625rem;
    }
}

/* ========================================
   Large Display Optimization (32" / 2560px+)
   ======================================== */
@media (min-width: 120rem) {
    .sgwtp-wrapper {
        max-width: 100%;
        padding: 2.5rem;
    }

    .sgwtp-section-title {
        font-size: 2rem;
    }

    .sgwtp-card {
        padding: 2rem;
    }

    .sgwtp-logo {
        width: 6rem;
        height: 6rem;
        font-size: 2.5rem;
    }

    .sgwtp-name {
        font-size: 1.375rem;
    }

    .sgwtp-bonus {
        font-size: 1.125rem;
    }

    .sgwtp-feature {
        font-size: 1rem;
    }

    .sgwtp-cta {
        font-size: 1.125rem;
        padding: 1rem 2rem;
    }
}

/* ========================================
   Elementor Editor Compatibility
   ======================================== */
.elementor-editor-active .sgwtp-wrapper {
    min-height: 20rem;
}

.elementor-editor-active .sgwtp-grid {
    min-height: 15rem;
}

/* Ensure visibility in Elementor editor */
.elementor-widget-slotsgamblerswheretoplay {
    display: block !important;
    visibility: visible !important;
}

.elementor-widget-slotsgamblerswheretoplay .sgwtp-wrapper {
    display: block !important;
    visibility: visible !important;
}

