/**
 * SlotsGamblers Providers Widget - Frontend Styles
 * 
 * Complete styling for the game providers widget with hero section and provider cards.
 * Features full-width responsive design, mobile-first approach, and performance optimizations.
 * 
 * @package SlotsGamblersProviders
 * @version 1.1.3
 */

/* =========================================
   CSS CUSTOM PROPERTIES
   ========================================= */

.slotsgamblersproviders-widget {
    /* Colors - Purple & Orange Brand */
    --slotsgamblersproviders-color-purple: #9333EA;
    --slotsgamblersproviders-color-purple-light: #F3E8FF;
    --slotsgamblersproviders-color-orange: #FF8C42;
    --slotsgamblersproviders-color-orange-light: #FFF4E6;
    --slotsgamblersproviders-color-green: #10B981;
    --slotsgamblersproviders-color-green-light: #D1FAE5;
    --slotsgamblersproviders-color-red: #EF4444;
    --slotsgamblersproviders-color-white: #FFFFFF;
    --slotsgamblersproviders-color-gray-light: #F7F7F7;
    --slotsgamblersproviders-color-gray-medium: #E0E0E0;
    --slotsgamblersproviders-color-gray-dark: #6B7280;
    --slotsgamblersproviders-color-black: #1A1A1A;
    
    /* Text Colors */
    --slotsgamblersproviders-text-primary: #1A1A1A;
    --slotsgamblersproviders-text-secondary: #6B7280;
    --slotsgamblersproviders-text-muted: #9CA3AF;
    
    /* Border & Background */
    --slotsgamblersproviders-border-color: #E0E0E0;
    --slotsgamblersproviders-background-main: #FFFFFF;
    --slotsgamblersproviders-background-section: #F7F7F7;
    
    /* Gradients */
    --slotsgamblersproviders-brand-gradient: linear-gradient(135deg, #9333EA 0%, #FF8C42 100%);
    
    /* Typography */
    --slotsgamblersproviders-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --slotsgamblersproviders-spacing-xs: 0.25rem;
    --slotsgamblersproviders-spacing-sm: 0.5rem;
    --slotsgamblersproviders-spacing-md: 1rem;
    --slotsgamblersproviders-spacing-lg: 1.5rem;
    --slotsgamblersproviders-spacing-xl: 2rem;
    --slotsgamblersproviders-spacing-2xl: 3rem;
    --slotsgamblersproviders-spacing-3xl: 4rem;
    
    /* Border Radius */
    --slotsgamblersproviders-radius-sm: 0.25rem;
    --slotsgamblersproviders-radius-md: 0.5rem;
    --slotsgamblersproviders-radius-lg: 0.75rem;
    --slotsgamblersproviders-radius-xl: 1rem;
    --slotsgamblersproviders-radius-2xl: 1.5rem;
    --slotsgamblersproviders-radius-full: 9999px;
}

/* =========================================
   BASE WIDGET CONTAINER
   ========================================= */

.slotsgamblersproviders-widget {
    font-family: var(--slotsgamblersproviders-font-primary);
    color: var(--slotsgamblersproviders-text-primary);
    line-height: 1.6;
    position: relative;
    width: 100%;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.slotsgamblersproviders-widget * {
    box-sizing: border-box;
}

/* Main Container */
.slotsgamblersproviders-container {
    max-width: 85rem;
    margin: 0 auto;
    padding: 0 var(--slotsgamblersproviders-spacing-md);
    width: 100%;
}

/* Main Boxed Container */
.slotsgamblersproviders-main-boxed {
    max-width: 100%;
    width: 100%;
    margin: var(--slotsgamblersproviders-spacing-xl) auto var(--slotsgamblersproviders-spacing-2xl);
    background: var(--slotsgamblersproviders-color-white);
    border-radius: var(--slotsgamblersproviders-radius-2xl);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.12), 
                0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 0.0625rem solid rgba(147, 51, 234, 0.1);
}

/* =========================================
   HERO SECTION
   ========================================= */

.slotsgamblersproviders-hero-section {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.95) 0%, rgba(255, 140, 66, 0.95) 100%);
    padding: var(--slotsgamblersproviders-spacing-lg) var(--slotsgamblersproviders-spacing-xl);
    position: relative;
    overflow: hidden;
}

