/**
 * Slots Gamblers Hero Section Widget Styles
 * Version: 1.0.2
 * 
 * @package SlotsgamblersHeroSection
 */

/* ========================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ======================================== */
:root {
    --slotsgamblersherosection-purple: #9333EA;
    --slotsgamblersherosection-purple-light: #F3E8FF;
    --slotsgamblersherosection-orange: #FF8C42;
    --slotsgamblersherosection-green: #10B981;
    --slotsgamblersherosection-red: #EF4444;
    --slotsgamblersherosection-white: #FFFFFF;
    --slotsgamblersherosection-bg-main: #F9FAFB;
    --slotsgamblersherosection-spacing-sm: clamp(0.5rem, 0.6vw, 0.75rem);
    --slotsgamblersherosection-spacing-md: clamp(0.75rem, 0.9vw, 1rem);
    --slotsgamblersherosection-spacing-lg: clamp(1rem, 1.2vw, 1.5rem);
    --slotsgamblersherosection-spacing-xl: clamp(1.25rem, 1.5vw, 2rem);
    --slotsgamblersherosection-radius-sm: clamp(0.375rem, 0.4vw, 0.5rem);
    --slotsgamblersherosection-radius-md: clamp(0.5rem, 0.6vw, 0.75rem);
    --slotsgamblersherosection-radius-lg: clamp(0.75rem, 0.9vw, 1rem);
    --slotsgamblersherosection-radius-xl: clamp(1rem, 1.2vw, 1.5rem);
}

/* ========================================
   WRAPPER & CONTAINER
   ======================================== */
.slotsgamblersherosection__wrapper {
    width: 100%;
    position: relative;
}

.slotsgamblersherosection__container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* ========================================
   HERO SECTION
   ======================================== */
.slotsgamblersherosection__hero {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    border-radius: var(--slotsgamblersherosection-radius-xl);
    padding: var(--slotsgamblersherosection-spacing-xl);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--slotsgamblersherosection-spacing-xl);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 140, 66, 0.3);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    align-items: center;
}

/* Layout: Vertical (Stacked) */
.slotsgamblersherosection__layout-vertical {
    grid-template-columns: 1fr;
}

/* Glow Effect */
.slotsgamblersherosection__glow {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

/* ========================================
   HERO CONTENT
   ======================================== */
.slotsgamblersherosection__content {
    position: relative;
    z-index: 2;
}

/* Badge */
.slotsgamblersherosection__badge {
    display: inline-block;
    background: rgba(147, 51, 234, 0.2);
    color: var(--slotsgamblersherosection-purple-light);
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--slotsgamblersherosection-spacing-md);
    border: 1px solid var(--slotsgamblersherosection-purple);
    line-height: 1.4;
}

/* Title (H1-H6 or P) */
.slotsgamblersherosection__title {
    font-size: clamp(1.5rem, 2vw + 0.5rem, 2.5rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: var(--slotsgamblersherosection-spacing-sm);
    color: var(--slotsgamblersherosection-white);
    margin-top: 0;
}

/* Title as P tag inherits same styles */
p.slotsgamblersherosection__title {
    font-size: clamp(1.5rem, 2vw + 0.5rem, 2.5rem);
    font-weight: 900;
    line-height: 1.3;
}

/* Description */
.slotsgamblersherosection__description {
    font-size: clamp(0.875rem, 0.9vw + 0.3rem, 1.125rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: var(--slotsgamblersherosection-spacing-md);
}

.slotsgamblersherosection__description p {
    margin: 0 0 0.5em 0;
}

.slotsgamblersherosection__description p:last-child {
    margin-bottom: 0;
}

/* CTA Button */
.slotsgamblersherosection__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--slotsgamblersherosection-orange);
    color: var(--slotsgamblersherosection-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--slotsgamblersherosection-radius-md);
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    line-height: 1.4;
}

.slotsgamblersherosection__cta:hover {
    background: #E67A31;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255, 140, 66, 0.3);
    text-decoration: none;
}

/* ========================================
   FEATURE CARDS WRAPPER & SLIDER
   ======================================== */
.slotsgamblersherosection__cards-wrapper {
    display: flex;
    gap: var(--slotsgamblersherosection-spacing-md);
    position: relative;
    z-index: 2;
    width: clamp(384px, 30vw, 512px);
    overflow: hidden;
}

/* Fade gradient overlays for slider edges */
.slotsgamblersherosection__cards-wrapper::before,
.slotsgamblersherosection__cards-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    z-index: 10;
    pointer-events: none;
}

