/* ========================================
   SINGLE SLOT GAME PAGE - PREMIUM DESIGN
   Dark theme with enhanced table styling
   ======================================== */

/* ========================================
   1. GAME PAGE CONTENT WRAPPER
   ======================================== */

#single-game-section {
    background: linear-gradient(180deg,
        rgba(26, 15, 46, 0.95) 0%,
        rgba(35, 19, 128, 0.5) 100%);
    padding: 60px 0;
}

.play-game-content {
    background: rgba(0, 0, 0, 0.3);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(218, 31, 21, 0.2);
}

/* ========================================
   2. PREMIUM GAME INFO TABLE
   ======================================== */

#single-game-table,
.game-info-table,
.play-game-content table {
    width: 100%;
    margin: 40px 0;
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(26, 15, 46, 0.8) 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(218, 31, 21, 0.3);
}

#single-game-table tbody,
.game-info-table tbody,
.play-game-content table tbody {
    background: transparent;
}

/* Table Rows */
#single-game-table tr,
.game-info-table tr,
.play-game-content table tr {
    border-bottom: 1px solid rgba(218, 31, 21, 0.15);
    transition: all 0.3s ease;
}

#single-game-table tr:last-child,
.game-info-table tr:last-child {
    border-bottom: none;
}

#single-game-table tr:hover,
.game-info-table tr:hover,
.play-game-content table tr:hover {
    background: linear-gradient(90deg,
        rgba(218, 31, 21, 0.15) 0%,
        rgba(218, 31, 21, 0.05) 100%);
    transform: translateX(5px);
}

/* Table Headers (th) */
#single-game-table th,
.game-info-table th,
.play-game-content table th {
    background: linear-gradient(135deg,
        rgba(218, 31, 21, 0.4) 0%,
        rgba(218, 31, 21, 0.25) 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 15px;
    padding: 20px 25px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #da1f15;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
}

#single-game-table th::after,
.game-info-table th::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
}

/* Table Cells (td) - Label Column */
#single-game-table td:first-child,
.game-info-table td:first-child,
.play-game-content table td:first-child {
    color: #ff6b6b !important;
    font-weight: 700;
    font-size: 16px;
    padding: 18px 25px;
    width: 40%;
    background: linear-gradient(90deg,
        rgba(218, 31, 21, 0.1) 0%,
        transparent 100%);
    border-right: 2px solid rgba(218, 31, 21, 0.2);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    position: relative;
}

#single-game-table td:first-child::before,
.game-info-table td:first-child::before {
    content: '▸';
    position: absolute;
    left: 8px;
    color: #da1f15;
    font-size: 14px;
}

/* Table Cells (td) - Value Column */
#single-game-table td:last-child,
.game-info-table td:last-child,
.play-game-content table td:last-child {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    padding: 18px 25px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* Special highlighting for important values */
#single-game-table td:last-child strong,
.game-info-table td:last-child strong {
    color: #da1f15 !important;
    font-weight: 800;
    font-size: 17px;
    text-shadow: 0 0 10px rgba(218, 31, 21, 0.6);
}

/* ========================================
   3. RTP / VOLATILITY BADGES IN TABLE
   ======================================== */

#single-game-table td:last-child .rtp-badge,
#single-game-table td:last-child .volatility-badge,
.game-info-table .badge,
.play-game-content table .badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #da1f15, #ff4d43);
    color: #ffffff !important;
    box-shadow:
        0 4px 15px rgba(218, 31, 21, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* High RTP badge */
.rtp-high,
.badge-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

/* Medium badges */
.rtp-medium,
.volatility-medium,
.badge-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

/* Low/High volatility */
.volatility-high,
.badge-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

.volatility-low,
.badge-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
}

/* ========================================
   4. GAME DESCRIPTION SECTION
   ======================================== */

.play-game-content .game-description,
.play-game-content > div:not(.game-info-table) {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid rgba(218, 31, 21, 0.2);
}

/* ========================================
   5. TABLE RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    #single-game-table,
    .game-info-table,
    .play-game-content table {
        border-radius: 12px;
        margin: 30px 0;
    }

    #single-game-table th,
    .game-info-table th,
    .play-game-content table th {
        padding: 15px 18px;
        font-size: 13px;
    }

    #single-game-table td,
    .game-info-table td,
    .play-game-content table td {
        padding: 14px 18px;
        font-size: 15px;
    }

    #single-game-table td:first-child,
    .game-info-table td:first-child {
        font-size: 15px;
        width: 45%;
    }

    /* Stack table on very small screens */
    @media (max-width: 480px) {
        #single-game-table,
        .game-info-table {
            display: block;
        }

        #single-game-table tbody,
        #single-game-table tr,
        #single-game-table td,
        .game-info-table tbody,
        .game-info-table tr,
        .game-info-table td {
            display: block;
            width: 100%;
        }

        #single-game-table td:first-child,
        .game-info-table td:first-child {
            width: 100%;
            border-right: none;
            border-bottom: 1px solid rgba(218, 31, 21, 0.2);
            padding-bottom: 10px;
        }

        #single-game-table td:last-child,
        .game-info-table td:last-child {
            padding-top: 10px;
            padding-bottom: 20px;
        }

        #single-game-table tr,
        .game-info-table tr {
            margin-bottom: 15px;
            border: 1px solid rgba(218, 31, 21, 0.2);
            border-radius: 8px;
            padding: 15px;
        }
    }
}

/* ========================================
   6. GAME FEATURES GRID (if exists)
   ======================================== */

.game-features-grid,
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.feature-card {
    background: linear-gradient(135deg,
        rgba(218, 31, 21, 0.1) 0%,
        rgba(0, 0, 0, 0.4) 100%);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(218, 31, 21, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(218, 31, 21, 0.4);
    border-color: #da1f15;
}

.feature-card h4 {
    color: #ff6b6b !important;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: #ffffff !important;
    font-size: 15px;
    line-height: 1.7;
}

/* ========================================
   7. GAME STATS INLINE (alternative to table)
   ======================================== */

.game-stats-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.stat-box {
    flex: 1;
    min-width: 150px;
    background: linear-gradient(135deg,
        rgba(218, 31, 21, 0.2) 0%,
        rgba(0, 0, 0, 0.5) 100%);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(218, 31, 21, 0.3);
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.stat-box .label {
    color: #ff6b6b !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-box .value {
    color: #ffffff !important;
    font-size: 22px;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(218, 31, 21, 0.5);
}

/* ========================================
   8. PROVIDER LOGO IN GAME PAGE
   ======================================== */

.game-provider-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border-left: 4px solid #da1f15;
}

.game-provider-info img {
    max-width: 120px;
    height: auto;
    filter: brightness(1.1);
}

.game-provider-info .provider-name {
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 700;
}

/* ========================================
   9. PLAY BUTTON ENHANCEMENT
   ======================================== */

.play-game-btn,
.demo-play-btn,
a.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #da1f15, #ff4d43);
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    border: none;
    box-shadow:
        0 8px 25px rgba(218, 31, 21, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    cursor: pointer;
}

.play-game-btn:hover,
.demo-play-btn:hover,
a.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 35px rgba(218, 31, 21, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #ff4d43, #da1f15);
}

/* ========================================
   10. SIMILAR GAMES SECTION
   ======================================== */

.similar-games-section {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 3px solid rgba(218, 31, 21, 0.2);
}

.similar-games-section h2 {
    color: #ffffff !important;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}
