/**
 * SlotsGamblers Game Data Widget - Frontend Styles
 *
 * @package SlotsGamblersGameData
 * @version 1.0.1
 */

/* ========================================
   CSS Variables
======================================== */
:root {
    --sgsgd-color-white: #FFFFFF;
    --sgsgd-color-gray-light: #F7F7F7;
    --sgsgd-text-primary: #1A1A1A;
    --sgsgd-text-secondary: #6B7280;
    --sgsgd-border-color: #E0E0E0;
    --sgsgd-spacing-sm: 0.5rem;
    --sgsgd-spacing-md: 1rem;
    --sgsgd-spacing-lg: 1.5rem;
    --sgsgd-spacing-xl: 2rem;
    --sgsgd-radius-md: 0.5rem;
    --sgsgd-radius-xl: 1rem;
}

/* ========================================
   Widget Wrapper - Scoped Container
======================================== */
.sgsgd-widget-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* ========================================
   Game Data Section
======================================== */
.sgsgd-game-data-section {
    background: var(--sgsgd-color-white);
    border: 0.0625rem solid var(--sgsgd-border-color);
    border-radius: var(--sgsgd-radius-xl);
    padding: var(--sgsgd-spacing-xl);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Force full-width container utilization on all screen sizes */
.elementor-widget-slotsgamblersgamedata {
    width: 100% !important;
    max-width: 100% !important;
}

.elementor-widget-slotsgamblersgamedata .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
}

.elementor-widget-slotsgamblersgamedata .sgsgd-widget-wrapper {
    width: 100% !important;
    max-width: 100% !important;
}

.elementor-widget-slotsgamblersgamedata .sgsgd-game-data-section {
    width: 100% !important;
    max-width: 100% !important;
}

/* ========================================
   Section Title
======================================== */
.sgsgd-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--sgsgd-text-primary);
    margin: 0 0 var(--sgsgd-spacing-lg) 0;
    padding: 0;
    line-height: 1.2;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========================================
   Data Grid
======================================== */
.sgsgd-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sgsgd-spacing-md);
    width: 100%;
}

/* ========================================
   Data Item
======================================== */
.sgsgd-data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--sgsgd-spacing-md);
    background: var(--sgsgd-color-gray-light);
    border-radius: var(--sgsgd-radius-md);
    border: 0.0625rem solid var(--sgsgd-border-color);
    box-sizing: border-box;
    gap: var(--sgsgd-spacing-md);
    flex-wrap: wrap;
}

/* ========================================
   Data Label
======================================== */
.sgsgd-data-label {
    font-size: 0.875rem;
    color: var(--sgsgd-text-secondary);
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

/* ========================================
   Data Value
======================================== */
.sgsgd-data-value {
    font-size: 0.9375rem;
    color: var(--sgsgd-text-primary);
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    text-align: right;
}

/* ========================================
   HTML Links Support
======================================== */
.sgsgd-section-title a,
.sgsgd-data-label a,
.sgsgd-data-value a {
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.sgsgd-section-title a:hover,
.sgsgd-data-label a:hover,
.sgsgd-data-value a:hover {
    opacity: 0.7;
}

.sgsgd-section-title strong,
.sgsgd-data-label strong,
.sgsgd-data-value strong {
    font-weight: 800;
}

.sgsgd-section-title em,
.sgsgd-data-label em,
.sgsgd-data-value em {
    font-style: italic;
}

/* ========================================
   Responsive - Tablet (1024px - 768px)
======================================== */
@media (max-width: 64rem) {
    .sgsgd-game-data-section {
        padding: var(--sgsgd-spacing-lg);
    }

    .sgsgd-section-title {
        font-size: 1.375rem;
    }

    .sgsgd-data-grid {
        gap: 0.875rem;
    }

    .sgsgd-data-item {
        padding: 0.875rem;
    }
}

/* ========================================
   Responsive - Mobile (768px and below)
   Full-Width Edge-to-Edge Layout
======================================== */
@media (max-width: 48rem) {
    /* Override Elementor container constraints for mobile full-width */
    .elementor-widget-slotsgamblersgamedata {
        width: 100vw !important;
        max-width: none !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .elementor-widget-slotsgamblersgamedata .elementor-widget-container {
        width: 100vw !important;
        max-width: none !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .elementor-widget-slotsgamblersgamedata .sgsgd-widget-wrapper {
        width: 100vw !important;
        max-width: none !important;
        margin-left: 0 !important;
    }

    .sgsgd-game-data-section {
        width: 100vw !important;
        max-width: none !important;
        margin-left: 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        padding: var(--sgsgd-spacing-lg) var(--sgsgd-spacing-md);
    }

    .sgsgd-section-title {
        font-size: 1.25rem;
        margin-bottom: var(--sgsgd-spacing-md);
    }

    .sgsgd-data-grid {
        grid-template-columns: 1fr;
        gap: var(--sgsgd-spacing-sm);
    }

    .sgsgd-data-item {
        padding: var(--sgsgd-spacing-sm) var(--sgsgd-spacing-md);
    }

    .sgsgd-data-label {
        font-size: 0.8125rem;
    }

    .sgsgd-data-value {
        font-size: 0.875rem;
    }
}

/* ========================================
   Responsive - Small Mobile (480px and below)
======================================== */
@media (max-width: 30rem) {
    .sgsgd-section-title {
        font-size: 1.125rem;
    }

    .sgsgd-data-item {
        padding: 0.625rem 0.875rem;
        gap: 0.5rem;
    }

    .sgsgd-data-label {
        font-size: 0.75rem;
    }

    .sgsgd-data-value {
        font-size: 0.8125rem;
    }
}

/* ========================================
   Responsive - Large Desktop (1920px and above)
   32" Monitor Full Container Width
======================================== */
@media (min-width: 120rem) {
    .sgsgd-game-data-section {
        padding: 2.5rem;
    }

    .sgsgd-section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .sgsgd-data-grid {
        gap: 1.25rem;
    }

    .sgsgd-data-item {
        padding: 1.25rem;
    }

    .sgsgd-data-label {
        font-size: 1rem;
    }

    .sgsgd-data-value {
        font-size: 1.0625rem;
    }
}

/* ========================================
   Typography Reset for HTML Tag Flexibility
======================================== */
.sgsgd-section-title h1,
.sgsgd-section-title h2,
.sgsgd-section-title h3,
.sgsgd-section-title h4,
.sgsgd-section-title h5,
.sgsgd-section-title h6,
.sgsgd-section-title p,
.sgsgd-section-title div,
.sgsgd-section-title span {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

.sgsgd-data-label h1,
.sgsgd-data-label h2,
.sgsgd-data-label h3,
.sgsgd-data-label h4,
.sgsgd-data-label h5,
.sgsgd-data-label h6,
.sgsgd-data-label p,
.sgsgd-data-label div,
.sgsgd-data-label span {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

.sgsgd-data-value h1,
.sgsgd-data-value h2,
.sgsgd-data-value h3,
.sgsgd-data-value h4,
.sgsgd-data-value h5,
.sgsgd-data-value h6,
.sgsgd-data-value p,
.sgsgd-data-value div,
.sgsgd-data-value span {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

/* ========================================
   Accessibility
======================================== */
.sgsgd-data-item:focus-within {
    outline: 0.125rem solid #4A90E2;
    outline-offset: 0.125rem;
}

/* ========================================
   Print Styles
======================================== */
@media print {
    .sgsgd-game-data-section {
        box-shadow: none;
        border: 0.0625rem solid #000;
    }
}