.slotsgamblersproviders-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><circle cx="1" cy="1" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.slotsgamblersproviders-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--slotsgamblersproviders-spacing-lg);
    position: relative;
    z-index: 1;
}

.slotsgamblersproviders-hero-text-group {
    flex: 1;
}

.slotsgamblersproviders-hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--slotsgamblersproviders-color-white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--slotsgamblersproviders-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: var(--slotsgamblersproviders-spacing-xs);
    border: 0.0625rem solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.slotsgamblersproviders-hero-title {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--slotsgamblersproviders-color-white);
    margin-bottom: var(--slotsgamblersproviders-spacing-xs);
    margin-top: 0;
}

.slotsgamblersproviders-hero-description {
    font-size: clamp(0.875rem, 1.5vw + 0.3rem, 1rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin: 0;
}

/* Hero Stats */
.slotsgamblersproviders-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--slotsgamblersproviders-spacing-md);
    flex-shrink: 0;
}

.slotsgamblersproviders-stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    padding: var(--slotsgamblersproviders-spacing-md) var(--slotsgamblersproviders-spacing-lg);
    border-radius: var(--slotsgamblersproviders-radius-lg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 0.0625rem solid rgba(255, 255, 255, 0.2);
}

.slotsgamblersproviders-stat-number {
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
    font-weight: 900;
    color: var(--slotsgamblersproviders-color-white);
    display: block;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.slotsgamblersproviders-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* =========================================
   PROVIDERS SECTION
   ========================================= */

.slotsgamblersproviders-providers-section {
    padding: var(--slotsgamblersproviders-spacing-2xl) 0;
}

/* Providers Grid */
.slotsgamblersproviders-providers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--slotsgamblersproviders-spacing-md);
    margin-bottom: var(--slotsgamblersproviders-spacing-2xl);
}

/* Provider Card */
.slotsgamblersproviders-provider-card {
    background: var(--slotsgamblersproviders-color-white);
    border: 0.0625rem solid var(--slotsgamblersproviders-border-color);
    border-radius: var(--slotsgamblersproviders-radius-xl);
    padding: var(--slotsgamblersproviders-spacing-xl);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: var(--slotsgamblersproviders-spacing-md);
}

.slotsgamblersproviders-provider-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.5rem 1.5rem rgba(147, 51, 234, 0.2);
    border-color: var(--slotsgamblersproviders-color-purple);
}

/* Provider Logo */
.slotsgamblersproviders-provider-logo {
    width: 100%;
    height: 8rem;
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
    border-radius: var(--slotsgamblersproviders-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.slotsgamblersproviders-provider-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--slotsgamblersproviders-brand-gradient);
    opacity: 0.1;
}

.slotsgamblersproviders-provider-logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--slotsgamblersproviders-color-white);
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Provider Badge */
.slotsgamblersproviders-provider-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--slotsgamblersproviders-color-orange);
    color: var(--slotsgamblersproviders-color-white);
    padding: 0.25rem 0.625rem;
    border-radius: var(--slotsgamblersproviders-radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.slotsgamblersproviders-provider-badge.slotsgamblersproviders-badge-featured {
    background: var(--slotsgamblersproviders-color-purple);
}

.slotsgamblersproviders-provider-badge.slotsgamblersproviders-badge-new {
    background: var(--slotsgamblersproviders-color-green);
}

/* Provider Info */
.slotsgamblersproviders-provider-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.slotsgamblersproviders-provider-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--slotsgamblersproviders-text-primary);
    margin-bottom: var(--slotsgamblersproviders-spacing-xs);
    margin-top: 0;
}

