/* Casino Calculators — Shared Design System */
:root {
    --bg-primary: #0f1117;
    --bg-secondary: #1a1d27;
    --bg-card: #1e2130;
    --bg-input: #252838;
    --text-primary: #e8eaed;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent: #f59e0b;
    --green: #36d67a;
    --blue: #3b82f6;
    --red: #f05454;
    --border: rgba(255,255,255,0.08);
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 16px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
}

h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
}

p { margin-bottom: 12px; }

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

input[type="number"],
input[type="text"],
select {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    border-color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font);
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    width: 100%;
}

.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.98); }

.btn-accent {
    background: var(--accent);
    color: #000;
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-secondary);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}

.stat-card {
    text-align: center;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
}

.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 24px 0;
    border-radius: 1px;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.result-row-highlight {
    background: rgba(245,158,11,0.05);
    margin: 0 -28px;
    padding: 14px 28px;
}

.chart-container {
    display: flex;
    align-items: flex-end;
    gap: 1px;
    height: 160px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 8px;
    overflow: hidden;
}

.info-box {
    padding: 14px;
    background: rgba(59,130,246,0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.83rem;
    color: var(--text-secondary);
}

.verdict-good {
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 10px;
    padding: 18px;
}

.verdict-avg {
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 10px;
    padding: 18px;
}

.verdict-bad {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 10px;
    padding: 18px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

th {
    text-align: left;
    padding: 10px 8px;
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
}

/* Range slider */
input[type="range"] {
    -webkit-appearance: none;
    background: var(--bg-input);
    border-radius: 3px;
    outline: none;
    height: 6px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
}

/* Details/FAQ */
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* Navigation bar */
.nav-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-brand {
    font-weight: 800;
    font-size: 1rem;
    color: var(--accent);
    text-decoration: none;
}

.nav-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--accent); }

/* Footer */
.footer {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 600px) {
    .grid-2 { grid-template-columns: 1fr; }
    .container { padding: 20px 12px; }
    h1 { font-size: 1.4rem; }
    .card { padding: 20px; }
}
