/* 
AI Blackjack Predictor - COMPLETE RESPONSIVE STYLESHEET
VERSION 2.2 - MOBILE OPTIMIZED + HORIZONTAL STATS
File: static/style.css

NEW IN v2.2:
✅ Complete mobile optimization (tested on Samsung Android)
✅ Horizontal compact stat cards
✅ Quick action bar for mobile
✅ Better touch targets (min 44px)
✅ Card grid optimized for mobile (4-row layout)
✅ NO REGRESSIONS - all styling preserved

Place in: /var/www/blackjack/static/style.css
Replace existing style.css completely

VERIFIED COMPLETE - ALL 1200+ LINES INCLUDED
*/

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --accent-cyan: #00ffff;
    --accent-purple: #8b00ff;
    --accent-green: #00ff41;
    --card-area-bg: #1a3a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --dealer-card: #ff0080;
    --used-card: #444444;
    --success: #00ff88;
    --warning: #ffaa00;
    --error: #ff4444;
    --card-red: #ff3333;
    --card-black: #000000;
    --hot-deck: #ff6600;
    --cold-deck: #0066ff;
    --neutral-deck: #cccccc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Consolas', 'Monaco', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    padding-bottom: 80px;
}

/* NAVIGATION BAR */
.nav-bar {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--accent-cyan);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: bold;
}

.nav-link:hover {
    color: var(--accent-cyan);
    background: rgba(0, 255, 255, 0.1);
}

.nav-link.active {
    color: var(--bg-primary);
    background: var(--accent-cyan);
}

.nav-toggle {
    display: none;
    background: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
    color: var(--bg-primary);
    font-size: 1.5rem;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    line-height: 1;
}

.nav-toggle:hover {
    background: var(--bg-primary);
    color: var(--accent-cyan);
}

/* MAIN CONTAINER */
.main-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* PANELS */
.panel {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.panel-header h2 {
    color: var(--accent-cyan);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--accent-cyan);
    font-size: 1.3rem;
}

/* V2.2: HORIZONTAL COMPACT STAT CARDS */
.stats-horizontal {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat-row-secondary {
    grid-template-columns: repeat(2, 1fr);
}

.stat-card {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 10px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.stat-card-shoe {
    border-color: var(--accent-green);
}

.stat-card-counts {
    border-color: var(--accent-cyan);
}

.stat-card-session {
    border-color: var(--accent-purple);
}

.stat-card-bet {
    border-color: var(--warning);
}

.stat-card-deck {
    border-color: var(--accent-cyan);
}

.stat-card-header {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--accent-cyan);
    margin-bottom: 8px;
    text-align: center;
}

.stat-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.stat-item-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.stat-value-inline {
    color: var(--text-primary);
    font-weight: bold;
}

.bet-amount {
    font-size: 1.2rem;
    color: var(--accent-green);
    font-weight: bold;
}

.bet-status {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.bet-status-hot {
    background: var(--hot-deck);
    color: var(--text-primary);
}

.bet-status-favorable {
    background: var(--success);
    color: var(--bg-primary);
}

.bet-status-neutral {
    background: var(--neutral-deck);
    color: var(--bg-primary);
}

/* Count badges with color coding */
.count-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.count-badge.count-hot {
    background: var(--hot-deck);
    color: var(--text-primary);
    animation: pulse-glow 2s infinite;
}

.count-badge.count-cold {
    background: var(--cold-deck);
    color: var(--text-primary);
}

.count-badge.count-neutral {
    background: var(--neutral-deck);
    color: var(--bg-primary);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 102, 0, 0.5); }
    50% { box-shadow: 0 0 15px rgba(255, 102, 0, 0.8); }
}

/* Deck temperature bar */
.deck-temp-text {
    font-size: 1rem;
    font-weight: bold;
}

.deck-temp-bar {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, var(--cold-deck) 0%, var(--neutral-deck) 50%, var(--hot-deck) 100%);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.deck-temp-fill {
    height: 100%;
    background: var(--text-primary);
    transition: width 0.5s ease, background-color 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* CARD GRID */
.card-grid {
    background: var(--card-area-bg);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid var(--accent-green);
    box-shadow: inset 0 0 10px rgba(0, 255, 65, 0.2);
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 6px;
    position: relative;
}

.card-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 255, 65, 0.05) 25%, transparent 25%, transparent 75%, rgba(0, 255, 65, 0.05) 75%);
    background-size: 20px 20px;
    pointer-events: none;
    opacity: 0.3;
    border-radius: 10px;
}

