/* ============================================
   Texas Hold'em Multi-Player Equity Calculator
   Version 3.0 - Table Layout with Real-time Updates
   ============================================ */

/* Page Container */
.holdem-calculator-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-2xl, 3rem) var(--space-md, 1rem);
}

/* Calculator Header */
.calculator-header {
    margin-bottom: 2rem;
    text-align: left;
}

.header-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.calculator-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin: 0;
    line-height: 1.2;
    text-align: left;
    flex: 1;
}

.date-updated {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-tertiary, #666);
    white-space: nowrap;
    margin-left: auto;
}

.date-updated .date-label {
    color: var(--text-tertiary, #666);
}

.date-updated time {
    color: var(--text-secondary, #a0a0a0);
    font-weight: 500;
}

.calculator-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.5;
    text-align: left;
    margin: 0.5rem 0 0 0;
    padding: 0;
}

/* Calculator Section */
.calculator-section {
    background: var(--bg-surface, #1a1a1a);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

/* Main Calculator Container - Two Column Layout */
.poker-calculator-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Left Column - Main content */
.calculator-main {
    flex: 1;
    min-width: 0;
}

/* Info Box */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.info-box .info-icon {
    flex-shrink: 0;
    color: #3b82f6;
    margin-top: 2px;
}

.info-box .info-content {
    flex: 1;
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.6;
}

.info-box .info-content strong {
    color: #3b82f6;
    display: block;
    margin-bottom: 0.25rem;
}

/* Warning/How-to Box */
.parlay-warning-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 2px solid rgba(59, 130, 246, 0.5);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.warning-icon {
    flex-shrink: 0;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.warning-icon svg {
    width: 24px;
    height: 24px;
}

.warning-content {
    flex: 1;
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.6;
    font-size: 0.95rem;
}

.warning-content strong {
    color: #3b82f6;
}

/* ============================================
   POKER TABLE LAYOUT
   ============================================ */

.poker-table-container {
    position: relative;
    margin-bottom: 2rem;
}

/* Players Container - Flex wrap layout */
.players-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Individual Player Seat */
.player-seat {
    background: var(--bg-elevated, #242424);
    border: 2px solid var(--border-subtle, #444);
    border-radius: 12px;
    padding: 1rem;
    min-width: 140px;
    text-align: center;
    transition: all 0.3s ease;
}

.player-seat:hover {
    border-color: var(--border-subtle, #555);
}

.player-seat.hero {
    border-color: rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
}

/* Player Header */
.player-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.player-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary, #a0a0a0);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-seat.hero .player-label {
    color: #3b82f6;
}

.player-remove {
    position: absolute;
    right: -0.5rem;
    top: -0.5rem;
    width: 20px;
    height: 20px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 50%;
    color: #ef4444;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
}

.player-seat:hover .player-remove {
    opacity: 1;
}

.player-remove:hover {
    background: #ef4444;
    color: #fff;
}

/* Player Equity Display */
.player-equity {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.player-equity.calculating {
    color: var(--text-tertiary, #666);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.player-seat.hero .player-equity {
    color: #3b82f6;
}

/* Player Cards */
.player-cards {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

/* ============================================
   BOARD SECTION
   ============================================ */

.board-section {
    background: var(--bg-elevated, #242424);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem auto;
    max-width: 600px;
}

.board-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary, #a0a0a0);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.board-cards {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.board-street {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.street-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary, #666);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.street-cards {
    display: flex;
    gap: 0.5rem;
}

.board-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ============================================
   CARD SLOTS
   ============================================ */

.card-slot {
    width: 50px;
    height: 70px;
    background: var(--bg-surface, #1a1a1a);
    border: 2px dashed var(--border-subtle, #444);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.card-slot:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.card-slot.active {
    border-color: #10b981;
    border-style: solid;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.card-slot.filled {
    border-style: solid;
    border-color: var(--border-subtle, #555);
    background: transparent;
    padding: 0;
}

.slot-placeholder {
    color: var(--text-tertiary, #555);
    font-size: 0.75rem;
}

/* Card Display */
.card-display {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 6px;
    font-weight: 700;
    position: relative;
}

.card-display.spades,
.card-display.clubs {
    color: #1a1a1a;
}

.card-display.hearts,
.card-display.diamonds {
    color: #dc2626;
}

.card-rank {
    font-size: 1.1rem;
    line-height: 1;
}

.card-suit {
    font-size: 1.25rem;
    line-height: 1;
}

.card-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: #ef4444;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.card-slot:hover .card-remove {
    opacity: 1;
}

/* ============================================
   CARD PICKER - Right Side Vertical Layout
   ============================================ */

.card-picker-section {
    background: var(--bg-elevated, #242424);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 12px;
    padding: 1rem;
    width: 200px;
    flex-shrink: 0;
    position: sticky;
    top: 1rem;
}

.card-picker-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary, #a0a0a0);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.card-picker-grid {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

/* Vertical suit columns */
.suit-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.suit-label {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 0.25rem;
}

.suit-label.spades,
.suit-label.clubs {
    color: #333;
    text-shadow: 0 0 2px #fff;
}

.suit-label.hearts,
.suit-label.diamonds {
    color: #dc2626;
}

.suit-column .rank-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.card-btn {
    width: 38px;
    height: 32px;
    background: var(--bg-surface, #1a1a1a);
    border: 2px solid var(--border-subtle, #444);
    border-radius: 4px;
    color: var(--text-primary, #fff);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-btn:hover:not(.used) {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    transform: scale(1.05);
}

.card-btn.used {
    opacity: 0.3;
    cursor: not-allowed;
    background: var(--bg-surface, #1a1a1a);
}

.suit-column.hearts .card-btn:not(.used),
.suit-column.diamonds .card-btn:not(.used) {
    color: #f87171;
}

/* Legacy suit-row support (for any old markup) */
.suit-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.suit-row .rank-buttons {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    flex: 1;
}

.suit-row.hearts .card-btn:not(.used),
.suit-row.diamonds .card-btn:not(.used) {
    color: #f87171;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-add-player {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-player:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.btn-add-player:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-random {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-random:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-clear {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--border-subtle, #444);
    border-radius: 8px;
    color: var(--text-secondary, #a0a0a0);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* Add Player Container */
.add-player-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Calculation Status */
.calculation-status {
    text-align: center;
    margin-bottom: 1.5rem;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-elevated, #242424);
    border-radius: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-tertiary, #666);
    transition: all 0.3s ease;
}

.status-dot.calculating {
    background: #fbbf24;
    animation: pulse 1s infinite;
}

.status-text {
    font-size: 0.85rem;
    color: var(--text-secondary, #a0a0a0);
}

/* Results Summary */
.results-summary {
    background: var(--bg-elevated, #242424);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.results-summary .results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle, #333);
}

.results-summary .results-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 0;
}

.results-summary .simulation-info {
    font-size: 0.8rem;
    color: var(--text-tertiary, #666);
}

.equity-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.no-results {
    text-align: center;
    color: var(--text-tertiary, #666);
    font-size: 0.9rem;
    padding: 1rem;
}

/* Secondary Button Styles */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-elevated, #242424);
    border: 2px solid var(--border-subtle, #444);
    border-radius: 8px;
    color: var(--text-secondary, #a0a0a0);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #10b981;
    color: #10b981;
}

.btn-secondary.btn-danger:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.btn-secondary svg {
    flex-shrink: 0;
}

/* ============================================
   RESULTS SECTION
   ============================================ */

.results-section {
    background: var(--bg-elevated, #242424);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.results-section.hidden {
    display: none;
}

.results-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.results-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 0.5rem;
}

.simulation-count {
    font-size: 0.85rem;
    color: var(--text-tertiary, #666);
}

/* Equity Summary */
.equity-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.equity-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.equity-row.hero .equity-label {
    color: #3b82f6;
}

.equity-label {
    width: 120px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary, #a0a0a0);
    flex-shrink: 0;
}

.equity-bar-container {
    flex: 1;
    height: 20px;
    background: var(--bg-surface, #1a1a1a);
    border-radius: 10px;
    overflow: hidden;
}

.equity-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 10px;
    transition: width 0.5s ease-out;
}

.equity-row.hero .equity-bar-fill {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.equity-value {
    width: 60px;
    text-align: right;
    font-size: 1rem;
    font-weight: 700;
    color: #10b981;
    flex-shrink: 0;
}

.equity-row.hero .equity-value {
    color: #3b82f6;
}

/* EV Section */
.ev-section {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle, #333);
}

.pot-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pot-input-group label {
    color: var(--text-secondary, #a0a0a0);
    font-size: 0.9rem;
}

.pot-input {
    width: 100px;
    padding: 0.5rem 0.75rem;
    background: var(--bg-surface, #1a1a1a);
    border: 2px solid var(--border-subtle, #444);
    border-radius: 6px;
    color: var(--text-primary, #fff);
    font-size: 1rem;
    text-align: right;
}

.pot-input:focus {
    outline: none;
    border-color: #10b981;
}

.ev-display {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.ev-item {
    text-align: center;
    padding: 0.5rem 1rem;
    background: var(--bg-surface, #1a1a1a);
    border-radius: 8px;
    min-width: 80px;
}

.ev-item.hero {
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.ev-label {
    font-size: 0.75rem;
    color: var(--text-tertiary, #666);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.ev-value {
    font-size: 1rem;
    font-weight: 700;
    color: #10b981;
}

.ev-item.hero .ev-value {
    color: #3b82f6;
}

/* ============================================
   INFO SECTIONS (Educational Content)
   ============================================ */

.info-section {
    background: var(--bg-surface, #1a1a1a);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.info-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.info-section p {
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.info-section strong {
    color: var(--text-primary, #ffffff);
    font-weight: 600;
}

/* Formula Box */
.formula-box {
    background: var(--bg-elevated, #242424);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.formula-box h3 {
    font-size: 1.1rem;
    color: #10b981;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.formula-box p {
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.formula-box ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.formula-box ul li {
    color: var(--text-secondary, #a0a0a0);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.formula-box ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

.formula-box p.example {
    font-style: italic;
    color: var(--text-tertiary, #666);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle, #333);
    font-size: 0.95rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 968px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

.info-card {
    background: var(--bg-elevated, #242424);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #10b981;
    transform: translateY(-2px);
}

.info-card h3 {
    font-size: 1.2rem;
    color: #10b981;
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-card p {
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.info-card p:last-of-type {
    margin-bottom: 0;
}

.info-card p.note {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-tertiary, #666);
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle, #333);
}

/* Risk Grid */
.warning-section {
    border-color: rgba(251, 191, 36, 0.3);
}

.warning-section h2 {
    color: #fbbf24;
}

.risk-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .risk-grid {
        grid-template-columns: 1fr;
    }
}

.risk-card {
    background: var(--bg-elevated, #242424);
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.risk-card:hover {
    border-color: rgba(251, 191, 36, 0.5);
    transform: translateY(-2px);
}

.risk-card h4 {
    font-size: 1.1rem;
    color: #fbbf24;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.risk-card p {
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.6;
    margin: 0;
}

/* Math Examples */
.math-examples {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 968px) {
    .math-examples {
        grid-template-columns: 1fr;
    }
}

.math-example {
    background: var(--bg-elevated, #242424);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.math-example:hover {
    border-color: rgba(16, 185, 129, 0.4);
}

.math-example h4 {
    font-size: 1rem;
    color: #10b981;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.math-example p {
    font-size: 0.9rem;
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.math-example p:last-child {
    margin-bottom: 0;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 968px) {
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

.tip-card {
    background: var(--bg-elevated, #242424);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: #10b981;
    transform: translateY(-2px);
}

.tip-card h4 {
    font-size: 1rem;
    color: #10b981;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.tip-card p {
    font-size: 0.9rem;
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.6;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-surface, #1a1a1a);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
}

/* Accordion */
.pf-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pf-accordion-item {
    background: var(--bg-elevated, #242424);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pf-accordion-item:hover {
    border-color: rgba(16, 185, 129, 0.4);
}

.pf-accordion-item[open] {
    border-color: #10b981;
}

.pf-accordion-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.pf-accordion-summary::-webkit-details-marker {
    display: none;
}

.pf-accordion-question {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    line-height: 1.5;
    flex: 1;
    padding-right: 1rem;
}

.pf-accordion-icon {
    flex-shrink: 0;
    color: #10b981;
    transition: transform 0.3s ease;
}

.pf-accordion-item[open] .pf-accordion-icon {
    transform: rotate(45deg);
}

.pf-accordion-content {
    padding: 0 1.5rem 1.25rem;
}

.pf-accordion-content p {
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.7;
    margin: 0;
}

/* Related Tools Section */
.related-tools-section {
    background: var(--bg-surface, #1a1a1a);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.related-tools-header {
    text-align: center;
    margin-bottom: 2rem;
}

.related-tools-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin-bottom: 0.5rem;
}

.related-tools-header p {
    font-size: 1rem;
    color: var(--text-secondary, #a0a0a0);
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .related-tools-grid {
        grid-template-columns: 1fr;
    }
}

.related-tool-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-elevated, #242424);
    border: 2px solid var(--border-subtle, #333);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-tool-card:hover {
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.tool-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    color: #10b981;
}

.tool-card-content {
    flex: 1;
}

.tool-card-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.tool-card-content p {
    font-size: 0.85rem;
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.4;
    margin: 0;
}

.tool-card-arrow {
    flex-shrink: 0;
    color: var(--text-tertiary, #666);
    transition: all 0.3s ease;
}

.related-tool-card:hover .tool-card-arrow {
    color: #10b981;
    transform: translateX(4px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 968px) {
    /* Stack layout on tablet/mobile */
    .poker-calculator-container {
        flex-direction: column;
    }

    .card-picker-section {
        width: 100%;
        position: static;
        order: -1; /* Move card picker to top on mobile */
        margin-bottom: 1.5rem;
    }

    .card-picker-grid {
        justify-content: space-around;
    }

    .suit-column .rank-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .holdem-calculator-page {
        padding: 2rem 1rem;
    }

    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .calculator-title {
        font-size: 1.75rem;
    }

    .date-updated {
        font-size: 0.8rem;
    }

    .calculator-subtitle {
        font-size: 1rem;
        text-align: left;
    }

    .calculator-section,
    .info-section,
    .faq-section,
    .related-tools-section {
        padding: 1.5rem;
    }

    /* 2-column grid for mobile */
    .players-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .player-seat {
        min-width: auto;
        padding: 0.75rem;
    }

    .player-equity {
        font-size: 1.25rem;
    }

    .card-slot {
        width: 42px;
        height: 60px;
    }

    .card-rank {
        font-size: 0.9rem;
    }

    .card-suit {
        font-size: 1rem;
    }

    .card-btn {
        width: 32px;
        height: 28px;
        font-size: 0.8rem;
    }

    .suit-label {
        font-size: 1rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .action-buttons button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .info-box {
        flex-direction: column;
        gap: 0.75rem;
    }

    .board-section {
        padding: 1rem;
    }

    .board-container .card-slot {
        width: 38px;
        height: 54px;
    }

    .equity-row {
        flex-wrap: wrap;
    }

    .equity-label {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .equity-bar-container {
        order: 2;
    }

    .equity-value {
        order: 1;
        width: auto;
        margin-left: auto;
    }
}
