/* Table Block - Modern Design with CSS Variables */

.casino-table-wrapper {
    margin: 20px 0 !important;
    overflow-x: auto !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    background: var(--casino-table-bg, #ffffff) !important;
    position: relative !important;
    z-index: 0;
}

.casino-table-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
}

.casino-table-content {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--casino-text-color, #333333) !important;
    padding: 20px 20px 0 20px;
}

.casino-table,
.casino-table-custom {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background-color: var(--casino-table-bg, #ffffff) !important;
    border-radius: 0 0 12px 12px !important;
    overflow: hidden !important;
    min-width: 600px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.casino-table-wrapper th,
.casino-table-wrapper td,
.casino-th-custom,
.casino-td-custom {
    padding: 16px 20px !important;
    text-align: left !important;
    border: none !important;
    position: relative !important;
}

.casino-table-wrapper th,
.casino-th-custom {
    background: var(--casino-header-bg, #f8f9fa) !important;
    color: var(--casino-header-text, #333333) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    border-bottom: 2px solid var(--casino-border-color, #e9ecef) !important;
    position: relative !important;
}

.casino-table-wrapper th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--casino-border-color, #e9ecef) !important;
}

.casino-table-wrapper td,
.casino-td-custom {
    color: var(--casino-text-color, #333333) !important;
    background-color: var(--casino-table-bg, #ffffff) !important;
    border-bottom: 1px solid var(--casino-border-color, #f1f3f4) !important;
    transition: all 0.2s ease !important;
}

.casino-table-wrapper td:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--casino-border-color, #f1f3f4) !important;
}

.casino-table-wrapper tbody tr:last-child td {
    border-bottom: none;
}

/* Table Style Variants */
.casino-table--default {
    /* Default style - clean and minimal */
}

.casino-table-wrapper .casino-table--striped tbody tr:nth-child(even) td {
    background-color: rgba(0, 0, 0, 0.02);
}

.casino-table-wrapper .casino-table--striped tbody tr:nth-child(even) td:not(:last-child)::after {
    background: rgba(0, 0, 0, 0.05);
}

.casino-table-wrapper .casino-table--bordered {
    border: 2px solid var(--casino-border-color, #e9ecef);
    border-radius: 12px;
}

.casino-table-wrapper .casino-table--bordered th,
.casino-table-wrapper .casino-table--bordered td {
    border: 1px solid var(--casino-border-color, #e9ecef);
}

.casino-table-wrapper .casino-table--bordered th:not(:last-child)::after,
.casino-table-wrapper .casino-table--bordered td:not(:last-child)::after {
    display: none;
}

.casino-table-wrapper .casino-table--hover tbody tr:hover td {
    background-color: rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.casino-table-wrapper .casino-table--hover tbody tr:hover td:not(:last-child)::after {
    background: rgba(0, 0, 0, 0.1);
}

/* Enhanced hover effects */
.casino-table-wrapper .casino-table--hover tbody tr {
    transition: all 0.2s ease;
}

.casino-table-wrapper .casino-table--hover tbody tr:hover {
    z-index: 1;
    position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
    .casino-table-wrapper {
        margin: 15px 0;
        border-radius: 8px;
    }
    
    .casino-table-wrapper::before {
        border-radius: 8px 8px 0 0;
    }
    
    .casino-table {
        font-size: 14px;
        min-width: 500px;
        border-radius: 0 0 8px 8px;
    }
    
    .casino-table-wrapper th,
    .casino-table-wrapper td {
        padding: 12px 16px;
    }
    
    .casino-table-content {
        padding: 15px 15px 0 15px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .casino-table {
        min-width: 400px;
    }
    
    .casino-table-wrapper th,
    .casino-table-wrapper td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .casino-table-wrapper th {
        font-size: 12px;
        letter-spacing: 0.5px;
    }
    
    .casino-table-content {
        padding: 12px 12px 0 12px;
        font-size: 14px;
    }
}

/* Scroll indicator for mobile */
@media (max-width: 768px) {
    .casino-table-wrapper {
        position: relative;
    }
    
    .casino-table-wrapper::after {
        content: '← Scroll to see more →';
        position: absolute;
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 12px;
        color: #666;
        opacity: 0.7;
    }
}

/* FORCE OVERRIDE - Maximum specificity */
.casino-table-wrapper .casino-table-custom .casino-th-custom {
    background: var(--casino-header-bg, #f8f9fa) !important;
    color: var(--casino-header-text, #333333) !important;
    border-bottom: 2px solid var(--casino-border-color, #e9ecef) !important;
}

.casino-table-wrapper .casino-table-custom .casino-td-custom {
    background-color: var(--casino-table-bg, #ffffff) !important;
    color: var(--casino-text-color, #333333) !important;
    border-bottom: 1px solid var(--casino-border-color, #f1f3f4) !important;
}

.casino-table-wrapper .casino-table-custom {
    background-color: var(--casino-table-bg, #ffffff) !important;
}

.casino-table-wrapper {
    background: var(--casino-table-bg, #ffffff) !important;
}