/**
 * SlotsGamblers Game List - Frontend Styles
 * 
 * @package SlotsGamblersGameList
 * @version 2.2.0
 */

/* CSS Variables */
.elementor-widget-slotsgamblersgamelist {
    --sggl-spacing-sm: 0.5rem;
    --sggl-spacing-md: 0.75rem;
    --sggl-spacing-lg: 1rem;
    --sggl-spacing-xl: 1.5rem;
    --sggl-color-primary: #667EEA;
    --sggl-color-secondary: #764BA2;
    --sggl-color-text: #1F2937;
    --sggl-color-text-light: #6B7280;
    --sggl-color-border: #E5E7EB;
    --sggl-color-bg: #F9FAFB;
    --sggl-color-card: #FFFFFF;
}

/* Widget Container */
.sggl-widget-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--sggl-color-text);
    background-color: var(--sggl-color-bg);
}

.sggl-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Table Wrapper */
.sggl-table-wrapper {
    background: var(--sggl-color-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--sggl-color-border);
}

/* Table Base Styles */
.sggl-slots-table {
    width: 100%;
    border-collapse: collapse;
}

.sggl-slots-table thead {
    background: linear-gradient(135deg, var(--sggl-color-primary) 0%, var(--sggl-color-secondary) 100%);
}

.sggl-table-title-row th {
    padding: 1.25rem 1rem;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.sggl-table-title-cell {
    background: transparent !important;
}

/* Page Title */
.sggl-page-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sggl-page-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Table Headers */
.sggl-slots-table th {
    color: #FFFFFF;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 0.85rem 0.75rem;
    text-align: left;
    white-space: nowrap;
}

.sggl-slots-table th:first-child {
    text-align: center;
    width: 60px;
}

.sggl-slots-table th:last-child {
    text-align: center;
}

/* Table Body */
.sggl-slots-table tbody tr {
    border-bottom: 1px solid var(--sggl-color-border);
    transition: all 0.3s ease;
}

.sggl-slots-table tbody tr:hover {
    background-color: #F8F9FF;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.sggl-slots-table tbody tr:last-child {
    border-bottom: none;
}

.sggl-slots-table td {
    padding: 0.65rem 0.75rem;
    vertical-align: middle;
}

/* Rank Cell */
.sggl-rank-cell {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--sggl-color-primary) 0%, var(--sggl-color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Slot Cell */
.sggl-slot-cell {
    min-width: 240px;
}

.sggl-slot-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sggl-slot-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--sggl-color-primary) 0%, var(--sggl-color-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.sggl-slot-details .sggl-game-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px !important;
    line-height: 19px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    color: rgb(31, 41, 55) !important;
    margin-bottom: 0.25rem !important;
    margin-top: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
}

/* Year Badge */
.sggl-year-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.5rem;
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 12px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
    white-space: nowrap;
}

.sggl-slot-details p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    color: var(--sggl-color-text-light);
    font-weight: 600;
}

/* RTP Cell */
.sggl-rtp-cell {
    font-size: 15px;
    font-weight: 700;
    color: #10B981;
    white-space: nowrap;
}

/* Wager Cell */
.sggl-wager-cell {
    font-size: 15px;
    font-weight: 600;
    color: var(--sggl-color-text);
    white-space: nowrap;
}

/* Volatility Badge */
.sggl-volatility-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.sggl-volatility-badge.low {
    background: #D1FAE5;
    color: #059669;
    border: 1.5px solid #6EE7B7;
}

.sggl-volatility-badge.medium {
    background: #FEF3C7;
    color: #D97706;
    border: 1.5px solid #FCD34D;
}

.sggl-volatility-badge.medium-high {
    background: #FFEDD5;
    color: #EA580C;
    border: 1.5px solid #FB923C;
}

.sggl-volatility-badge.high {
    background: #FEE2E2;
    color: #DC2626;
    border: 1.5px solid #FCA5A5;
}

/* Max Win Cell */
.sggl-max-win-cell {
    font-size: 16px;
    font-weight: 800;
    color: #8B5CF6;
    white-space: nowrap;
}

