/**
 * YallaPro Live - Frontend Styles
 *
 * @package YallaPro\Live
 * @version 1.0.0
 */

/* Match Card Styles */
.yalla-match-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.yalla-match-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.yalla-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.yalla-match-league {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.yalla-match-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    background: #f0f0f0;
    color: #333;
}

.yalla-match-status.yalla-live {
    background: #dc3545;
    color: #fff;
    animation: pulse 2s infinite;
}

.yalla-match-status.yalla-finished {
    background: #28a745;
    color: #fff;
}

.yalla-match-status.yalla-scheduled {
    background: #007bff;
    color: #fff;
}

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

/* Teams Display */
.yalla-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.yalla-team {
    flex: 1;
    text-align: center;
}

.yalla-team-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.yalla-team-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    object-fit: contain;
}

/* Score Display */
.yalla-score-container {
    text-align: center;
    padding: 0 20px;
}

.yalla-score {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.yalla-score-divider {
    color: #999;
    font-weight: 400;
}

.yalla-match-time {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Live Indicator */
.yalla-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #dc3545;
    font-weight: 600;
}

.yalla-live-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
    animation: blink 1s infinite;
}

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

/* Match List */
.yalla-matches-list {
    display: grid;
    gap: 20px;
}

.yalla-matches-list.yalla-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* Team Logos (CDN) */
.yalla-team-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin: 0 auto 10px;
    display: block;
}

.yalla-league-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 5px;
}

/* Country badge */
.yalla-country {
    font-size: 11px;
    color: #888;
    font-weight: normal;
}

/* Round badge */
.yalla-round {
    font-size: 11px;
    padding: 2px 8px;
    background: #f0f0f0;
    border-radius: 10px;
    color: #666;
}

/* Kickoff Time */
.yalla-kickoff {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.yalla-kickoff strong {
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .yalla-teams {
        flex-direction: column;
        gap: 15px;
    }

    .yalla-team {
        width: 100%;
    }

    .yalla-score-container {
        order: -1;
        padding: 10px 0;
    }

    .yalla-match-card {
        padding: 15px;
    }
}
