/**
 * SlotsGamblers Game Player Widget Styles
 * 
 * @package SlotsGamblersGamePlayer
 * @version 1.0.0
 * @description High-performance, conflict-free styles with mobile full-width support
 */

/* ========================================
   CSS CUSTOM PROPERTIES (CSS VARIABLES)
   ======================================== */
:root {
    --slotsgamblersgameplayer-color-purple: #9333EA;
    --slotsgamblersgameplayer-color-purple-hover: #7C26CC;
    --slotsgamblersgameplayer-color-green: #10B981;
    --slotsgamblersgameplayer-color-green-hover: #0D9F6E;
    --slotsgamblersgameplayer-color-white: #FFFFFF;
    --slotsgamblersgameplayer-color-black: #1A1A1A;
    --slotsgamblersgameplayer-text-primary: #1A1A1A;
    --slotsgamblersgameplayer-border-color: #E0E0E0;
    --slotsgamblersgameplayer-bg-light: #F9FAFB;
    --slotsgamblersgameplayer-spacing-xs: 0.5rem;
    --slotsgamblersgameplayer-spacing-sm: 0.75rem;
    --slotsgamblersgameplayer-spacing-md: 1rem;
    --slotsgamblersgameplayer-spacing-lg: 1.5rem;
    --slotsgamblersgameplayer-spacing-xl: 2rem;
    --slotsgamblersgameplayer-radius-sm: 0.25rem;
    --slotsgamblersgameplayer-radius-md: 0.5rem;
    --slotsgamblersgameplayer-radius-lg: 0.75rem;
    --slotsgamblersgameplayer-radius-xl: 1rem;
    --slotsgamblersgameplayer-transition-fast: 0.15s ease;
    --slotsgamblersgameplayer-transition-normal: 0.3s ease;
    --slotsgamblersgameplayer-transition-slow: 0.5s ease;
}

/* ========================================
   WIDGET WRAPPER
   ======================================== */
.slotsgamblersgameplayer-widget-wrapper {
    width: 100%;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
}

.slotsgamblersgameplayer-widget-wrapper * {
    box-sizing: border-box;
}

/* ========================================
   GAME PLAYER CONTAINER
   ======================================== */
.slotsgamblersgameplayer-game-player {
    background: var(--slotsgamblersgameplayer-color-white);
    border: 0.0625rem solid var(--slotsgamblersgameplayer-border-color);
    border-radius: var(--slotsgamblersgameplayer-radius-xl);
    padding: var(--slotsgamblersgameplayer-spacing-xl);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
    max-width: 75rem;
    margin: 0 auto;
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   PLAYER HEADER
   ======================================== */
.slotsgamblersgameplayer-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--slotsgamblersgameplayer-spacing-lg);
    gap: var(--slotsgamblersgameplayer-spacing-md);
    flex-wrap: wrap;
}

/* ========================================
   PLAYER TITLE
   ======================================== */
.slotsgamblersgameplayer-player-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--slotsgamblersgameplayer-text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}

/* ========================================
   FULLSCREEN BUTTON
   ======================================== */
.slotsgamblersgameplayer-fullscreen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--slotsgamblersgameplayer-color-purple);
    color: var(--slotsgamblersgameplayer-color-white);
    border: none;
    border-radius: var(--slotsgamblersgameplayer-radius-md);
    font-size: 0.875rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--slotsgamblersgameplayer-transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.slotsgamblersgameplayer-fullscreen-btn:hover {
    background: var(--slotsgamblersgameplayer-color-purple-hover);
    transform: translateY(-0.0625rem);
    box-shadow: 0 0.25rem 0.75rem rgba(147, 51, 234, 0.3);
}

.slotsgamblersgameplayer-fullscreen-btn:active {
    transform: translateY(0);
}

.slotsgamblersgameplayer-fullscreen-btn:focus {
    outline: 2px solid var(--slotsgamblersgameplayer-color-purple);
    outline-offset: 2px;
}

.slotsgamblersgameplayer-fullscreen-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.slotsgamblersgameplayer-fullscreen-icon svg {
    width: 1rem;
    height: 1rem;
}

.slotsgamblersgameplayer-fullscreen-text {
    line-height: 1;
}

/* ========================================
   GAME IFRAME WRAPPER
   ======================================== */
.slotsgamblersgameplayer-game-iframe-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    border-radius: var(--slotsgamblersgameplayer-radius-lg);
    overflow: hidden;
    border: 0.125rem solid var(--slotsgamblersgameplayer-color-black);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
    isolation: isolate;
}

.slotsgamblersgameplayer-game-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: inherit;
}

/* ========================================
   GAME PLACEHOLDER
   ======================================== */
.slotsgamblersgameplayer-game-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--slotsgamblersgameplayer-spacing-md);
    padding: var(--slotsgamblersgameplayer-spacing-lg);
    z-index: 1;
}

