/* ========================================
   BlackGPT - Casino Dark Mode Styles
   ======================================== */

/* CSS Variables */
:root {
    /* Core Colors - Casino Dark Mode */
    --bg-primary: #0a0f0a;
    --bg-secondary: #111811;
    --bg-tertiary: #1a221a;
    --bg-card: #142114;
    --bg-code: #0d120d;
    
    /* Accent Colors */
    --accent-green: #2d5a3d;
    --accent-green-light: #3d7a52;
    --accent-gold: #c9a227;
    --accent-red: #8b3a3a;
    --accent-red-light: #a84545;
    
    /* Text Colors */
    --text-primary: #f0f0f0;
    --text-secondary: #a0a8a0;
    --text-muted: #6a7a6a;
    --text-code: #7dd87d;
    
    /* Action Colors */
    --action-hit: #3d7a52;
    --action-stand: #c9a227;
    --action-double: #4a7cc7;
    --action-split: #9b59b6;
    --action-surrender: #8b3a3a;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --section-padding: 6rem;
    --container-max: 1200px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 15, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(45, 90, 61, 0.3);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    color: var(--text-primary);
    font-size: 1.75rem;
}

.logo-text {
    color: var(--text-primary);
}

.logo-accent {
    color: var(--accent-green-light);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    background: var(--accent-green);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: var(--text-primary) !important;
}

.nav-cta:hover {
    background: var(--accent-green-light);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(45, 90, 61, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(45, 90, 61, 0.1) 0%, transparent 50%),
        var(--bg-primary);
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(45, 90, 61, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 90, 61, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.hero-container {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--accent-green);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-green-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    color: var(--accent-green-light);
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-green-light);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--accent-green);
    opacity: 0.3;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--accent-green);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--accent-green-light);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent-green);
}

.btn-secondary:hover {
    background: rgba(45, 90, 61, 0.2);
}

.btn-full {
    width: 100%;
}

/* ========================================
   Section Styles
   ======================================== */

.section {
    padding: var(--section-padding) 2rem;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-green-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ========================================
   Basic Strategy Section
   ======================================== */

.section-strategy {
    background: var(--bg-secondary);
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.strategy-card {
    background: var(--bg-card);
    border: 1px solid rgba(45, 90, 61, 0.3);
    border-radius: 8px;
    padding: 2rem;
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.strategy-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-green);
}

.strategy-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.strategy-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.strategy-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.code-block {
    background: var(--bg-code);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-code);
    border-left: 3px solid var(--accent-green);
}

/* Strategy Matrix */
.strategy-visual {
    background: var(--bg-card);
    border: 1px solid rgba(45, 90, 61, 0.3);
    border-radius: 8px;
    padding: 2rem;
    overflow-x: auto;
}

.strategy-visual h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.matrix-container {
    min-width: 700px;
}

