/* Basic Strategy Table Module Styles */

body {
    background-image: url('/media/images/site-21count-potrait.png');
    background-attachment: fixed;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: contain;
    height: auto;
    background-color: black;
}

#basic_strategy_table .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.strategy-table-container {
    background: linear-gradient(135deg, #161212 0%, #2c2c2c 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 2px solid #333;
    margin-top: 60px;
}

/* Header Styles */
.strategy-table-container h1 {
    font-size: 2.5em;
    color: #f8f9fa;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 3px solid #007bff;
    padding-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    text-align: center;
    color: #b8d4c8;
    margin-bottom: 30px;
    font-size: 1.2em;
}

.strategy-table-container h2 {
    color: #17a2b8;
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 4px solid #17a2b8;
    padding-left: 15px;
}

/* Legend Styles */
.legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e9ecef;
}

.legend-color {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Table Section Styles */
.table-section {
    margin-bottom: 40px;
}

.table-responsive {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Strategy Table Styles */
.strategy-table {
    background: #fff;
    border: none;
    margin-bottom: 0;
    font-size: 14px;
}

.strategy-table thead {
    background: linear-gradient(135deg, #0f4c3a 0%, #2a6b4f 100%);
}

.strategy-table th {
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 15px 8px;
    border: 1px solid #4a8b6f;
    position: relative;
}

.player-header {
    background: #1a5f4a !important;
    font-size: 1.1em;
    min-width: 120px;
}

.dealer-header {
    min-width: 60px;
}

.strategy-table td {
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #ddd;
    font-weight: bold;
    font-size: 13px;
    transition: all 0.3s ease;
}

.strategy-table tbody tr:hover {
    background: rgba(15, 76, 58, 0.05);
}

.player-hand {
    background: #f8f9fa;
    color: #0f4c3a;
    font-weight: bold;
    border-right: 2px solid #2a6b4f;
    font-size: 14px;
}

/* Action Colors */
.H { background: #ff6b6b; color: white; } /* Hit */
.S { background: #4ecdc4; color: white; } /* Stand */
.D { background: #45b7d1; color: white; } /* Double */
.Dh { background: #96ceb4; color: #333; } /* Double or Hit */
.Ds { background: #ffeaa7; color: #333; } /* Double or Stand */
.P { background: #a29bfe; color: white; } /* Split */
.R { background: #fd79a8; color: white; } /* Surrender */
.Rh { background: #fdcb6e; color: #333; } /* Surrender or Hit */

/* Legend Colors */
.legend-color.H { background: #ff6b6b; }
.legend-color.S { background: #4ecdc4; }
.legend-color.D { background: #45b7d1; }
.legend-color.P { background: #a29bfe; }
.legend-color.Dh { background: #96ceb4; color: #333; }
.legend-color.Ds { background: #ffeaa7; color: #333; }

/* Notes Section */
.notes-section {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notes-section h2 {
    color: #ffc107;
    margin-top: 0;
    margin-bottom: 25px;
}

.notes-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.note-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.note-item h3 {
    color: #28a745;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.note-item p {
    color: #e9ecef;
    margin: 0;
    line-height: 1.6;
}

/* Hover Effects */
.strategy-table td:not(.player-hand):hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .strategy-table-container {
        padding: 20px;
        margin-top: 20px;
    }
    
    .strategy-table-container h1 {
        font-size: 2em;
    }
    
    .strategy-table {
        font-size: 12px;
    }
    
    .strategy-table th,
    .strategy-table td {
        padding: 8px 4px;
    }
    
    .legend {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    .legend-color {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .notes-content {
        grid-template-columns: 1fr;
    }
    
    .note-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .strategy-table {
        font-size: 10px;
    }
    
    .strategy-table th,
    .strategy-table td {
        padding: 6px 2px;
    }
    
    .player-header {
        min-width: 80px;
    }
    
    .dealer-header {
        min-width: 40px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .strategy-table-container {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .legend, .notes-section {
        background: #f9f9f9 !important;
        border: 1px solid #ddd !important;
    }
    
    .notes-section {
        page-break-inside: avoid;
    }
    
    .table-section {
        page-break-inside: avoid;
    }
}
