/* Blackjack Strategy Page Styles */
.blackjack-strategy-page {
    padding: var(--space-lg, 1.5rem) 0;
}

.strategy-header {
    text-align: center;
    margin-bottom: var(--space-2xl, 2.5rem);
}

.strategy-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--text-primary, #ffffff);
    margin-bottom: var(--space-sm, 0.5rem);
}

.strategy-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary, #94a3b8);
}

.strategy-section {
    background: var(--bg-surface, #232838);
    border: 3px solid var(--border-color, #2d3548);
    border-radius: 4px;
    padding: var(--space-2xl, 2.5rem);
    margin-bottom: var(--space-2xl, 2.5rem);
}

.strategy-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg, 1.5rem);
    margin-bottom: var(--space-2xl, 2.5rem);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm, 0.5rem);
}

.control-label {
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.control-select {
    background: var(--bg-primary, #1a1f2e);
    border: 2px solid var(--border-color, #2d3548);
    color: var(--text-primary, #ffffff);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.control-select:focus {
    outline: none;
    border-color: var(--accent-electric, #00ff88);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.chart-container {
    overflow-x: auto;
    margin-top: var(--space-xl, 2rem);
    background: var(--bg-primary, #1a1f2e);
    border: 3px solid var(--border-color, #2d3548);
    border-radius: 4px;
    padding: var(--space-lg, 1.5rem);
}

.chart-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-electric, #00ff88);
    margin-bottom: var(--space-md, 1rem);
    text-align: center;
}

.strategy-chart {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
    margin-bottom: var(--space-2xl, 2.5rem);
}

.strategy-chart th,
.strategy-chart td {
    padding: 0.75rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 700;
    border: 2px solid transparent;
}

.strategy-chart th {
    background: var(--bg-surface, #232838);
    color: var(--accent-electric, #00ff88);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.strategy-chart td {
    min-width: 50px;
    transition: all 0.2s;
}

.strategy-chart td:hover {
    transform: scale(1.05);
    z-index: 2;
    color: #0f172a;
}

.strategy-chart td strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 900;
    margin-top: 0.25rem;
}

.chart-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.action-H {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.3);
}

.action-S {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.3);
}

.action-D {
    background: rgba(14, 165, 233, 0.2);
    color: #67e8f9;
    border-color: rgba(14, 165, 233, 0.3);
}

.action-P {
    background: rgba(249, 115, 22, 0.2);
    color: #fdba74;
    border-color: rgba(249, 115, 22, 0.3);
}

.action-R {
    background: rgba(168, 85, 247, 0.2);
    color: #d8b4fe;
    border-color: rgba(168, 85, 247, 0.3);
}

.action-H,
.action-S,
.action-D,
.action-P,
.action-R {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.strategy-chart td[data-action="H"] {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.strategy-chart td[data-action="S"] {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
}

.strategy-chart td[data-action="D"] {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.3);
}

.strategy-chart td[data-action="Dh"],
.strategy-chart td[data-action="Ds"] {
    background: rgba(5, 150, 105, 0.2);
    border-color: rgba(5, 150, 105, 0.3);
    color: #d1fae5;
}

.strategy-chart td[data-action="P"] {
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.3);
}

.strategy-chart td[data-action="Ph"] {
    background: rgba(217, 119, 6, 0.2);
    border-color: rgba(217, 119, 6, 0.3);
    color: #ffedd5;
}

.strategy-chart td[data-action="Rh"],
.strategy-chart td[data-action="Rs"] {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.3);
    color: #ede9fe;
}

.action-H,
.action-S,
.action-D,
.action-P,
.action-R {
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
}

.action-H strong,
.action-S strong,
.action-D strong,
.action-P strong,
.action-R strong {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
}

.action-H {
    background: #3b82f6;
    color: #ffffff;
}

.action-S {
    background: #10b981;
    color: #ffffff;
}

.action-D {
    background: #0ea5e9;
    color: #ffffff;
}

.action-Dh {
    background: #059669;
    color: #ffffff;
}

.action-Ds {
    background: #14b8a6;
    color: #ffffff;
}

.action-P {
    background: #f59e0b;
    color: #ffffff;
}

.action-Ph {
    background: #d97706;
    color: #ffffff;
}

.action-Rh {
    background: #8b5cf6;
    color: #ffffff;
}

.action-Rs {
    background: #7c3aed;
    color: #ffffff;
}

.legend-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-md, 1rem);
    margin-top: var(--space-xl, 2rem);
    padding: var(--space-lg, 1.5rem);
    background: var(--bg-surface, #232838);
    border: 2px solid var(--border-color, #2d3548);
    border-radius: 4px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm, 0.5rem);
}

.legend-color {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.legend-text {
    font-size: 0.875rem;
    color: var(--text-secondary, #94a3b8);
}

.legend-text strong {
    color: var(--text-primary, #ffffff);
    display: block;
}

.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg, 1.5rem);
    margin-top: var(--space-2xl, 2.5rem);
}

.info-card {
    background: var(--bg-surface, #232838);
    border: 3px solid var(--border-color, #2d3548);
    border-radius: 4px;
    padding: var(--space-xl, 2rem);
}

.info-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-electric, #00ff88);
    margin-bottom: var(--space-md, 1rem);
}

.info-content {
    color: var(--text-secondary, #94a3b8);
    line-height: 1.6;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-list li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .strategy-chart {
        font-size: 0.75rem;
    }

    .strategy-chart th,
    .strategy-chart td {
        padding: 0.5rem;
        min-width: 40px;
    }
}