/* Action Cell */
.sggl-action-cell {
    text-align: center;
}

.sggl-action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: nowrap;
    align-items: center;
}

/* Buttons */
.sggl-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sggl-btn-play {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.sggl-btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    color: #FFFFFF !important;
}

.sggl-btn-review {
    background: #FFFFFF;
    color: #8B5CF6;
    border: 2px solid #8B5CF6;
}

.sggl-btn-review:hover {
    background: #8B5CF6 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Table Footer */
.sggl-slots-table tfoot {
    background: linear-gradient(135deg, #F8F9FF 0%, #F0F2FF 100%);
}

.sggl-table-footer-row td {
    padding: 1.25rem;
    text-align: left;
    border-top: 2px solid #E0E7FF;
}

.sggl-table-footer-cell {
    background: transparent !important;
}

.sggl-footer-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sggl-color-primary);
    margin: 0 0 0.75rem 0;
    background: linear-gradient(135deg, var(--sggl-color-primary) 0%, var(--sggl-color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: left;
}

.sggl-footer-description {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 25px;
    font-weight: 400;
    color: rgb(17, 17, 17);
    margin: 0;
    text-align: left;
}

/* Detailed Descriptions Section */
.sggl-detailed-descriptions {
    margin: var(--sggl-spacing-xl) auto;
    padding: var(--sggl-spacing-xl) 0;
    background: linear-gradient(135deg, var(--sggl-color-primary) 0%, var(--sggl-color-secondary) 100%);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    max-width: 1400px;
}

.sggl-detailed-descriptions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.sggl-descriptions-header {
    text-align: center;
    padding: var(--sggl-spacing-xl) var(--sggl-spacing-lg);
    position: relative;
    z-index: 1;
}

.sggl-descriptions-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: var(--sggl-spacing-md);
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.sggl-descriptions-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
}

.sggl-descriptions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sggl-spacing-xl);
    padding: var(--sggl-spacing-xl);
    position: relative;
    z-index: 1;
}

.sggl-description-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: var(--sggl-spacing-xl);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: var(--sggl-spacing-lg);
    position: relative;
    overflow: hidden;
}

.sggl-description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sggl-color-primary) 0%, var(--sggl-color-secondary) 50%, var(--sggl-color-primary) 100%);
    background-size: 200% 100%;
    animation: sggl-shimmer 3s infinite;
}

@keyframes sggl-shimmer {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

.sggl-description-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 50px rgba(102, 126, 234, 0.3),
        0 0 0 1px rgba(102, 126, 234, 0.1);
}

.sggl-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sggl-spacing-lg);
    padding-bottom: var(--sggl-spacing-lg);
    border-bottom: 2px solid #F3F4F6;
    position: relative;
}

.sggl-card-title-group {
    display: flex;
    align-items: center;
    gap: var(--sggl-spacing-lg);
    flex: 1;
}

.sggl-card-right-group {
    display: flex;
    align-items: center;
    gap: var(--sggl-spacing-md);
    flex-shrink: 0;
}

.sggl-card-rank {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--sggl-color-primary) 0%, var(--sggl-color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    min-width: 70px;
    text-align: center;
    filter: drop-shadow(2px 2px 4px rgba(102, 126, 234, 0.2));
    flex-shrink: 0;
}

.sggl-card-logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    background: #FFFFFF;
    border: 2px solid #F3F4F6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sggl-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.sggl-card-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--sggl-color-text);
    margin: 0;
    line-height: 1.2;
    flex: 1;
}

.sggl-card-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: linear-gradient(135deg, #F0F2FF 0%, #E0E7FF 100%);
    color: var(--sggl-color-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    border: 1.5px solid #C7D2FE;
    white-space: nowrap;
}

.sggl-card-content {
    flex: 1;
}

.sggl-card-content p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--sggl-color-text);
    text-align: justify;
    hyphens: auto;
}

/* Table Styling in WYSIWYG Description */
.sggl-card-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sggl-card-content table thead {
    background: linear-gradient(135deg, var(--sggl-color-primary) 0%, var(--sggl-color-secondary) 100%);
}