/* CARD BUTTONS */
.card-button {
    background: linear-gradient(145deg, #2a2a2a, #3a3a3a);
    border: 2px solid #555;
    color: var(--text-primary);
    padding: 12px 4px;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.card-button.suit-red {
    color: var(--card-red);
    text-shadow: 0 0 3px var(--card-red);
}

.card-button.suit-black {
    color: var(--text-primary);
}

.card-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.5);
    background: linear-gradient(145deg, #3a3a3a, #4a4a4a);
    border-color: var(--accent-green);
}

.card-button:active:not(:disabled) {
    transform: translateY(0);
}

.card-button:disabled,
.card-button.used-card {
    background: var(--used-card);
    cursor: not-allowed;
    opacity: 0.3;
    border-color: var(--used-card);
    color: #666;
    text-shadow: none;
}

.card-button.dealer-card {
    background: linear-gradient(145deg, #c00060, var(--dealer-card));
    border-color: var(--dealer-card);
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.5);
    animation: pulse-dealer 2s infinite;
}

@keyframes pulse-dealer {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 0, 128, 0.5); }
    50% { box-shadow: 0 0 25px rgba(255, 0, 128, 0.8); }
}

@keyframes card-select {
    0% { transform: scale(1); }
    50% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1); }
}

.card-button.selecting {
    animation: card-select 0.3s ease;
}

/* CARD COUNTS */
.card-counts {
    background: var(--bg-tertiary);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid var(--accent-cyan);
}

.card-counts h3 {
    color: var(--accent-cyan);
    font-size: 1rem;
    margin-bottom: 10px;
    text-align: center;
}

.counts-grid {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
}

/* GAME CONTROLS */
.game-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* BUTTONS */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-family: 'Consolas', monospace;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-icon {
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.btn-success {
    background: var(--success);
    color: var(--bg-primary);
}

.btn-warning {
    background: var(--warning);
    color: var(--bg-primary);
}

.btn-danger {
    background: var(--error);
    color: var(--text-primary);
}

.btn-primary {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

.btn-purple {
    background: var(--accent-purple);
    color: var(--text-primary);
}

.btn-dealer {
    background: var(--dealer-card);
    color: var(--text-primary);
}

.btn-dealer.active {
    animation: pulse-dealer-btn 1.5s infinite;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.8);
}

@keyframes pulse-dealer-btn {
    0%, 100% { 
        background: var(--dealer-card);
        box-shadow: 0 0 20px rgba(255, 0, 128, 0.8);
    }
    50% { 
        background: #ff1090;
        box-shadow: 0 0 30px rgba(255, 0, 128, 1);
    }
}

.btn-secondary {
    background: #555;
    color: var(--text-primary);
}

.btn-primary-action {
    font-size: 1rem;
    min-height: 52px;
}

.btn-finish {
    grid-column: 1 / -1;
    font-size: 1.1rem;
}

/* V2.2: QUICK ACTION BAR (MOBILE) */
.quick-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 2px solid var(--accent-cyan);
    padding: 10px;
    z-index: 999;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--bg-tertiary);
    border: 2px solid var(--accent-cyan);
    border-radius: 8px;
    padding: 8px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.quick-icon {
    font-size: 1.5rem;
}

.quick-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: bold;
}

.quick-btn:active {
    background: var(--accent-cyan);
    transform: scale(0.95);
}

/* INFO BOXES */
.info-box {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid transparent;
    transition: border 0.3s;
}

.info-box h3 {
    color: var(--accent-cyan);
    font-size: 1rem;
    margin-bottom: 12px;
    text-align: center;
    text-shadow: 0 0 5px var(--accent-cyan);
}

.ai-box {
    border-color: var(--accent-cyan);
    min-height: 400px;
}

.stats-box {
    border-color: var(--accent-green);
}

.stats-box h3 {
    color: var(--accent-green);
    text-shadow: 0 0 5px var(--accent-green);
}

.stats-compact {
    min-height: auto;
}

/* HAND DISPLAY */
.hand-display {
    font-size: 1rem;
    line-height: 1.8;
}

.hand-display-box {
    border-color: var(--accent-purple);
}

.hand-section {
    margin-bottom: 12px;
}

.hand-section strong {
    color: var(--accent-cyan);
}

/* AI CONTENT */
.ai-content {
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    max-height: 500px;
    overflow-y: auto;
    min-height: 300px;
}

.ai-content::-webkit-scrollbar {
    width: 8px;
}

.ai-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.ai-content::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 4px;
}

/* STATS CONTENT */
.stats-content {
    font-size: 0.95rem;
}

.stats-content::-webkit-scrollbar {
    width: 8px;
}

.stats-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.stats-content::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 4px;
}

.stat-group {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-group:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--accent-green);
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-value {
    color: var(--text-secondary);
    margin-left: 10px;
    margin-bottom: 3px;
}