.slotsgamblersgameplayer-game-placeholder-icon {
    font-size: 5rem;
    line-height: 1;
    animation: slotsgamblersgameplayer-pulse 2s ease-in-out infinite;
    user-select: none;
}

.slotsgamblersgameplayer-game-placeholder-icon svg {
    width: 5rem;
    height: 5rem;
    filter: drop-shadow(0 0.5rem 1rem rgba(0, 0, 0, 0.3));
}

@keyframes slotsgamblersgameplayer-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.slotsgamblersgameplayer-game-placeholder-text {
    color: var(--slotsgamblersgameplayer-color-white);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
    text-align: center;
    text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}

/* ========================================
   PLAY DEMO BUTTON
   ======================================== */
.slotsgamblersgameplayer-play-demo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background: var(--slotsgamblersgameplayer-color-green);
    color: var(--slotsgamblersgameplayer-color-white);
    border: none;
    border-radius: var(--slotsgamblersgameplayer-radius-md);
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--slotsgamblersgameplayer-transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0.25rem 0.75rem rgba(16, 185, 129, 0.3);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.slotsgamblersgameplayer-play-demo-btn:hover {
    background: var(--slotsgamblersgameplayer-color-green-hover);
    transform: translateY(-0.125rem);
    box-shadow: 0 0.5rem 1rem rgba(16, 185, 129, 0.4);
}

.slotsgamblersgameplayer-play-demo-btn:active {
    transform: translateY(0);
}

.slotsgamblersgameplayer-play-demo-btn:focus {
    outline: 2px solid var(--slotsgamblersgameplayer-color-green);
    outline-offset: 2px;
}

/* ========================================
   SVG ICONS
   ======================================== */
.slotsgamblersgameplayer-svg-icon {
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
    stroke: currentColor;
}

/* ========================================
   RESPONSIVE DESIGN - DESKTOP LARGE (32"+)
   ======================================== */
@media (min-width: 120rem) {
    .slotsgamblersgameplayer-game-player {
        max-width: 90rem;
    }
    
    .slotsgamblersgameplayer-player-title {
        font-size: 2rem;
    }
    
    .slotsgamblersgameplayer-fullscreen-btn {
        font-size: 1rem;
        padding: 0.625rem 1.25rem;
    }
    
    .slotsgamblersgameplayer-game-placeholder-icon {
        font-size: 6rem;
    }
    
    .slotsgamblersgameplayer-game-placeholder-text {
        font-size: 1.5rem;
    }
    
    .slotsgamblersgameplayer-play-demo-btn {
        font-size: 1.125rem;
        padding: 0.875rem 2.5rem;
    }
}

/* ========================================
   RESPONSIVE DESIGN - DESKTOP (1366px+)
   ======================================== */
@media (min-width: 85.375rem) {
    .slotsgamblersgameplayer-game-player {
        max-width: 75rem;
    }
}

/* ========================================
   RESPONSIVE DESIGN - LAPTOP (1024px - 1366px)
   ======================================== */
@media (min-width: 64rem) and (max-width: 85.374rem) {
    .slotsgamblersgameplayer-game-player {
        max-width: 60rem;
    }
    
    .slotsgamblersgameplayer-player-title {
        font-size: 1.375rem;
    }
}

/* ========================================
   RESPONSIVE DESIGN - TABLET (768px - 1023px)
   ======================================== */
@media (min-width: 48rem) and (max-width: 63.999rem) {
    .slotsgamblersgameplayer-game-player {
        padding: var(--slotsgamblersgameplayer-spacing-lg);
    }
    
    .slotsgamblersgameplayer-player-title {
        font-size: 1.25rem;
    }
    
    .slotsgamblersgameplayer-fullscreen-btn {
        font-size: 0.8125rem;
        padding: 0.5rem 0.875rem;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE (< 768px)
   INCLUDES FULL-WIDTH BREAKOUT TECHNIQUE
   ======================================== */
@media (max-width: 48rem) {
    /* Mobile Full Width - Breakout of Elementor Container */
    .slotsgamblersgameplayer-mobile-fullwidth .slotsgamblersgameplayer-game-player {
        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;
    }
    
    .slotsgamblersgameplayer-game-player {
        padding: var(--slotsgamblersgameplayer-spacing-lg) var(--slotsgamblersgameplayer-spacing-md);
    }
    
    .slotsgamblersgameplayer-player-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--slotsgamblersgameplayer-spacing-md);
    }
    
    .slotsgamblersgameplayer-player-title {
        font-size: 1.125rem;
        flex: 1;
    }
    
    .slotsgamblersgameplayer-fullscreen-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }
    
    .slotsgamblersgameplayer-game-iframe-wrapper {
        padding-top: 75%; /* Taller aspect ratio for mobile */
        border-radius: var(--slotsgamblersgameplayer-radius-md) !important;
    }
    
    .slotsgamblersgameplayer-game-placeholder-icon {
        font-size: 3.5rem;
    }
    
    .slotsgamblersgameplayer-game-placeholder-icon svg {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .slotsgamblersgameplayer-game-placeholder-text {
        font-size: 1rem;
    }
    
    .slotsgamblersgameplayer-play-demo-btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* ========================================
   RESPONSIVE DESIGN - SMALL MOBILE (< 480px)
   ======================================== */
@media (max-width: 30rem) {
    .slotsgamblersgameplayer-game-player {
        padding: var(--slotsgamblersgameplayer-spacing-md);
    }
    
    .slotsgamblersgameplayer-player-title {
        font-size: 1rem;
    }
    
    .slotsgamblersgameplayer-fullscreen-btn {
        font-size: 0.6875rem;
        padding: 0.4375rem 0.75rem;
    }
    
    .slotsgamblersgameplayer-game-placeholder-icon {
        font-size: 3rem;
    }
    
    .slotsgamblersgameplayer-game-placeholder-icon svg {
        width: 3rem;
        height: 3rem;
    }
    
    .slotsgamblersgameplayer-game-placeholder-text {
        font-size: 0.9375rem;
    }
    
    .slotsgamblersgameplayer-play-demo-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.8125rem;
    }
}