.sggl-card-content table thead th {
    color: #FFFFFF;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 0.85rem 0.75rem;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.sggl-card-content table tbody tr {
    border-bottom: 1px solid var(--sggl-color-border);
    transition: all 0.3s ease;
}

.sggl-card-content table tbody tr:hover {
    background-color: #F8F9FF;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.sggl-card-content table tbody tr:last-child {
    border-bottom: none;
}

.sggl-card-content table tbody td,
.sggl-card-content table tbody th {
    padding: 0.75rem;
    vertical-align: middle;
    color: var(--sggl-color-text);
    font-size: 14px;
    text-align: center;
}

.sggl-card-content table tbody th {
    font-weight: 600;
    color: var(--sggl-color-primary);
    background-color: #F9FAFB;
}

.sggl-card-content table tfoot {
    background: linear-gradient(135deg, #F8F9FF 0%, #F0F2FF 100%);
    border-top: 2px solid #E0E7FF;
}

.sggl-card-content table tfoot td,
.sggl-card-content table tfoot th {
    padding: 0.85rem 0.75rem;
    font-weight: 600;
    color: var(--sggl-color-primary);
    text-align: center;
}

.sggl-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sggl-spacing-md);
    padding-top: var(--sggl-spacing-lg);
    border-top: 2px solid #F3F4F6;
}

.sggl-footer-stat {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    border-radius: 8px;
    font-size: 13px;
    color: var(--sggl-color-text-light);
    border: 1px solid var(--sggl-color-border);
}

.sggl-footer-stat strong {
    color: var(--sggl-color-text);
    margin-right: 0.375rem;
    font-weight: 700;
}

/* ======================================
   RESPONSIVE DESIGN
   ====================================== */