.strategy-matrix {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.strategy-matrix th,
.strategy-matrix td {
    padding: 0.75rem;
    text-align: center;
    border: 1px solid rgba(45, 90, 61, 0.2);
}

.strategy-matrix th {
    background: var(--bg-tertiary);
    color: var(--accent-green-light);
    font-weight: 600;
}

.hand-label {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 500;
}

/* Action Colors */
.action-h { background: var(--action-hit); color: white; }
.action-s { background: var(--action-stand); color: var(--bg-primary); }
.action-d { background: var(--action-double); color: white; }
.action-ds { background: linear-gradient(135deg, var(--action-double) 50%, var(--action-stand) 50%); color: white; }
.action-sp { background: var(--action-split); color: white; }
.action-su { background: var(--action-surrender); color: white; }

.matrix-legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.matrix-legend span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-box {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

/* ========================================
   Myth-Busting Section
   ======================================== */

.section-myths {
    background: var(--bg-primary);
}

.myths-grid {
    display: grid;
    gap: 2rem;
}

.myth-card {
    background: var(--bg-card);
    border: 1px solid rgba(139, 58, 58, 0.3);
    border-radius: 8px;
    padding: 2rem;
}

.myth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.myth-number {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.myth-status {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.myth-status.busted {
    background: var(--accent-red);
    color: var(--text-primary);
}

.myth-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.myth-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .myth-content {
        grid-template-columns: 1fr;
    }
}

.myth-belief,
.myth-truth {
    padding: 1.5rem;
    border-radius: 6px;
}

.myth-belief {
    background: rgba(139, 58, 58, 0.1);
    border: 1px solid rgba(139, 58, 58, 0.2);
}

.myth-truth {
    background: rgba(45, 90, 61, 0.1);
    border: 1px solid rgba(45, 90, 61, 0.3);
}

.myth-belief .label,
.myth-truth .label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.myth-belief .label {
    color: var(--accent-red-light);
}

.myth-truth .label {
    color: var(--accent-green-light);
}

.myth-belief p,
.myth-truth p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.myth-truth strong {
    color: var(--text-primary);
}

/* ========================================
   Audit Section
   ======================================== */

.section-audit {
    background: var(--bg-secondary);
}

.audit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.audit-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(45, 90, 61, 0.2);
}

.audit-card.critical {
    border-color: var(--accent-red);
}

.audit-card.important {
    border-color: var(--accent-gold);
}

.audit-card.moderate {
    border-color: var(--accent-green);
}

.audit-card.minor {
    border-color: rgba(45, 90, 61, 0.3);
}

.audit-priority {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    margin-bottom: 1rem;
}

.audit-card.critical .audit-priority {
    background: var(--accent-red);
    color: var(--text-primary);
}

.audit-card.important .audit-priority {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.audit-card.moderate .audit-priority {
    background: var(--accent-green);
    color: var(--text-primary);
}

.audit-card.minor .audit-priority {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.audit-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.audit-comparison {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.audit-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.audit-option.good {
    background: rgba(45, 90, 61, 0.2);
}

.audit-option.bad {
    background: rgba(139, 58, 58, 0.2);
}

.audit-option.neutral {
    background: var(--bg-tertiary);
}

.option-label {
    font-weight: 500;
}

.option-edge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.audit-explanation {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.audit-explanation strong {
    color: var(--text-primary);
}

/* ========================================
   Simulator Section
   ======================================== */

.section-simulator {
    background: var(--bg-primary);
}

.simulator-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .simulator-container {
        grid-template-columns: 1fr;
    }
}

.input-panel {
    background: var(--bg-card);
    border: 1px solid rgba(45, 90, 61, 0.3);
    border-radius: 8px;
    padding: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.card-inputs {
    display: flex;
    gap: 0.75rem;
}

.card-select {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid rgba(45, 90, 61, 0.3);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1rem;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.card-select:focus {
    outline: none;
    border-color: var(--accent-green);
}

.card-select option {
    background: var(--bg-card);
}

.result-panel {
    background: var(--bg-card);
    border: 1px solid rgba(45, 90, 61, 0.3);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
}

.result-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.placeholder-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.result-content {
    text-align: center;
}

.result-hand {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.result-action {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.result-action.hit { color: var(--action-hit); }
.result-action.stand { color: var(--action-stand); }
.result-action.double { color: var(--action-double); }
.result-action.split { color: var(--action-split); }
.result-action.surrender { color: var(--action-surrender); }

.result-explanation {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.result-ev {
    background: var(--bg-code);
    border-radius: 4px;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.result-ev-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.result-ev-value {
    color: var(--text-code);
}

.simulator-note {
    max-width: 900px;
    margin: 2rem auto 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   CTA Section
   ======================================== */

.section-cta {
    background: var(--bg-secondary);
    padding: 4rem 2rem;
}

.cta-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid rgba(45, 90, 61, 0.3);
    border-radius: 8px;
    padding: 3rem 2rem;
}

.cta-box h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (max-width: 500px) {
    .cta-form {
        flex-direction: column;
    }
}

.cta-input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid rgba(45, 90, 61, 0.3);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.cta-input:focus {
    outline: none;
    border-color: var(--accent-green);
}

.cta-input::placeholder {
    color: var(--text-muted);
}

.cta-disclaimer {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 0 !important;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(45, 90, 61, 0.2);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(45, 90, 61, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    font-size: 0.75rem !important;
    max-width: 700px;
    margin: 1rem auto 0 !important;
    line-height: 1.5;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .strategy-grid,
    .audit-grid {
        grid-template-columns: 1fr;
    }
    
    .matrix-container {
        min-width: auto;
        overflow-x: auto;
    }
    
    .strategy-matrix {
        font-size: 0.75rem;
    }
    
    .strategy-matrix th,
    .strategy-matrix td {
        padding: 0.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}