.slotsgamblersherosection__cards-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #1F2937, transparent);
}

.slotsgamblersherosection__cards-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #111827, transparent);
}

/* Cards Slider */
.slotsgamblersherosection__cards-slider {
    display: flex;
    gap: var(--slotsgamblersherosection-spacing-md);
}

/* Auto-slide animation */
.slotsgamblersherosection__auto-slide {
    animation: slotsgamblersherosection-slide 16s linear infinite;
}

@keyframes slotsgamblersherosection-slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.slotsgamblersherosection__cards-slider:hover {
    animation-play-state: paused;
}

/* ========================================
   FEATURE CARDS
   ======================================== */
.slotsgamblersherosection__card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--slotsgamblersherosection-radius-lg);
    padding: var(--slotsgamblersherosection-spacing-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    width: clamp(192px, 14vw, 240px);
}

/* Individual card border colors (default) */
.slotsgamblersherosection__card--1 {
    border-left: 4px solid var(--slotsgamblersherosection-green);
    border-right: 1px solid rgba(16, 185, 129, 0.3);
}

.slotsgamblersherosection__card--2 {
    border-left: 4px solid var(--slotsgamblersherosection-red);
    border-right: 1px solid rgba(239, 68, 68, 0.3);
}

.slotsgamblersherosection__card--3 {
    border-left: 4px solid var(--slotsgamblersherosection-orange);
    border-right: 1px solid rgba(255, 140, 66, 0.3);
}

.slotsgamblersherosection__card--4 {
    border-left: 4px solid var(--slotsgamblersherosection-purple);
    border-right: 1px solid rgba(147, 51, 234, 0.3);
}

/* Card hover effects */
.slotsgamblersherosection__card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.slotsgamblersherosection__card--1:hover {
    border-left-color: var(--slotsgamblersherosection-green);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4), 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.slotsgamblersherosection__card--2:hover {
    border-left-color: var(--slotsgamblersherosection-red);
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.4), 0 0 0 1px rgba(239, 68, 68, 0.2);
}

.slotsgamblersherosection__card--3:hover {
    border-left-color: var(--slotsgamblersherosection-orange);
    box-shadow: 0 12px 32px rgba(255, 140, 66, 0.4), 0 0 0 1px rgba(255, 140, 66, 0.2);
}

.slotsgamblersherosection__card--4:hover {
    border-left-color: var(--slotsgamblersherosection-purple);
    box-shadow: 0 12px 32px rgba(147, 51, 234, 0.4), 0 0 0 1px rgba(147, 51, 234, 0.2);
}

/* Card Header */
.slotsgamblersherosection__card-header {
    display: flex;
    align-items: center;
    gap: var(--slotsgamblersherosection-spacing-sm);
    margin-bottom: var(--slotsgamblersherosection-spacing-sm);
}

