/* Faustball - Official Scoring Interface */

.official-scoring-interface {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 1rem;
}

.scoring-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Match Header */
.match-header-official {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--fb-border);
    padding-bottom: 1.5rem;
}

.match-header-official h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.satz-info {
    color: var(--fb-secondary);
    font-size: 1.1rem;
}

.connection-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--fb-secondary);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    animation: pulse 2s infinite;
}

.status-dot.connected {
    background: var(--fb-success);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Score Display */
.score-display {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--fb-light-bg);
    border-radius: 8px;
}

.score-panel {
    text-align: center;
}

.score-panel h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.score-number {
    font-size: 4rem;
    font-weight: bold;
    color: var(--fb-primary);
    line-height: 1;
}

.divider {
    font-size: 2rem;
    color: var(--fb-secondary);
}

.sets-info {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.set-badge {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: var(--fb-primary);
    color: white;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
}

/* Scoring Buttons */
.scoring-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.btn-large {
    padding: 2rem 1rem;
    font-size: 1.25rem;
    border-radius: 8px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    text-transform: uppercase;
}

.btn-team-a {
    background: #3b82f6;
    color: white;
}

.btn-team-a:hover:not(:disabled) {
    background: #1d4ed8;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-team-b {
    background: #ef4444;
    color: white;
}

.btn-team-b:hover:not(:disabled) {
    background: #dc2626;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.btn-large:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.point-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.team-name {
    font-size: 1.1rem;
}

/* Control Buttons */
.control-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-undo {
    padding: 1rem;
    background: var(--fb-secondary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-undo:hover:not(:disabled) {
    background: #475569;
}

.btn-finish {
    padding: 1rem;
    background: var(--fb-danger);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-finish:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Match Status */
.match-completed {
    background: linear-gradient(135deg, var(--fb-success), #059669);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
}

.match-completed h3 {
    margin-bottom: 0.75rem;
    color: white;
}

.status-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--fb-info);
    color: white;
    border-radius: 20px;
    font-weight: bold;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    display: none;
}

.alert.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--fb-success);
    display: block;
}

.alert.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--fb-danger);
    display: block;
}

.alert.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--fb-warning);
    display: block;
}

.alert.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--fb-info);
    display: block;
}

/* Mobile Optimization */
@media (max-width: 480px) {
    .scoring-container {
        padding: 1rem;
    }

    .btn-large {
        padding: 1.5rem 0.75rem;
        min-height: 100px;
        font-size: 1rem;
    }

    .score-number {
        font-size: 3rem;
    }

    .score-display {
        padding: 1rem;
    }
}

/* Landscape Mode */
@media (max-height: 600px) {
    .scoring-container {
        padding: 1rem;
    }

    .match-header-official {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .score-display {
        margin: 1rem 0;
        padding: 1rem;
    }

    .score-number {
        font-size: 3.5rem;
    }

    .btn-large {
        padding: 1rem 0.75rem;
        min-height: 100px;
    }
}
