/**
 * Game Review Article Widget Styles
 * 
 * @package SlotsGamblersGameReviewArticle
 * @version 1.0.0
 * 
 * NOTE: All styles are namespaced with "gamereviewarticle" to prevent conflicts
 */

/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */
.gamereviewarticle-widget {
    --gamereviewarticle-color-purple: #9333EA;
    --gamereviewarticle-color-purple-light: #F3E8FF;
    --gamereviewarticle-color-green: #10B981;
    --gamereviewarticle-color-white: #FFFFFF;
    --gamereviewarticle-color-black: #1F2937;
    --gamereviewarticle-text-primary: #1F2937;
    --gamereviewarticle-text-secondary: #4B5563;
    --gamereviewarticle-bg-main: #F9FAFB;
    --gamereviewarticle-spacing-sm: clamp(0.5rem, 0.6vw, 0.75rem);
    --gamereviewarticle-spacing-md: clamp(0.75rem, 0.9vw, 1rem);
    --gamereviewarticle-spacing-lg: clamp(1rem, 1.2vw, 1.5rem);
    --gamereviewarticle-spacing-xl: clamp(1.25rem, 1.5vw, 2rem);
    --gamereviewarticle-radius-md: clamp(0.5rem, 0.6vw, 0.75rem);
    --gamereviewarticle-radius-lg: clamp(0.75rem, 0.9vw, 1rem);
    --gamereviewarticle-radius-xl: clamp(1rem, 1.2vw, 1.5rem);
}

/* ========================================
   MAIN WIDGET CONTAINER
   ======================================== */
.gamereviewarticle-widget {
    background: var(--gamereviewarticle-color-white);
    border: 0.0625rem solid #E0E0E0;
    border-radius: var(--gamereviewarticle-radius-xl);
    padding: var(--gamereviewarticle-spacing-xl);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--gamereviewarticle-text-primary);
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
}

.gamereviewarticle-widget *,
.gamereviewarticle-widget *::before,
.gamereviewarticle-widget *::after {
    box-sizing: border-box;
}

.gamereviewarticle-widget:hover {
    box-shadow: 0 0.375rem 1rem rgba(0, 0, 0, 0.12);
    border-color: #D0D0D0;
}

/* ========================================
   HEADER ROW
   ======================================== */
.gamereviewarticle-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--gamereviewarticle-spacing-lg);
    gap: var(--gamereviewarticle-spacing-md);
}

/* ========================================
   TITLE
   ======================================== */
.gamereviewarticle-title {
    font-size: clamp(1.5rem, 2vw + 0.5rem, 2rem);
    font-weight: 900;
    color: var(--gamereviewarticle-text-primary);
    line-height: 1.3;
    margin: 0;
    padding: 0;
}

/* ========================================
   RATING STARS
   ======================================== */
.gamereviewarticle-rating {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    flex-shrink: 0;
}

.gamereviewarticle-rating-star {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.gamereviewarticle-rating-star.filled {
    fill: #FFC107;
}

.gamereviewarticle-rating-star.empty {
    fill: #E0E0E0;
}

.gamereviewarticle-rating-star:hover {
    transform: scale(1.1);
}

/* ========================================
   CONTENT GRID
   ======================================== */
.gamereviewarticle-content-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--gamereviewarticle-spacing-xl);
    align-items: start;
}

/* ========================================
   IMAGE BOX
   ======================================== */