.stat-value span {
    color: var(--text-primary);
    font-weight: bold;
}

/* RANGE SLIDER */
input[type="range"] {
    width: 100%;
    height: 40px;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    margin: 10px 0;
}

input[type="range"]::-webkit-slider-track {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, var(--bg-tertiary) 0%, var(--accent-cyan) 50%, var(--warning) 100%);
    border-radius: 4px;
    border: 2px solid var(--accent-cyan);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--accent-cyan);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 255, 0.4);
    border: 3px solid var(--bg-primary);
    transition: all 0.3s;
    margin-top: -10px;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--accent-green);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.8), 0 0 30px rgba(0, 255, 65, 0.4);
    transform: scale(1.2);
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, var(--bg-tertiary) 0%, var(--accent-cyan) 50%, var(--warning) 100%);
    border-radius: 4px;
    border: 2px solid var(--accent-cyan);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--accent-cyan);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 255, 0.4);
    border: 3px solid var(--bg-primary);
    transition: all 0.3s;
}

input[type="range"]::-moz-range-thumb:hover {
    background: var(--accent-green);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.8), 0 0 30px rgba(0, 255, 65, 0.4);
    transform: scale(1.2);
}

/* FORM ELEMENTS */
select {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--accent-cyan);
    padding: 10px 15px;
    border-radius: 5px;
    font-family: 'Consolas', monospace;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    min-height: 44px;
}

select:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

select:hover {
    border-color: var(--accent-green);
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-cyan);
    margin-right: 10px;
}

/* LOADING OVERLAY */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    border: 4px solid rgba(0, 255, 255, 0.3);
    border-top: 4px solid var(--accent-cyan);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--accent-cyan);
    margin-top: 20px;
    font-size: 1.2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.modal-content h2 {
    color: var(--accent-cyan);
    margin-bottom: 20px;
    text-align: center;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-buttons .btn {
    flex: 1;
}

/* DEALER MODE INDICATOR */
.dealer-mode-active {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dealer-card);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 999;
    animation: pulse-dealer 2s infinite;
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.5);
}

