/* Auto-Play Test Specific Styles */

.page {
    display: none;
}

.page.active {
    display: block;
}

.join-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover:not(:disabled) {
    background: #5568d3;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.error-message {
    margin-top: 15px;
    padding: 12px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 6px;
    border-left: 4px solid #dc2626;
}

.game-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.game-state-section,
.controls-section,
.logs-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.game-state-section h2,
.controls-section h2,
.logs-section h2 {
    margin-bottom: 20px;
    color: #667eea;
    font-size: 1.5em;
}

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

.state-card {
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.state-card h3 {
    font-size: 0.9em;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
}

.status-badge.waiting {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.playing {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.not-playing {
    background: #fee2e2;
    color: #991b1b;
}

.score-display {
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
}

.cards-display {
    font-size: 1.1em;
    color: #333;
    word-break: break-word;
}

.opponents-display {
    font-size: 1em;
    color: #333;
}

.controls-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-toggle {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-toggle.off {
    background: #dc2626;
    color: white;
}

.btn-toggle.off:hover {
    background: #b91c1c;
}

.btn-toggle.on {
    background: #10b981;
    color: white;
}

.btn-toggle.on:hover {
    background: #059669;
}

.btn-secondary {
    padding: 12px 24px;
    font-size: 16px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover:not(:disabled) {
    background: #4b5563;
}

.btn-secondary:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-small:hover {
    background: #4b5563;
}

.log-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
}

.log-container {
    max-height: 300px;
    overflow-y: auto;
    background: #1f2937;
    color: #f9fafb;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.log-entry {
    margin-bottom: 8px;
    padding: 8px;
    border-left: 3px solid #667eea;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
}

.log-entry.error {
    border-left-color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    color: #fca5a5;
}

.log-entry.success {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
}

.log-entry.warning {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    color: #fcd34d;
}

.log-timestamp {
    color: #9ca3af;
    font-size: 11px;
    margin-right: 8px;
}

.log-message {
    color: #f9fafb;
}

/* Card display styles */
.card-item {
    display: inline-block;
    margin: 2px 4px;
    padding: 4px 8px;
    background: #667eea;
    color: white;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .state-grid {
        grid-template-columns: 1fr;
    }
    
    .controls-grid {
        flex-direction: column;
    }
    
    .btn-toggle,
    .btn-secondary {
        width: 100%;
    }
}


