/* Basic Strategy Module Styles */

.basic-strategy-container {
    padding: 20px 0;
    min-height: 100vh;
    color: #fff;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.page-header h1 {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-header .lead {
    color: #b8d4c8;
    font-size: 1.2em;
}

/* Strategy Tabs */
.strategy-tabs {
    margin-bottom: 30px;
    border-bottom: 3px solid #2a6b4f;
}

.strategy-tabs > li > a {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid #2a6b4f;
    margin-right: 2px;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.strategy-tabs > li > a:hover {
    background: rgba(255,255,255,0.2);
    border-color: #4a8b6f;
}

.strategy-tabs > li.active > a,
.strategy-tabs > li.active > a:hover,
.strategy-tabs > li.active > a:focus {
    background: #fff;
    color: #0f4c3a;
    border-color: #2a6b4f;
    font-weight: bold;
}

/* Strategy Content */
.strategy-content {
    background: rgba(255,255,255,0.95);
    border-radius: 0 0 12px 12px;
    padding: 30px;
    color: #333;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.strategy-section {
    margin-bottom: 30px;
}

.section-title {
    color: #0f4c3a;
    font-size: 1.8em;
    margin-bottom: 15px;
    border-bottom: 2px solid #2a6b4f;
    padding-bottom: 10px;
}

.card-icon {
    font-size: 1.2em;
    margin-right: 10px;
}

.section-description {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Strategy Tables */
.strategy-table {
    background: #fff;
    border: 3px solid #1e7e34;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin-bottom: 25px;
}

.strategy-table thead {
    background: linear-gradient(135deg, #155724 0%, #1e7e34 50%, #28a745 100%);
    position: relative;
}

.strategy-table thead::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffc107 0%, #fd7e14 50%, #dc3545 100%);
}

.strategy-table th {
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 15px 10px;
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.player-header {
    background: linear-gradient(135deg, #0d4f1c 0%, #155724 100%) !important;
    font-size: 1.1em;
    min-width: 120px;
    border-right: 2px solid #ffc107 !important;
}

.dealer-header {
    min-width: 65px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #1e7e34 0%, #28a745 100%);
}

.dealer-header:hover {
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Card Display in Headers */
.card-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.dealer-card {
    width: 30px;
    height: 42px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-value {
    font-size: 0.9em;
    font-weight: bold;
}

/* Strategy Table Body */
.strategy-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(30, 126, 52, 0.1);
}

.strategy-table tbody tr:nth-child(even) {
    background: rgba(248, 249, 250, 0.5);
}

.strategy-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.08) 0%, rgba(255, 193, 7, 0.05) 100%);
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.strategy-table td {
    text-align: center;
    padding: 12px 10px;
    border: 1px solid rgba(222, 226, 230, 0.8);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-hand-cell {
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8f1 100%);
    font-weight: bold;
    color: #155724;
    border-right: 3px solid #28a745;
    font-size: 1.05em;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* Strategy Action Cells */
.action-cell {
    font-weight: bold;
    font-size: 1.1em;
    position: relative;
    border-radius: 6px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    border: 2px solid transparent;
}

.action-cell:hover {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    border-color: rgba(255,255,255,0.3);
}

/* Enhanced Action Colors with Gradients */
.action-H { 
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); 
    color: #fff; 
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
} /* Hit - Red Gradient */

.action-S { 
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%); 
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
} /* Stand - Teal Gradient */

.action-D { 
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); 
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
} /* Double - Blue Gradient */

.action-Dh { 
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%); 
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
} /* Double/Hit - Green Gradient */

.action-Ds { 
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); 
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
} /* Double/Stand - Orange Gradient */

.action-P { 
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); 
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
} /* Split - Purple Gradient */

.action-R { 
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%); 
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
} /* Surrender - Pink Gradient */

.action-Rh { 
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%); 
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
} /* Surrender/Hit - Orange Gradient */

/* Action Legend */
.action-legend {
    margin-top: 20px;
}

.action-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
    border-left: 4px solid #2a6b4f;
}

.action-code {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    color: #fff;
    margin-right: 15px;
    font-size: 1.2em;
}

