/**
 * matchmaking.css - Styles matchmaking (Phase 2)
 * 
 * Éléments à styler:
 * - .matchmaking-section: Container des 2 boutons côte à côte
 * - .matchmaking-btn: Boutons Play/Invite
 * - .matchmaking-waiting: État attente avec loader
 * - .waiting-timer: Timer d'attente (0:00 format)
 */

/* Matchmaking Section - Two buttons side by side */
.matchmaking-section {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    width: 100%;
}

.matchmaking-section .matchmaking-btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.matchmaking-section .matchmaking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.matchmaking-section .matchmaking-btn:active {
    transform: translateY(0);
}

/* Matchmaking Waiting State */
.matchmaking-waiting {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-container, #1a1a2e);
    border: 1px solid var(--border-color, #333);
    border-radius: 12px;
    margin-top: 16px;
}

/* Light mode specific adjustments */
[data-theme="light"] .matchmaking-waiting {
    background: #f8f9fa;
    border-color: #dee2e6;
}

[data-theme="light"] .matchmaking-setup-info {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .matchmaking-setup-info .setup-label {
    color: #6c757d;
}

[data-theme="light"] .matchmaking-setup-info .setup-value {
    color: #212529;
}

.matchmaking-waiting .waiting-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.matchmaking-waiting .waiting-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.matchmaking-waiting .waiting-timer {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--accent-color, #4a9eff);
    font-variant-numeric: tabular-nums;
}

/* Spinner animation */
.matchmaking-waiting .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color, #333);
    border-top-color: var(--accent-color, #4a9eff);
    border-radius: 50%;
    animation: matchmaking-spin 1s linear infinite;
}

@keyframes matchmaking-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Setup Info Display */
.matchmaking-setup-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
}

.matchmaking-setup-info .setup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95em;
}

.matchmaking-setup-info .setup-label {
    color: var(--text-secondary, #aaa);
}

.matchmaking-setup-info .setup-value {
    color: var(--text-primary, #fff);
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .matchmaking-section {
        flex-direction: column;
    }
    
    .matchmaking-section .matchmaking-btn {
        width: 100%;
    }
}

/* Guest Invite Restriction */
.guest-invite-restriction {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
}

.guest-invite-restriction .restriction-text {
    font-size: 0.9em;
    color: var(--text-secondary, #aaa);
    text-align: center;
}

.guest-invite-restriction .restriction-signin-btn {
    padding: 8px 20px;
    font-size: 0.9em;
    font-weight: 600;
    background: var(--accent-color, #4a9eff);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.guest-invite-restriction .restriction-signin-btn:hover {
    background: var(--accent-hover, #3b8de0);
    transform: translateY(-1px);
}

/* Light mode */
[data-theme="light"] .guest-invite-restriction {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.4);
}

[data-theme="light"] .guest-invite-restriction .restriction-text {
    color: #6c757d;
}
