/* SD GTO Strategy Viewer Premium Styles */
:root {
    --bg-darker: #05070a;
    --bg-sidebar: #0f1117;
    --accent-gold: #c2a35d;
    --accent-blue: #3b82f6;
    --text-primary: #e2e8f0;
    --text-dim: #94a3b8;
    --table-green: #064e3b;
    --table-border: #0a0c10;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --purple: #8b5cf6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-gold), #8e733a);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--bg-darker);
    font-size: 1.2rem;
}

.brand h2 {
    font-size: 1.1rem;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

.control-group {
    margin-bottom: 30px;
}

.control-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 12px;
    letter-spacing: 1.5px;
}

.select-box {
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    text-align: center;
    color: var(--text-primary);
}

.stack-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stack-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    padding: 10px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.stack-btn.active {
    background: rgba(194, 163, 93, 0.15);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    font-weight: 600;
}

.history-display {
    padding: 15px;
    background: #000;
    border-radius: 8px;
    min-height: 80px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: var(--success);
    line-height: 1.5;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.reset-btn {
    margin-top: auto;
    background: var(--danger);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.1s;
}

.reset-btn:active {
    transform: scale(0.95);
}

.footer-info {
    margin-top: 20px;
    font-size: 0.65rem;
    color: var(--text-dim);
    text-align: center;
}

/* Main Viewer Styling */
.main-viewer {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at center, #1a1e26 0%, var(--bg-darker) 100%);
    position: relative;
}

.table-area {
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.poker-table {
    width: 500px;
    height: 180px;
    background-color: var(--table-green);
    border: 12px solid var(--table-border);
    border-radius: 100px;
    position: relative;
    box-shadow: 
        inset 0 0 50px rgba(0,0,0,0.8),
        0 20px 50px rgba(0,0,0,0.6);
}

.felt-texture {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    border-radius: 88px;
}

.table-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.05);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 10px;
    pointer-events: none;
    user-select: none;
}

.seat {
    position: absolute;
    width: 80px;
    height: 35px;
    background: var(--bg-sidebar);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.seat.active {
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(194, 163, 93, 0.5);
    background: rgba(194, 163, 93, 0.1);
}

.seat.utg { left: -40px; top: 50%; transform: translateY(-50%); }
.seat.btn { right: -40px; top: 50%; transform: translateY(-50%); }

.pos-tag {
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--text-dim);
}

.seat.active .pos-tag { color: var(--accent-gold); }

/* Action Buttons */
.action-interaction {
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.action-title {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.act-btn {
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: all 0.2s;
    min-width: 120px;
}

.act-btn:hover { transform: translateY(-3px); filter: brightness(1.1); }
.act-btn:active { transform: translateY(0); }

.act-btn.limp { background: var(--accent-blue); color: white; }
.act-btn.raise { background: var(--warning); color: black; }
.act-btn.allin { background: var(--purple); color: white; }
.act-btn.call { background: var(--success); color: white; }
.act-btn.fold { background: var(--text-dim); color: white; }

/* Map Viewport */
.strategy-viewport {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 100%;
    max-width: 800px;
    max-height: 500px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.placeholder-text {
    color: var(--text-dim);
    font-style: italic;
    font-size: 0.9rem;
}

.map-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    display: none;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
