/**
 * SlotsGamblers Pros & Cons Widget - Frontend Styles
 *
 * @package SlotsGamblersProsConsWidget
 * @version 1.0.9
 */

/* ========================================
   CSS Custom Properties
   ======================================== */
:root {
    --slotsgamblersproscons-color-green: #10B981;
    --slotsgamblersproscons-color-green-light: #D1FAE5;
    --slotsgamblersproscons-color-red: #EF4444;
    --slotsgamblersproscons-color-red-light: #FEE2E2;
    --slotsgamblersproscons-color-white: #FFFFFF;
    --slotsgamblersproscons-text-primary: #1A1A1A;
    --slotsgamblersproscons-border-color: #E0E0E0;
    --slotsgamblersproscons-spacing-sm: 0.5rem;
    --slotsgamblersproscons-spacing-md: 1rem;
    --slotsgamblersproscons-spacing-lg: 1.5rem;
    --slotsgamblersproscons-spacing-xl: 2rem;
    --slotsgamblersproscons-radius-lg: 0.75rem;
    --slotsgamblersproscons-radius-xl: 1rem;
}

/* ========================================
   Base Widget Styles
   ======================================== */
.slotsgamblersproscons-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--slotsgamblersproscons-text-primary);
    line-height: 1.6;
    width: 100% !important;
    max-width: 75rem !important;
    margin: 0 auto !important;
    background: var(--slotsgamblersproscons-color-white);
    border: 0.125rem solid var(--slotsgamblersproscons-border-color);
    border-radius: var(--slotsgamblersproscons-radius-xl);
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* Ensure widget uses full container width on 32" displays */
.elementor-widget-slotsgamblersproscons {
    width: 100% !important;
    max-width: 100% !important;
}

.elementor-widget-slotsgamblersproscons .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
}

.slotsgamblersproscons-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ========================================
   Header Banner
   ======================================== */
.slotsgamblersproscons-header-banner {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    padding: var(--slotsgamblersproscons-spacing-xl);
    text-align: center;
    border-bottom: 0.0625rem solid rgba(102, 126, 234, 0.3);
}

.slotsgamblersproscons-header-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--slotsgamblersproscons-color-white);
    margin-bottom: var(--slotsgamblersproscons-spacing-sm);
    line-height: 1.2;
    margin-top: 0;
}

.slotsgamblersproscons-header-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   Pros & Cons Section
   ======================================== */
.slotsgamblersproscons-pros-cons-section {
    background: var(--slotsgamblersproscons-color-white);
    padding: var(--slotsgamblersproscons-spacing-xl);
}

.slotsgamblersproscons-pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--slotsgamblersproscons-spacing-lg);
    margin-top: var(--slotsgamblersproscons-spacing-lg);
}

.slotsgamblersproscons-pros-cons-grid[data-columns="1"] {
    grid-template-columns: 1fr;
}

.slotsgamblersproscons-pros-box,
.slotsgamblersproscons-cons-box {
    padding: var(--slotsgamblersproscons-spacing-lg);
    border-radius: var(--slotsgamblersproscons-radius-lg);
    border: 0.125rem solid;
}

.slotsgamblersproscons-pros-box {
    background: var(--slotsgamblersproscons-color-green-light);
    border-color: var(--slotsgamblersproscons-color-green);
}

.slotsgamblersproscons-cons-box {
    background: var(--slotsgamblersproscons-color-red-light);
    border-color: var(--slotsgamblersproscons-color-red);
}

.slotsgamblersproscons-pros-title,
.slotsgamblersproscons-cons-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--slotsgamblersproscons-spacing-md);
    display: flex;
    align-items: center;
    gap: var(--slotsgamblersproscons-spacing-sm);
    margin-top: 0;
}

.slotsgamblersproscons-pros-title {
    color: var(--slotsgamblersproscons-color-green);
}

.slotsgamblersproscons-cons-title {
    color: var(--slotsgamblersproscons-color-red);
}

.slotsgamblersproscons-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--slotsgamblersproscons-spacing-sm);
    margin: 0;
    padding: 0;
}

.slotsgamblersproscons-list-item {
    font-size: 0.9375rem;
    color: var(--slotsgamblersproscons-text-primary);
    display: flex;
    align-items: flex-start;
    gap: var(--slotsgamblersproscons-spacing-sm);
    line-height: 1.5;
}

.slotsgamblersproscons-list-item svg {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-top: 0.125rem;
}

.slotsgamblersproscons-pros-box .slotsgamblersproscons-list-item svg {
    stroke: var(--slotsgamblersproscons-color-green);
}

.slotsgamblersproscons-cons-box .slotsgamblersproscons-list-item svg {
    stroke: var(--slotsgamblersproscons-color-red);
}

.slotsgamblersproscons-list-item span {
    flex: 1;
}