.action-item.hit .action-code { 
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}
.action-item.stand .action-code { 
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    box-shadow: 0 2px 8px rgba(26, 188, 156, 0.3);
}
.action-item.double .action-code { 
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}
.action-item.split .action-code { 
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.3);
}
.action-item.surrender .action-code { 
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}
.action-item.conditional .action-code { 
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

.action-name {
    font-weight: bold;
    color: #0f4c3a;
    margin-right: 10px;
    min-width: 120px;
}

.action-item p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

/* Strategy Guide */
.strategy-guide {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.guide-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.guide-section:last-child {
    border-bottom: none;
}

.guide-section h4 {
    color: #0f4c3a;
    margin-bottom: 15px;
}

.guide-section ul {
    padding-left: 20px;
}

.guide-section li {
    margin-bottom: 8px;
    color: #666;
}

/* Strategy Tips */
.strategy-tips {
    padding-left: 20px;
}

.tip-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #2a6b4f;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tip-card h5 {
    color: #0f4c3a;
    margin-bottom: 10px;
    font-weight: bold;
}

.tip-card p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Strategy Modal */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, #0f4c3a 0%, #2a6b4f 100%);
    color: #fff;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    font-weight: bold;
}

.hand-display {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.player-cards, .dealer-cards {
    text-align: center;
}

.player-cards h5, .dealer-cards h5 {
    color: #0f4c3a;
    margin-bottom: 10px;
}

#player-cards-display, #dealer-card-display {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.strategy-explanation {
    text-align: center;
}

#recommended-action {
    font-weight: bold;
    color: #0f4c3a;
    font-size: 1.2em;
}

#strategy-reasoning {
    color: #666;
    line-height: 1.6;
    margin-top: 15px;
}

/* Enhanced Strategy Guide Styles */
.strategy-guide h2 {
    color: #0f4c3a;
    font-size: 2.2em;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid #2a6b4f;
    padding-bottom: 15px;
}

.strategy-guide h3 {
    color: #2a6b4f;
    font-size: 1.6em;
    margin-top: 35px;
    margin-bottom: 20px;
    border-left: 4px solid #2a6b4f;
    padding-left: 15px;
}

.strategy-guide h4 {
    color: #0f4c3a;
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 15px;
}

.strategy-guide h5 {
    color: #2a6b4f;
    font-size: 1.1em;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Math Example Styling */
.math-example {
    background: #f8f9fa;
    border-left: 4px solid #45b7d1;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.math-example h5 {
    color: #45b7d1;
    margin-bottom: 15px;
}

.math-example ul {
    margin-bottom: 0;
}

.math-example li {
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.benefit-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #2a6b4f;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.benefit-card h4 {
    color: #0f4c3a;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.benefit-card p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Rule Variations */
.rule-variations {
    margin-top: 20px;
}

.rule-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.rule-item h4 {
    color: #2a6b4f;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.rule-item p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Learning Tips */
.learning-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.tip-category {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    border-top: 4px solid #2a6b4f;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tip-category h4 {
    color: #0f4c3a;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.tip-category ul, .tip-category ol {
    padding-left: 20px;
}

.tip-category li {
    margin-bottom: 8px;
    color: #666;
    line-height: 1.5;
}

/* Enhanced Action Legend */
.strategy-guide .action-legend {
    margin-top: 25px;
}

.strategy-guide .action-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.strategy-guide .action-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.strategy-guide .action-item p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .basic-strategy-container {
        padding: 10px;
    }
    
    .page-header h1 {
        font-size: 2em;
    }
    
    .strategy-content {
        padding: 15px;
    }
    
    .dealer-card {
        width: 25px;
        height: 35px;
    }
    
    .strategy-table th,
    .strategy-table td {
        padding: 8px 4px;
        font-size: 0.9em;
    }
    
    .action-cell {
        font-size: 1em;
    }
    
    .strategy-tips {
        padding-left: 0;
        margin-top: 20px;
    }
    
    .hand-display {
        flex-direction: column;
        gap: 15px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .learning-tips {
        grid-template-columns: 1fr;
    }
    
    .strategy-guide h2 {
        font-size: 1.8em;
    }
    
    .strategy-guide h3 {
        font-size: 1.4em;
    }
}