.slotsgamblersproviders-provider-description {
    font-size: 0.875rem;
    color: var(--slotsgamblersproviders-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--slotsgamblersproviders-spacing-md);
    margin-top: 0;
}

/* Provider Stats */
.slotsgamblersproviders-provider-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--slotsgamblersproviders-spacing-sm);
    padding: var(--slotsgamblersproviders-spacing-sm) var(--slotsgamblersproviders-spacing-md);
    background: var(--slotsgamblersproviders-color-gray-light);
    border-radius: var(--slotsgamblersproviders-radius-md);
    margin-bottom: var(--slotsgamblersproviders-spacing-md);
}

.slotsgamblersproviders-stat-box {
    text-align: center;
}

.slotsgamblersproviders-stat-box-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--slotsgamblersproviders-color-purple);
    display: block;
}

.slotsgamblersproviders-stat-box-label {
    font-size: 0.75rem;
    color: var(--slotsgamblersproviders-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Provider Features */
.slotsgamblersproviders-provider-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--slotsgamblersproviders-spacing-xs);
    margin-bottom: var(--slotsgamblersproviders-spacing-md);
}

.slotsgamblersproviders-feature-tag {
    background: var(--slotsgamblersproviders-color-purple-light);
    color: var(--slotsgamblersproviders-color-purple);
    padding: 0.25rem 0.625rem;
    border-radius: var(--slotsgamblersproviders-radius-md);
    font-size: 0.75rem;
    font-weight: 600;
}

.slotsgamblersproviders-feature-tag.slotsgamblersproviders-orange {
    background: var(--slotsgamblersproviders-color-orange-light);
    color: var(--slotsgamblersproviders-color-orange);
}

.slotsgamblersproviders-feature-tag.slotsgamblersproviders-green {
    background: var(--slotsgamblersproviders-color-green-light);
    color: var(--slotsgamblersproviders-color-green);
}

/* Provider Action Buttons */
.slotsgamblersproviders-provider-action {
    display: flex;
    gap: var(--slotsgamblersproviders-spacing-sm);
    margin-top: auto;
}

/* =========================================
   BUTTONS
   ========================================= */