/* ========================================
   Footer Section
   ======================================== */
.slotsgamblersproscons-footer-section {
    background: #F9FAFB;
    padding: var(--slotsgamblersproscons-spacing-xl);
    text-align: left;
    border-top: 0.0625rem solid #E5E7EB;
}

.slotsgamblersproscons-footer-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--slotsgamblersproscons-text-primary);
    margin-bottom: var(--slotsgamblersproscons-spacing-sm);
    line-height: 1.2;
    margin-top: 0;
}

.slotsgamblersproscons-footer-description {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #6B7280;
    line-height: 27px;
    margin: 0;
}

.slotsgamblersproscons-footer-description p {
    margin: 0 0 0.5rem 0;
}

.slotsgamblersproscons-footer-description p:last-child {
    margin-bottom: 0;
}

.slotsgamblersproscons-footer-description strong {
    font-weight: 600;
    color: var(--slotsgamblersproscons-text-primary);
}

.slotsgamblersproscons-footer-description a {
    color: #667EEA;
    text-decoration: none;
    transition: color 0.3s ease;
}

.slotsgamblersproscons-footer-description a:hover {
    color: #764BA2;
    text-decoration: underline;
}

/* ========================================
   Responsive - Tablet & Below (48rem / 768px)
   ======================================== */
@media (max-width: 48rem) {
    /* Mobile Full-Width using calc(-50vw + 50%) technique */
    .slotsgamblersproscons-wrapper {
        width: 100vw !important;
        max-width: none !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }

    /* Override Elementor container constraints on mobile */
    .elementor-widget-slotsgamblersproscons {
        width: 100vw !important;
        max-width: none !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
    }

    .slotsgamblersproscons-header-banner {
        padding: var(--slotsgamblersproscons-spacing-lg) var(--slotsgamblersproscons-spacing-md);
        border-top-left-radius: var(--slotsgamblersproscons-radius-xl) !important;
        border-top-right-radius: var(--slotsgamblersproscons-radius-xl) !important;
    }

    .slotsgamblersproscons-header-title {
        font-size: 1.5rem;
    }

    .slotsgamblersproscons-header-description {
        font-size: 0.875rem;
    }

    .slotsgamblersproscons-pros-cons-section {
        padding: var(--slotsgamblersproscons-spacing-lg) var(--slotsgamblersproscons-spacing-md);
    }

    .slotsgamblersproscons-footer-section {
        padding: var(--slotsgamblersproscons-spacing-lg) var(--slotsgamblersproscons-spacing-md);
        border-bottom-left-radius: var(--slotsgamblersproscons-radius-xl) !important;
        border-bottom-right-radius: var(--slotsgamblersproscons-radius-xl) !important;
    }

    .slotsgamblersproscons-footer-title {
        font-size: 1.125rem;
    }

    .slotsgamblersproscons-footer-description {
        font-size: 0.8125rem;
    }

    .slotsgamblersproscons-pros-cons-grid {
        grid-template-columns: 1fr !important;
        gap: var(--slotsgamblersproscons-spacing-md);
        margin-top: var(--slotsgamblersproscons-spacing-md);
    }

    .slotsgamblersproscons-pros-box,
    .slotsgamblersproscons-cons-box {
        padding: var(--slotsgamblersproscons-spacing-md);
    }

    .slotsgamblersproscons-pros-title,
    .slotsgamblersproscons-cons-title {
        font-size: 1rem;
        margin-bottom: var(--slotsgamblersproscons-spacing-sm);
    }

    .slotsgamblersproscons-list {
        gap: 0.375rem;
    }

    .slotsgamblersproscons-list-item {
        font-size: 0.875rem;
        line-height: 1.4;
    }
}

/* ========================================
   Responsive - Small Mobile (30rem / 480px)
   ======================================== */
@media (max-width: 30rem) {
    .slotsgamblersproscons-pros-title,
    .slotsgamblersproscons-cons-title {
        font-size: 0.9375rem;
    }

    .slotsgamblersproscons-list-item {
        font-size: 0.8125rem;
    }

    .slotsgamblersproscons-list-item svg {
        width: 0.875rem;
        height: 0.875rem;
    }
}

/* ========================================
   Responsive - Large Displays (1920px+)
   ======================================== */
@media (min-width: 120rem) {
    .slotsgamblersproscons-wrapper {
        max-width: 100% !important;
    }
}

/* ========================================
   Elementor Editor Compatibility
   ======================================== */
.elementor-editor-active .slotsgamblersproscons-wrapper {
    min-height: 20rem;
}

/* Ensure visibility in Elementor editor */
.elementor-editor-active .elementor-widget-slotsgamblersproscons {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.elementor-editor-active .elementor-widget-slotsgamblersproscons .elementor-widget-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