.gamereviewarticle-image-box {
    width: 11rem;
    border-radius: var(--gamereviewarticle-radius-lg);
    overflow: hidden;
    border: 0.1875rem solid var(--gamereviewarticle-color-black);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.gamereviewarticle-image-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ========================================
   TEXT CONTENT
   ======================================== */
.gamereviewarticle-text {
    font-size: clamp(0.9375rem, 0.95vw + 0.3rem, 1.0625rem);
    line-height: 1.7;
    color: var(--gamereviewarticle-text-secondary);
}

.gamereviewarticle-paragraph {
    margin-bottom: var(--gamereviewarticle-spacing-md);
}

.gamereviewarticle-paragraph:last-child {
    margin-bottom: 0;
}

.gamereviewarticle-text p {
    margin-bottom: var(--gamereviewarticle-spacing-md);
    margin-top: 0;
}

.gamereviewarticle-text p:last-child {
    margin-bottom: 0;
}

.gamereviewarticle-text strong {
    color: var(--gamereviewarticle-text-primary);
    font-weight: 700;
}

/* ========================================
   SECTION TITLES
   ======================================== */
.gamereviewarticle-section-title {
    font-size: clamp(1.125rem, 1.2vw + 0.4rem, 1.375rem);
    font-weight: 800;
    color: var(--gamereviewarticle-text-primary);
    margin-top: var(--gamereviewarticle-spacing-xl);
    margin-bottom: var(--gamereviewarticle-spacing-md);
    line-height: 1.4;
}

/* ========================================
   HIGHLIGHT BOX
   ======================================== */
.gamereviewarticle-highlight-box {
    background: var(--gamereviewarticle-color-purple-light);
    border-left: 0.25rem solid var(--gamereviewarticle-color-purple);
    padding: var(--gamereviewarticle-spacing-md) var(--gamereviewarticle-spacing-lg);
    border-radius: var(--gamereviewarticle-radius-md);
    margin: var(--gamereviewarticle-spacing-lg) 0;
}

.gamereviewarticle-highlight-box p {
    margin: 0;
    color: var(--gamereviewarticle-text-primary);
    font-weight: 600;
}

/* ========================================
   FEATURES LIST
   ======================================== */
.gamereviewarticle-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gamereviewarticle-spacing-sm);
    margin: var(--gamereviewarticle-spacing-md) 0;
}

.gamereviewarticle-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--gamereviewarticle-text-secondary);
}

.gamereviewarticle-checkmark-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: var(--gamereviewarticle-color-green);
}

/* ========================================
   SECTIONS SPACING
   ======================================== */
.gamereviewarticle-features-section,
.gamereviewarticle-freespins-section,
.gamereviewarticle-verdict-section {
    margin-top: var(--gamereviewarticle-spacing-md);
}

/* ========================================
   RESPONSIVE DESIGN - DESKTOP & LARGE SCREENS
   ======================================== */

/* Large Desktop (32" displays and above) - 1920px+ */
@media (min-width: 1920px) {
    .gamereviewarticle-widget {
        max-width: 100%;
    }
    
    .gamereviewarticle-content-grid {
        gap: clamp(1.5rem, 2vw, 3rem);
    }
    
    .gamereviewarticle-image-box {
        width: 14rem;
    }
}

/* Desktop - 1366px to 1919px */
@media (min-width: 1366px) and (max-width: 1919px) {
    .gamereviewarticle-widget {
        max-width: 100%;
    }
}

/* ========================================
   RESPONSIVE DESIGN - TABLET
   ======================================== */