/* Large Tablet and Desktop (1200px+) */
@media (min-width: 1201px) {
    /* Full width on 32" displays */
    .sggl-container {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Tablet to Desktop (768px - 1200px) */
@media (max-width: 1200px) {
    /* Reset table to block layout */
    .sggl-slots-table {
        display: block;
        overflow-x: visible;
    }

    .sggl-slots-table thead {
        display: block;
    }

    .sggl-table-title-row {
        display: block !important;
    }

    .sggl-table-title-row th {
        display: block !important;
        padding: 1rem 0.75rem;
    }

    .sggl-slots-table thead tr:not(.sggl-table-title-row) {
        display: none;
    }

    .sggl-slots-table tbody {
        display: block;
    }

    .sggl-slots-table tfoot {
        display: block;
    }

    .sggl-table-footer-row {
        display: block !important;
    }

    .sggl-table-footer-row td {
        display: block !important;
        padding: 1rem 0.75rem;
    }

    /* Mobile Card - Each game row */
    .sggl-slots-table tbody tr {
        display: block !important;
        margin-bottom: 1.5rem !important;
        border: 2px solid var(--sggl-color-primary) !important;
        border-radius: 12px !important;
        padding: 1rem !important;
        background: var(--sggl-color-card) !important;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15) !important;
    }

    .sggl-slots-table tbody tr:last-child {
        border-bottom: 2px solid var(--sggl-color-primary) !important;
    }

    /* Hide rank cell on mobile */
    .sggl-rank-cell {
        display: none !important;
    }

    /* Slot cell styling */
    .sggl-slot-cell {
        display: block !important;
        width: 100% !important;
        background: linear-gradient(135deg, #F8F9FF 0%, #F0F2FF 100%);
        border: 1px solid #E0E7FF !important;
        border-radius: 10px !important;
        padding: 0.75rem !important;
        margin: 0 0 0.75rem 0 !important;
    }

    /* Add rank number inside slot info */
    .sggl-slot-info .sggl-rank-number {
        font-size: 20px;
        font-weight: 800;
        color: var(--sggl-color-primary);
        margin-right: 0.75rem;
        display: inline-block;
        min-width: 30px;
        text-align: center;
    }

    .sggl-slot-info {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .sggl-slot-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
        flex-shrink: 0;
    }

    .sggl-slot-details {
        flex: 1;
        text-align: left;
    }

    .sggl-slot-details .sggl-game-name {
        font-size: 16px !important;
        line-height: 19px !important;
        font-weight: 700 !important;
        text-align: left;
        margin-bottom: 0.125rem;
    }

    .sggl-year-badge {
        font-size: 0.6rem !important;
        padding: 0.1rem 0.4rem !important;
    }

    .sggl-slot-details p {
        font-size: 11px !important;
        text-align: left;
    }

    /* Stats Grid - 3 columns, 2 rows */
    .sggl-rtp-cell,
    .sggl-slots-table td[data-label="Volatility"],
    .sggl-slots-table td[data-label="Min. Wager"],
    .sggl-slots-table td[data-label="Max. Wager"],
    .sggl-max-win-cell {
        display: inline-block !important;
        width: calc(33.333% - 0.67rem) !important;
        margin: 0 0.5rem 0.75rem 0 !important;
        padding: 0.5rem !important;
        vertical-align: top !important;
        background: #F9FAFB !important;
        border: 1.5px solid #E5E7EB !important;
        border-radius: 6px !important;
        text-align: center !important;
    }

    /* Remove right margin from every 3rd item */
    .sggl-rtp-cell:nth-child(5),
    .sggl-slots-table td[data-label="Min. Wager"],
    .sggl-max-win-cell {
        margin-right: 0;
    }

    /* Data labels for stats */
    .sggl-rtp-cell::before,
    .sggl-slots-table td[data-label="Volatility"]::before,
    .sggl-slots-table td[data-label="Min. Wager"]::before,
    .sggl-slots-table td[data-label="Max. Wager"]::before,
    .sggl-max-win-cell::before {
        content: attr(data-label);
        display: block;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--sggl-color-text-light);
        margin-bottom: 0.25rem;
        letter-spacing: 0.5px;
    }

    /* Hide labels for banner */
    .sggl-rank-cell::before,
    .sggl-slot-cell::before {
        content: none !important;
        display: none !important;
    }

    /* Action Buttons */
    .sggl-action-cell {
        display: block !important;
        text-align: center !important;
        padding: 0.75rem 0 0 0 !important;
        border: none !important;
        border-top: none !important;
        border-bottom: none !important;
        margin: 0.75rem 0 0 0 !important;
        background: transparent !important;
        width: 100% !important;
    }

    .sggl-action-cell::before {
        display: none !important;
        content: none !important;
    }

    .sggl-action-cell::after {
        display: none !important;
        content: none !important;
    }

    .sggl-action-buttons {
        display: flex !important;
        justify-content: center !important;
        gap: 0.75rem !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Detailed Descriptions Grid */
    .sggl-descriptions-grid {
        grid-template-columns: 1fr;
        gap: var(--sggl-spacing-lg);
        padding: var(--sggl-spacing-lg);
    }

    .sggl-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: var(--sggl-spacing-md) !important;
    }

    .sggl-card-title-group {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    .sggl-card-right-group {
        width: 100% !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: var(--sggl-spacing-sm) !important;
        order: 2 !important;
    }

    .sggl-card-badge {
        order: 2 !important;
    }

    .sggl-card-logo {
        display: none !important;
    }

    .sggl-card-rank {
        font-size: 48px;
        min-width: 50px;
    }

    .sggl-card-title {
        font-size: 23px;
    }

    .sggl-card-badge {
        font-size: 11px;
        padding: 0.3rem 0.85rem;
    }

    .sggl-card-content p {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Responsive Tables in Detailed Description - Tablet */
    .sggl-card-content table {
        font-size: 13px;
    }

    .sggl-card-content table thead th {
        font-size: 11px;
        padding: 0.7rem 0.6rem;
    }

    .sggl-card-content table tbody td,
    .sggl-card-content table tbody th {
        font-size: 13px;
        padding: 0.65rem 0.6rem;
    }

    .sggl-footer-stat {
        font-size: 12px;
        padding: 0.4rem 0.85rem;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    /* MOBILE FULL-WIDTH TECHNIQUE */
    .sggl-widget-container {
        width: 100vw !important;
        max-width: none !important;
        margin-left: calc(-50vw + 50%) !important;
        position: relative;
    }

    .sggl-widget-container {
        font-size: 14px;
        padding: var(--sggl-spacing-lg) var(--sggl-spacing-sm);
    }

    .sggl-page-title {
        font-size: 1.5rem !important;
        line-height: 1.25 !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }

    .sggl-page-subtitle {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }

    .sggl-table-title-row th {
        padding: 1rem 0.75rem;
        width: 100% !important;
    }

    .sggl-table-footer-row td {
        padding: 1rem 0.75rem;
    }

    .sggl-footer-title {
        font-size: 1.3rem !important;
        margin-bottom: 0.5rem;
    }

    .sggl-footer-description {
        font-size: 14px !important;
        line-height: 23px !important;
    }

    .sggl-slot-info {
        gap: 0.75rem;
    }

    .sggl-slot-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .sggl-slot-details .sggl-game-name {
        font-size: 15px !important;
        line-height: 19px !important;
        font-weight: 700 !important;
    }

    .sggl-slot-details p {
        font-size: 11.5px;
    }

    .sggl-btn {
        padding: 0.45rem 0.9rem;
        font-size: 11px;
    }

    /* 2 oszlopos grid a footer stat-oknak */
    .sggl-card-footer {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sggl-spacing-md);
    }

    .sggl-footer-stat {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .sggl-page-title {
        font-size: 1.6rem !important;
    }

    .sggl-page-subtitle {
        font-size: 1rem !important;
    }

    .sggl-footer-title {
        font-size: 1.2rem !important;
    }

    .sggl-footer-description {
        font-size: 13px !important;
        line-height: 21px !important;
    }

    .sggl-slot-details .sggl-game-name {
        font-size: 14px !important;
        line-height: 18px !important;
        font-weight: 700 !important;
    }

    /* Detailed Descriptions Small Mobile */
    .sggl-descriptions-title {
        font-size: 1.7rem !important;
    }

    .sggl-descriptions-subtitle {
        font-size: 1.05rem !important;
    }

    .sggl-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: var(--sggl-spacing-sm) !important;
    }

    .sggl-card-title-group {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    .sggl-card-right-group {
        width: 100% !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.25rem !important;
        order: 2 !important;
    }

    .sggl-card-badge {
        order: 2 !important;
    }

    .sggl-card-logo {
        display: none !important;
    }

    .sggl-card-rank {
        font-size: 42px !important;
    }

    .sggl-card-title {
        font-size: 20px !important;
    }

    .sggl-card-badge {
        font-size: 10px !important;
    }

    .sggl-card-content p {
        font-size: 13px !important;
        line-height: 1.65 !important;
    }

    /* Responsive Tables in Detailed Description - Mobile */
    .sggl-card-content table {
        font-size: 12px !important;
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
    }

    .sggl-card-content table thead {
        display: block !important;
    }

    .sggl-card-content table thead th {
        font-size: 10px !important;
        padding: 0.6rem 0.5rem !important;
        white-space: nowrap !important;
    }

    .sggl-card-content table tbody {
        display: block !important;
    }

    .sggl-card-content table tbody tr {
        display: table !important;
        width: 100% !important;
    }

    .sggl-card-content table tbody td,
    .sggl-card-content table tbody th {
        font-size: 12px !important;
        padding: 0.55rem 0.5rem !important;
        white-space: nowrap !important;
    }

    .sggl-card-content table tfoot {
        display: block !important;
    }

    .sggl-card-content table tfoot td,
    .sggl-card-content table tfoot th {
        font-size: 11px !important;
        padding: 0.6rem 0.5rem !important;
    }

    .sggl-footer-stat {
        font-size: 11px !important;
        padding: 0.35rem 0.75rem !important;
    }
}

/* Elementor Editor Compatibility */
.elementor-editor-active .elementor-widget-slotsgamblersgamelist {
    display: block !important;
    visibility: visible !important;
    min-height: 500px !important;
}

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