/* Card Icon */
.slotsgamblersherosection__card-icon {
    font-size: 1.875rem;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slotsgamblersherosection__card-icon svg {
    width: 32px;
    height: 32px;
    display: block;
}

/* Card Title (H2-H6 or P) */
.slotsgamblersherosection__card-title {
    font-size: clamp(0.9375rem, 0.9vw + 0.3rem, 1.125rem);
    font-weight: 800;
    color: var(--slotsgamblersherosection-white);
    line-height: 1.3;
    margin: 0;
}

/* Card Title as P tag inherits same styles */
p.slotsgamblersherosection__card-title {
    font-size: clamp(0.9375rem, 0.9vw + 0.3rem, 1.125rem);
    font-weight: 800;
    line-height: 1.3;
}

/* Card Text */
.slotsgamblersherosection__card-text {
    font-size: clamp(0.8125rem, 0.8vw + 0.2rem, 1rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: var(--slotsgamblersherosection-spacing-md);
    margin-top: 0;
}

/* Card Link */
.slotsgamblersherosection__card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.375rem 0.75rem 0.375rem 0;
    border-radius: var(--slotsgamblersherosection-radius-sm);
}

.slotsgamblersherosection__card-link:hover {
    gap: 0.625rem;
    transform: translateX(4px);
    text-decoration: none;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Large Screens (32" displays and above - 1920px+) */
@media (min-width: 1920px) {
    .slotsgamblersherosection__cards-wrapper {
        width: 576px;
    }

    .slotsgamblersherosection__card {
        width: 272px;
    }
}

/* Desktop & Laptop (1200px - 1920px) */
@media (min-width: 1200px) and (max-width: 1919px) {
    .slotsgamblersherosection__hero {
        padding: clamp(2rem, 2.5vw, 3rem);
    }
}

/* Tablet & Small Laptop (768px - 1199px) */
@media (max-width: 1199px) {
    .slotsgamblersherosection__hero {
        grid-template-columns: 1fr;
        gap: var(--slotsgamblersherosection-spacing-lg);
    }

    .slotsgamblersherosection__cards-wrapper {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        position: relative;
    }
    
    /* Hide scrollbar but keep functionality */
    .slotsgamblersherosection__cards-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    /* Show gradient hint on right side only */
    .slotsgamblersherosection__cards-wrapper::before {
        display: none !important;
    }
    
    .slotsgamblersherosection__cards-wrapper::after {
        content: '→';
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: linear-gradient(to left, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.7) 50%, transparent 100%);
        width: 50px;
        font-size: 24px;
        color: rgba(255, 255, 255, 0.6);
        pointer-events: none;
        animation: scrollHint 2s ease-in-out infinite;
    }
    
    @keyframes scrollHint {
        0%, 100% {
            opacity: 0.6;
            transform: translateX(0);
        }
        50% {
            opacity: 1;
            transform: translateX(-5px);
        }
    }

    /* Disable auto-slide animation on mobile */
    .slotsgamblersherosection__cards-slider {
        animation: none !important;
        display: flex;
        gap: var(--slotsgamblersherosection-spacing-md);
    }

    .slotsgamblersherosection__card {
        width: clamp(176px, 45vw, 240px);
        min-width: 176px;
    }
}

/* Mobile Devices (320px - 767px) */
@media (max-width: 767px) {
    .slotsgamblersherosection__hero {
        padding: clamp(0.75rem, 3vw, 1rem);
        border-radius: clamp(0.75rem, 2vw, 1rem);
    }

    .slotsgamblersherosection__title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .slotsgamblersherosection__badge,
    .slotsgamblersherosection__description,
    .slotsgamblersherosection__cta {
        font-size: 0.875rem;
    }

    .slotsgamblersherosection__card {
        width: clamp(140px, 40vw, 180px);
        min-width: 140px;
    }

    /* Touch-friendly button sizing */
    .slotsgamblersherosection__cta {
        min-height: 44px;
        padding: 0.875rem 1.25rem;
    }
}

/* ========================================
   MOBILE FULL-WIDTH TECHNIQUE
   Edge-to-edge layout breaking out of containers
   ======================================== */
@media (max-width: 768px) {
    .slotsgamblersherosection__mobile-fullwidth {
        width: 100vw !important;
        position: relative !important;
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        max-width: 100vw !important;
    }

    /* Override Elementor container constraints */
    .elementor-widget-slotsgamblersherosection .slotsgamblersherosection__mobile-fullwidth {
        width: 100vw !important;
        left: 50% !important;
        margin-left: -50vw !important;
    }

    /* Ensure hero stretches full width on mobile */
    .slotsgamblersherosection__mobile-fullwidth .slotsgamblersherosection__container {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .slotsgamblersherosection__mobile-fullwidth .slotsgamblersherosection__hero {
        border-top-left-radius: var(--slotsgamblersherosection-radius-xl) !important;
        border-top-right-radius: var(--slotsgamblersherosection-radius-xl) !important;
        border-bottom-left-radius: var(--slotsgamblersherosection-radius-xl) !important;
        border-bottom-right-radius: var(--slotsgamblersherosection-radius-xl) !important;
        border-left: none !important;
        border-right: none !important;
    }
}

/* ========================================
   ELEMENTOR EDITOR COMPATIBILITY
   ======================================== */
.elementor-editor-active .slotsgamblersherosection__auto-slide {
    animation: none;
}

.elementor-editor-active .slotsgamblersherosection__cards-slider {
    flex-wrap: nowrap;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.slotsgamblersherosection__cta:focus,
.slotsgamblersherosection__card-link:focus {
    outline: 2px solid var(--slotsgamblersherosection-orange);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .slotsgamblersherosection__auto-slide {
        animation: none;
    }

    .slotsgamblersherosection__card,
    .slotsgamblersherosection__cta,
    .slotsgamblersherosection__card-link {
        transition: none;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .slotsgamblersherosection__glow {
        display: none;
    }

    .slotsgamblersherosection__hero {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