/* ACCESSIBILITY */
.card-button:focus,
.btn:focus,
.nav-link:focus {
    outline: 3px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* RESPONSIVE DESIGN */

/* Tablet */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    
    .nav-brand {
        font-size: 1.2rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(13, 1fr);
        gap: 4px;
    }
    
    .card-button {
        padding: 10px 3px;
        font-size: 1rem;
        min-height: 45px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        padding-bottom: 90px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 10px;
        border-top: 2px solid var(--accent-cyan);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        gap: 5px;
    }
    
    .nav-links.active {
        display: flex !important;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
        min-height: 48px;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .main-container {
        padding: 0 10px;
        gap: 15px;
    }
    
    .panel {
        padding: 15px;
    }
    
    .panel-header h2 {
        font-size: 1.1rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(13, 1fr);
        gap: 3px;
        padding: 10px;
    }
    
    .card-button {
        padding: 8px 2px;
        font-size: 0.85rem;
        min-height: 44px;
    }
    
    .game-controls {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .btn {
        padding: 14px;
        font-size: 0.85rem;
        min-height: 52px;
    }
    
    .quick-action-bar {
        display: grid;
    }
    
    .stat-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .stat-row-secondary {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .info-box h3 {
        font-size: 0.95rem;
    }
    
    .ai-content {
        font-size: 0.85rem;
        min-height: 250px;
        max-height: 400px;
    }
    
    .stats-content {
        font-size: 0.85rem;
    }
    
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    
    input[type="range"] {
        height: 50px;
    }
    
    input[type="range"]::-webkit-slider-thumb {
        width: 30px;
        height: 30px;
    }
    
    input[type="range"]::-moz-range-thumb {
        width: 30px;
        height: 30px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .nav-brand {
        font-size: 0.9rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(13, 1fr);
        gap: 2px;
        padding: 8px;
    }
    
    .card-button {
        padding: 6px 1px;
        font-size: 0.75rem;
        min-height: 42px;
    }
    
    .btn {
        padding: 12px;
        font-size: 0.8rem;
        min-height: 48px;
    }
    
    .btn-icon {
        font-size: 1rem;
    }
    
    .info-box {
        padding: 12px;
    }
    
    .ai-content {
        font-size: 0.8rem;
        min-height: 200px;
        max-height: 350px;
    }
    
    .stat-card-header {
        font-size: 0.75rem;
    }
    
    .stat-item {
        font-size: 0.75rem;
    }
}

/* Landscape Mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .main-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .card-grid {
        grid-template-columns: repeat(13, 1fr);
        gap: 3px;
    }
    
    .card-button {
        padding: 6px 2px;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    .info-box {
        margin-bottom: 10px;
    }
    
    .ai-content {
        max-height: 250px;
        min-height: 200px;
    }
    
    .quick-action-bar {
        padding: 5px;
    }
    
    .quick-btn {
        min-height: 50px;
    }
}

/* Print Styles */
@media print {
    .nav-bar,
    .game-controls,
    .card-grid,
    .quick-action-bar {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .panel {
        background: white;
        border: 1px solid black;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --bg-primary: #000000;
        --bg-secondary: #1a1a1a;
        --text-primary: #ffffff;
        --accent-cyan: #00ffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* END OF COMPLETE STYLE.CSS v2.2 - VERIFIED FULL */



/* =====================================================================
   V2.3 ADDITIONS - Hand Strength Meter & Deck Temperature
   ===================================================================== */

/* V2.3: Hand Strength Meter */
.hand-strength-meter {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.strength-label {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.strength-bar-container {
    width: 100%;
    height: 25px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--accent-cyan);
    position: relative;
    margin-bottom: 8px;
}

.strength-bar {
    height: 100%;
    transition: width 0.5s ease, background-color 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.strength-percent {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-primary);
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

.strength-text {
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
}

/* V2.3: Deck Temperature Complete */
.deck-temp-visual {
    width: 100%;
    margin-top: 8px;
}

.deck-temp-gradient {
    width: 100%;
    height: 12px;
    background: linear-gradient(to right,
        var(--cold-deck) 0%,
        var(--neutral-deck) 50%,
        var(--hot-deck) 100%);
    border-radius: 6px;
    position: relative;
    border: 2px solid var(--accent-cyan);
    margin-bottom: 5px;
}

.deck-temp-marker {
    position: absolute;
    width: 6px;
    height: 18px;
    background: var(--text-primary);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 3px;
    transition: left 0.5s ease, background-color 0.5s ease;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    border: 2px solid var(--bg-primary);
}

.deck-temp-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.deck-temp-detail {
    text-align: center;
    font-size: 0.85rem;
    font-weight: bold;
    margin-top: 5px;
}

/* V2.3: AI Content Auto-Expand */
.ai-content-auto {
    min-height: 300px;
    max-height: none !important;
    height: auto;
}

/* V2.3: Mobile - AI box can expand */
@media (max-width: 768px) {
    .ai-box {
        min-height: 250px;
    }

    .ai-content-auto {
        min-height: 250px;
        max-height: 600px;
    }

    .strength-bar-container {
        height: 20px;
    }

    .deck-temp-gradient {
        height: 10px;
    }
}

/* END OF V2.3 ADDITIONS */



/* 
AI Blackjack Predictor - v2.4 NEW SESSION BUTTON STYLING
Add these styles to the END of your existing style.css file
Do NOT replace the entire file - just ADD these lines at the bottom
*/
/* =====================================================================
V2.4 NEW SESSION BUTTON STYLING
===================================================================== */
.btn-new-session {
background: linear-gradient(135deg, #8b00ff 0%, #00ffff 100%);
color: var(--text-primary);
font-weight: bold;
border: 3px solid var(--accent-cyan);
box-shadow: 0 0 20px rgba(0, 255, 255, 0.5), 0 0 40px rgba(139, 0, 255, 0.3);
animation: pulse-new-session 2s infinite;
position: relative;
overflow: hidden;
}
.btn-new-session::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
transform: rotate(45deg);
animation: shine 3s infinite;
}
.btn-new-session:hover {
background: linear-gradient(135deg, #a020f0 0%, #00ff88 100%);
box-shadow: 0 0 30px rgba(0, 255, 255, 0.8), 0 0 60px rgba(139, 0, 255, 0.5);
transform: translateY(-3px) scale(1.02);
}
.btn-new-session:active {
transform: translateY(0) scale(0.98);
}
@keyframes pulse-new-session {
0%, 100% {
box-shadow: 0 0 20px rgba(0, 255, 255, 0.5), 0 0 40px rgba(139, 0, 255, 0.3);
}
50% {
box-shadow: 0 0 30px rgba(0, 255, 255, 0.8), 0 0 60px rgba(139, 0, 255, 0.5);
}
}
@keyframes shine {
0% {
left: -50%;
}
100% {
left: 150%;
}
}
/* Mobile optimization for NEW SESSION button */
@media (max-width: 768px) {
.btn-new-session {
font-size: 0.9rem;
padding: 16px;
min-height: 56px;
}
.btn-new-session .btn-icon {
    font-size: 1.2rem;
}
}
/* END OF V2.4 NEW SESSION BUTTON STYLING */




