/* Zien Rummy Club Styles */
@import url('style.css');
/* Inherit base variables and styles */

:root {
    --rummy-table-color: #2e7d32;
    --rummy-accent: #d4af37;
    --rummy-bg: #0a0a0a;
    --rummy-card-bg: #1a1a1a;
}

body {
    background-color: var(--rummy-bg);
    color: #e0e0e0;
}

.rummy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.rummy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--rummy-accent);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.rummy-title {
    font-family: 'Cinzel', serif;
    color: var(--rummy-accent);
    font-size: 2rem;
}

.rummy-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

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

/* Sidebar / Controls */
.rummy-controls {
    background: var(--rummy-card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #333;
}

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

.control-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #888;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
}

.control-input {
    width: 100%;
    background: #000;
    border: 1px solid #444;
    color: #fff;
    padding: 0.8rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

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

.btn-rummy {
    width: 100%;
    padding: 1rem;
    background: var(--rummy-accent);
    color: #000;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
}

.btn-rummy:hover {
    background: #fff;
}

.btn-secondary {
    background: #333;
    color: #fff;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background: #444;
    color: #fff;
}

#settleUpBtn {
    background: var(--rummy-accent);
    color: #000;
    border: 1px solid var(--rummy-accent);
    font-weight: bold;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

#settleUpBtn:hover {
    background: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Game Board */
.game-board {
    background: var(--rummy-card-bg);
    border-radius: 8px;
    border: 1px solid #333;
    padding: 1rem;
    min-height: 500px;
}

.table-status {
    display: flex;
    justify-content: space-between;
    background: #000;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #333;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Score Input Table */
.score-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.score-table th,
.score-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #333;
}

.score-table th {
    color: var(--rummy-accent);
    font-family: 'Cinzel', serif;
}

.winner-cell {
    color: #00ff00;
}

.loser-cell {
    color: #ff3333;
}

/* Settlement Panel */
.settlement-panel {
    background: #111;
    border: 1px solid var(--rummy-accent);
    padding: 1rem;
    margin-top: 2rem;
    border-radius: 4px;
    display: none;
    /* Hidden by default */
}

.settlement-title {
    color: var(--rummy-accent);
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.debt-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #333;
    font-family: 'Courier New', monospace;
}

.debt-item:last-child {
    border-bottom: none;
}

.positive {
    color: #00ff00;
}

.negative {
    color: #ff3333;
}

/* Modal specific overrides */
.modal-content {
    background: var(--rummy-bg);
    border: 1px solid var(--rummy-accent);
}

.game-log {
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.8rem;
    color: #666;
    margin-top: 1rem;
    border-top: 1px solid #333;
    padding-top: 1rem;
}