.slotsgamblersproviders-btn {
    flex: 1;
    padding: 0.625rem 0.75rem;
    border-radius: var(--slotsgamblersproviders-radius-md);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.slotsgamblersproviders-btn-primary {
    background: var(--slotsgamblersproviders-color-green);
    color: var(--slotsgamblersproviders-color-white);
}

.slotsgamblersproviders-btn-primary:hover {
    background: #059669;
    transform: translateY(-0.0625rem);
    box-shadow: 0 0.375rem 1rem rgba(16, 185, 129, 0.3);
}

.slotsgamblersproviders-btn-secondary {
    background: transparent;
    color: var(--slotsgamblersproviders-color-purple);
    border: 0.125rem solid var(--slotsgamblersproviders-color-purple);
}

.slotsgamblersproviders-btn-secondary:hover {
    background: var(--slotsgamblersproviders-color-purple);
    color: var(--slotsgamblersproviders-color-white);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

/* Desktop & Large Screens (1920px+) - Full Width */
@media (min-width: 120rem) {
    .slotsgamblersproviders-main-boxed {
        max-width: 100% !important;
    }
    
    .slotsgamblersproviders-container {
        max-width: 100rem;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 48rem) {
    .slotsgamblersproviders-main-boxed {
        margin: var(--slotsgamblersproviders-spacing-md) 0 var(--slotsgamblersproviders-spacing-xl) 0 !important;
        border-radius: var(--slotsgamblersproviders-radius-xl);
        width: 100% !important;
        max-width: 100% !important;
    }

    .slotsgamblersproviders-hero-section {
        padding: var(--slotsgamblersproviders-spacing-md);
    }

    .slotsgamblersproviders-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .slotsgamblersproviders-hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--slotsgamblersproviders-spacing-sm);
    }

    .slotsgamblersproviders-stat-item {
        padding: var(--slotsgamblersproviders-spacing-sm) var(--slotsgamblersproviders-spacing-md);
    }

    .slotsgamblersproviders-providers-section {
        padding: var(--slotsgamblersproviders-spacing-lg) 0;
    }
    
    /* Mobile Full-Width - Custom Asymmetric Padding - FORCE OVERRIDE */
    .slotsgamblersproviders-providers-grid {
        grid-template-columns: 1fr !important;
        gap: var(--slotsgamblersproviders-spacing-md) !important;
        width: 100vw !important;
        max-width: none !important;
        margin-left: calc(-50vw + 50%) !important;
        padding-top: 0 !important;
        padding-right: var(--slotsgamblersproviders-spacing-md) !important;
        padding-bottom: 0 !important;
        padding-left: 5px !important;
    }
    
    /* Extra Elementor Override */
    .elementor-widget-slotsgamblersproviders .slotsgamblersproviders-providers-grid,
    .elementor-element .slotsgamblersproviders-providers-grid {
        width: 100vw !important;
        max-width: none !important;
        margin-left: calc(-50vw + 50%) !important;
        padding-left: 5px !important;
        padding-right: var(--slotsgamblersproviders-spacing-md) !important;
    }
    
    .slotsgamblersproviders-provider-card {
        padding: var(--slotsgamblersproviders-spacing-md);
    }
    
    .slotsgamblersproviders-provider-logo {
        height: 5rem;
    }
    
    .slotsgamblersproviders-provider-logo-text {
        font-size: 1rem;
    }
    
    .slotsgamblersproviders-provider-name {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .slotsgamblersproviders-provider-description {
        font-size: 0.75rem;
        margin-bottom: var(--slotsgamblersproviders-spacing-sm);
    }
    
    .slotsgamblersproviders-provider-stats {
        padding: var(--slotsgamblersproviders-spacing-sm);
        margin-bottom: var(--slotsgamblersproviders-spacing-sm);
        gap: var(--slotsgamblersproviders-spacing-xs);
    }
    
    .slotsgamblersproviders-stat-box-value {
        font-size: 1.125rem;
    }
    
    .slotsgamblersproviders-stat-box-label {
        font-size: 0.625rem;
    }
    
    .slotsgamblersproviders-provider-features {
        gap: 0.125rem;
        margin-bottom: var(--slotsgamblersproviders-spacing-sm);
    }
    
    .slotsgamblersproviders-feature-tag {
        font-size: 0.625rem;
        padding: 0.1875rem 0.375rem;
    }
    
    .slotsgamblersproviders-provider-badge {
        font-size: 0.625rem;
        padding: 0.1875rem 0.375rem;
    }

    .slotsgamblersproviders-provider-action {
        flex-direction: column;
    }

    .slotsgamblersproviders-btn {
        width: 100%;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 30rem) {
    .slotsgamblersproviders-hero-stats {
        gap: var(--slotsgamblersproviders-spacing-xs);
    }
    
    .slotsgamblersproviders-stat-item {
        padding: var(--slotsgamblersproviders-spacing-xs) var(--slotsgamblersproviders-spacing-sm);
    }
}

/* =========================================
   ELEMENTOR EDITOR COMPATIBILITY
   ========================================= */

.elementor-editor-active .slotsgamblersproviders-widget {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 300px !important;
}

.elementor-editor-active .slotsgamblersproviders-main-boxed {
    display: block !important;
    visibility: visible !important;
}

/* =========================================
   PRINT STYLES
   ========================================= */

@media print {
    .slotsgamblersproviders-widget {
        background: white;
    }
    
    .slotsgamblersproviders-provider-card {
        break-inside: avoid;
    }
}

