/**
 * Scorekeeper Integration Styles
 * For scorekeeper icons and live indicators across the site
 */

/* Scorekeeper Icon */
.scorekeeper-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    margin-left: 8px;
}

.scorekeeper-icon:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.scorekeeper-icon::before {
    content: '🏓';
}

/* Live Indicator */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ef4444;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    animation: pulse 2s infinite;
    margin-left: 8px;
    white-space: nowrap;
}

.live-indicator:hover {
    background: #dc2626;
}

.live-indicator::before {
    content: '🔴';
    animation: blink 1.5s infinite;
}

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

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Match Row with Scorekeeper */
.match-row {
    position: relative;
}

.match-row .scorekeeper-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Scorekeeper Button */
.btn-scorekeeper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-scorekeeper:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-scorekeeper i {
    font-size: 14px;
}

/* Small scorekeeper icon styles are defined in tournaments.css */

/* Live badge for match cards */
.match-live-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
    cursor: pointer;
    z-index: 10;
}

.match-live-badge:hover {
    background: #dc2626;
}

/* Scorekeeper status indicators */
.scorekeeper-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.scorekeeper-status.in-progress {
    background: #fef3c7;
    color: #92400e;
}

.scorekeeper-status.pending-approval {
    background: #dbeafe;
    color: #1e40af;
}

.scorekeeper-status.approved {
    background: #d1fae5;
    color: #065f46;
}

/* Responsive */
@media (max-width: 768px) {
    .scorekeeper-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .live-indicator {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    .btn-scorekeeper {
        padding: 4px 10px;
        font-size: 12px;
    }
}
