/* Custom Judo Tournament Styles */

/* Larger touch targets for tablets */
.btn {
    min-height: 44px;
    font-size: 1.1rem;
}

.btn-lg {
    min-height: 60px;
    font-size: 1.3rem;
}

.form-control, .form-select {
    font-size: 1.1rem;
    min-height: 48px;
}

.form-control-lg, .form-select-lg {
    font-size: 1.3rem;
    min-height: 60px;
}

/* Card styling */
.card {
    border-radius: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Match cards for mat view */
.match-card {
    border-left: 4px solid #0d6efd;
    margin-bottom: 1rem;
}

.match-card.running {
    border-left-color: #28a745;
    background-color: #f0fff4;
}

.match-card.finished {
    border-left-color: #6c757d;
    opacity: 0.7;
}

/* Score buttons */
.score-btn {
    min-width: 80px;
    min-height: 60px;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0.25rem;
}

/* Timer display */
.timer-display {
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    font-weight: bold;
    color: #0d6efd;
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.timer-display.warning {
    color: #fd7e14;
}

.timer-display.danger {
    color: #dc3545;
}

/* Poule drag & drop areas */
.poule-card {
    cursor: move;
    transition: all 0.2s;
}

.poule-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.poule-card.dragging {
    opacity: 0.5;
}

.mat-drop-zone {
    min-height: 200px;
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.2s;
}

.mat-drop-zone.drag-over {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

.mat-drop-zone h4 {
    color: #6c757d;
    text-align: center;
    margin-top: 2rem;
}

/* Visitor view specific styles */
.visitor-view {
    background: #000;
    color: #fff;
    min-height: 100vh;
}

.visitor-view .running-match {
    background: #1a472a;
    border: 3px solid #28a745;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
}

.visitor-view .mat-badge {
    display: inline-block;
    background: #0d6efd;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.visitor-view .score {
    font-size: 3rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.visitor-view .participant-name {
    font-size: 1.8rem;
    font-weight: bold;
}

.visitor-view .upcoming-match {
    background: #1a1a1a;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.3rem;
    border-left: 3px solid #ffc107;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn {
        font-size: 1rem;
    }
    
    .btn-lg {
        font-size: 1.2rem;
        min-height: 50px;
    }
    
    .timer-display {
        font-size: 2rem;
    }
    
    .score-btn {
        min-width: 60px;
        min-height: 50px;
        font-size: 1.2rem;
    }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Participant code badges */
.participant-code {
    display: inline-block;
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.scheduled {
    background: #e9ecef;
    color: #495057;
}

.status-badge.running {
    background: #d1e7dd;
    color: #0f5132;
}

.status-badge.finished {
    background: #cfe2ff;
    color: #084298;
}