@media (max-width: 1024px) {
    .gamereviewarticle-content-grid {
        grid-template-columns: 1fr;
    }
    
    .gamereviewarticle-image-box {
        width: 100%;
        max-width: 14rem;
        margin: 0 auto;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE
   ======================================== */
@media (max-width: 768px) {
    .gamereviewarticle-widget {
        padding: var(--gamereviewarticle-spacing-md);
        border-radius: var(--gamereviewarticle-radius-md);
    }
    
    .gamereviewarticle-header-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.75rem !important;
        text-align: center !important;
    }
    
    .gamereviewarticle-title {
        font-size: 24px !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    .gamereviewarticle-rating {
        display: flex !important;
        justify-content: center !important;
    }
    
    .gamereviewarticle-features-list {
        grid-template-columns: 1fr;
    }
    
    .gamereviewarticle-text {
        font-size: 0.9375rem;
    }
    
    .gamereviewarticle-section-title {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }
}

/* Mobile Full-Width Edge-to-Edge (320px to 767px) */
@media (max-width: 767px) {
    /* Full-width technique using calc(-50vw + 50%) */
    .elementor-widget-gamereviewarticle {
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        max-width: 100vw !important;
        width: 100vw !important;
    }
    
    .gamereviewarticle-widget {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .gamereviewarticle-image-box {
        max-width: 100%;
        width: 100%;
    }
    
    .gamereviewarticle-rating {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Extra small mobile - 480px and below */
@media (max-width: 480px) {
    .gamereviewarticle-widget {
        padding: 1rem;
    }
    
    .gamereviewarticle-header-row {
        margin-bottom: 1rem;
    }
    
    .gamereviewarticle-content-grid {
        gap: 1rem;
    }
    
    .gamereviewarticle-title {
        font-size: 1.25rem;
    }
    
    .gamereviewarticle-section-title {
        font-size: 1.125rem;
        margin-top: 1.25rem;
    }
    
    .gamereviewarticle-text {
        font-size: 0.875rem;
    }
    
    .gamereviewarticle-rating-star {
        width: 20px;
        height: 20px;
    }
}

/* ========================================
   ELEMENTOR EDITOR COMPATIBILITY
   ======================================== */
.elementor-editor-active .gamereviewarticle-widget {
    /* Ensure proper display in Elementor editor */
    min-height: 100px;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .gamereviewarticle-widget {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .gamereviewarticle-widget:hover {
        box-shadow: none;
    }
}

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */
.gamereviewarticle-widget a:focus,
.gamereviewarticle-widget button:focus {
    outline: 2px solid var(--gamereviewarticle-color-purple);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .gamereviewarticle-widget,
    .gamereviewarticle-widget *,
    .gamereviewarticle-rating-star {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   RTL SUPPORT
   ======================================== */
.rtl .gamereviewarticle-highlight-box {
    border-left: none;
    border-right: 0.25rem solid var(--gamereviewarticle-color-purple);
}

.rtl .gamereviewarticle-feature-item {
    flex-direction: row-reverse;
}

.rtl .gamereviewarticle-header-row {
    direction: rtl;
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Use will-change for animated elements */
.gamereviewarticle-widget:hover {
    will-change: box-shadow, border-color;
}

/* GPU acceleration for transforms */
.gamereviewarticle-rating-star {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimize image rendering */
.gamereviewarticle-image-box img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ========================================
   DARK MODE SUPPORT (Optional)
   ======================================== */
@media (prefers-color-scheme: dark) {
    .gamereviewarticle-widget[data-theme="auto"] {
        --gamereviewarticle-color-white: #1F2937;
        --gamereviewarticle-text-primary: #F9FAFB;
        --gamereviewarticle-text-secondary: #D1D5DB;
        --gamereviewarticle-bg-main: #111827;
        background: var(--gamereviewarticle-color-white);
        color: var(--gamereviewarticle-text-primary);
        border-color: #374151;
    }
    
    .gamereviewarticle-widget[data-theme="auto"]:hover {
        border-color: #4B5563;
    }
}

/* ========================================
   LOADING STATE
   ======================================== */
.gamereviewarticle-widget.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ========================================
   ERROR STATE
   ======================================== */
.gamereviewarticle-widget.error {
    border-color: #EF4444;
}

/* ========================================
   WEBKIT/CHROME SPECIFIC FIXES
   ======================================== */
@supports (-webkit-appearance: none) {
    .gamereviewarticle-widget {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ========================================
   FIREFOX SPECIFIC FIXES
   ======================================== */
@-moz-document url-prefix() {
    .gamereviewarticle-image-box {
        overflow: -moz-hidden-unscrollable;
    }
}

/* ========================================
   INTERNET EXPLORER FALLBACKS
   ======================================== */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .gamereviewarticle-content-grid {
        display: block;
    }
    
    .gamereviewarticle-image-box {
        float: left;
        margin-right: 2rem;
    }
    
    .gamereviewarticle-features-list {
        display: block;
    }
    
    .gamereviewarticle-feature-item {
        display: block;
        margin-bottom: 0.5rem;
    }
}