/* ========================================
   FULLSCREEN MODE
   ======================================== */
.slotsgamblersgameplayer-game-iframe-wrapper:fullscreen {
    padding-top: 0 !important;
    border-radius: 0 !important;
    border: none !important;
}

.slotsgamblersgameplayer-game-iframe-wrapper:-webkit-full-screen {
    padding-top: 0 !important;
    border-radius: 0 !important;
    border: none !important;
}

.slotsgamblersgameplayer-game-iframe-wrapper:-moz-full-screen {
    padding-top: 0 !important;
    border-radius: 0 !important;
    border: none !important;
}

.slotsgamblersgameplayer-game-iframe-wrapper:-ms-fullscreen {
    padding-top: 0 !important;
    border-radius: 0 !important;
    border: none !important;
}

.slotsgamblersgameplayer-game-iframe-wrapper:fullscreen iframe,
.slotsgamblersgameplayer-game-iframe-wrapper:-webkit-full-screen iframe,
.slotsgamblersgameplayer-game-iframe-wrapper:-moz-full-screen iframe,
.slotsgamblersgameplayer-game-iframe-wrapper:-ms-fullscreen iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* ========================================
   ACCESSIBILITY & PRINT
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .slotsgamblersgameplayer-fullscreen-btn,
    .slotsgamblersgameplayer-play-demo-btn {
        transition: none;
    }
    
    .slotsgamblersgameplayer-game-placeholder-icon {
        animation: none;
    }
}

@media print {
    .slotsgamblersgameplayer-fullscreen-btn,
    .slotsgamblersgameplayer-play-demo-btn {
        display: none;
    }
}

/* ========================================
   LOADING STATE
   ======================================== */
.slotsgamblersgameplayer-loading {
    opacity: 0.6;
    pointer-events: none;
}

.slotsgamblersgameplayer-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    margin: -1rem 0 0 -1rem;
    border: 0.25rem solid var(--slotsgamblersgameplayer-color-purple);
    border-top-color: transparent;
    border-radius: 50%;
    animation: slotsgamblersgameplayer-spin 0.8s linear infinite;
    z-index: 9999;
}

@keyframes slotsgamblersgameplayer-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   ELEMENTOR EDITOR COMPATIBILITY
   ======================================== */
.elementor-editor-active .slotsgamblersgameplayer-game-iframe-wrapper iframe {
    pointer-events: none;
}

.elementor-element.elementor-widget-slotsgamblersgameplayer {
    margin: 0 !important;
}

/* ========================================
   RTL SUPPORT
   ======================================== */
.rtl .slotsgamblersgameplayer-player-header {
    flex-direction: row-reverse;
}

.rtl .slotsgamblersgameplayer-fullscreen-btn {
    flex-direction: row-reverse;
}

/* ========================================
   HIGH CONTRAST MODE
   ======================================== */
@media (prefers-contrast: high) {
    .slotsgamblersgameplayer-game-player {
        border-width: 0.125rem;
    }
    
    .slotsgamblersgameplayer-fullscreen-btn,
    .slotsgamblersgameplayer-play-demo-btn {
        border: 0.125rem solid currentColor;
    }
}

/* ========================================
   DARK MODE SUPPORT (Optional)
   ======================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --slotsgamblersgameplayer-color-white: #FFFFFF;
        --slotsgamblersgameplayer-color-black: #1A1A1A;
        --slotsgamblersgameplayer-text-primary: #1A1A1A;
        --slotsgamblersgameplayer-border-color: #E0E0E0;
    }
    
    /* Keep light theme in dark mode - remove this section if you want true dark mode */
}


