/**
 * LASSR Match Card Component Styles
 * Modern, responsive match card designs
 */

/* ===== SECTION STYLES ===== */
.lassr-matches-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, var(--dark-bg, #1a1a2e) 0%, var(--darker-bg, #16213e) 100%);
}

.lassr-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.lassr-section-title {
    font-size: 2.5rem;
    font-family: 'Bebas Neue', sans-serif;
    color: var(--gold-accent, #f4c430);
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

/* ===== TABS ===== */
.lassr-matches-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.lassr-tab {
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(244, 196, 48, 0.3);
    border-radius: 30px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lassr-tab:hover {
    background: rgba(244, 196, 48, 0.15);
    border-color: var(--gold-accent, #f4c430);
}

.lassr-tab.active {
    background: var(--gold-accent, #f4c430);
    color: #1a1a2e;
    border-color: var(--gold-accent, #f4c430);
}

.lassr-tab .live-indicator {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-live 1.5s infinite;
}

/* ===== PANELS ===== */
.lassr-matches-panel {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
}

.lassr-matches-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== GRID ===== */
.lassr-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

/* ===== MATCH CARD ===== */
.lassr-match-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.lassr-match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border-color: rgba(244, 196, 48, 0.3);
}

/* ===== BADGES ===== */
.lassr-match-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lassr-badge-live {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    animation: pulse-badge 2s infinite;
}

.lassr-badge-live .live-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse-live 1s infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.lassr-badge-final {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

/* ===== MATCH CONTENT ===== */
.lassr-match-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 20px;
}

/* ===== TEAM ===== */
.lassr-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.lassr-team-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
}

.lassr-team-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.lassr-team-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.3;
    max-width: 120px;
}

.lassr-team-short {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

/* ===== CENTER (VS / SCORE) ===== */
.lassr-match-center {
    flex: 0 0 auto;
    padding: 0 15px;
    text-align: center;
}

.lassr-match-vs {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold-accent, #f4c430);
    text-shadow: 0 2px 10px rgba(244, 196, 48, 0.3);
}

.lassr-match-datetime {
    margin-top: 8px;
}

.lassr-match-date {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.lassr-match-time {
    font-size: 1.1rem;
    color: var(--gold-accent, #f4c430);
    font-weight: 700;
}

/* ===== SCORE ===== */
.lassr-match-score {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lassr-score-home,
.lassr-score-away {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    min-width: 50px;
    text-align: center;
}

.lassr-score-separator {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.4);
}

/* Highlight winner */
.lassr-match-result .lassr-team-home.winner .lassr-team-name,
.lassr-match-result .lassr-team-away.winner .lassr-team-name {
    color: var(--gold-accent, #f4c430);
}

/* ===== SCORERS ===== */
.lassr-match-scorers {
    margin-top: 10px;
    font-size: 0.8rem;
}

.lassr-scorers-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.lassr-scorers-home,
.lassr-scorers-away {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lassr-scorers-home {
    text-align: right;
}

.lassr-scorers-away {
    text-align: left;
}

.lassr-scorer {
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== FOOTER ===== */
.lassr-match-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.lassr-match-venue {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lassr-match-round {
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* ===== CARDS SECTION ===== */
.lassr-match-cards {
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(0,0,0,0.15);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.lassr-card {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== EMPTY STATE ===== */
.lassr-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    border: 1px dashed rgba(255,255,255,0.1);
}

.lassr-empty-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.lassr-empty-state p {
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
}

/* ===== COMPACT MODE ===== */
.lassr-match-compact .lassr-match-content {
    padding: 15px;
}

.lassr-match-compact .lassr-team-logo {
    width: 40px;
    height: 40px;
}

.lassr-match-compact .lassr-team-name {
    font-size: 0.85rem;
}

.lassr-match-compact .lassr-score-home,
.lassr-match-compact .lassr-score-away {
    font-size: 1.8rem;
}

/* ===== LIVE MATCH STYLES ===== */
.lassr-match-live {
    border: 2px solid rgba(239, 68, 68, 0.5);
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.1) 0%, rgba(255,255,255,0.02) 100%);
}

.lassr-match-live .lassr-score-home,
.lassr-match-live .lassr-score-away {
    animation: pulse-score 2s infinite;
}

@keyframes pulse-score {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .lassr-matches-grid {
        grid-template-columns: 1fr;
    }
    
    .lassr-match-content {
        padding: 20px 15px;
    }
    
    .lassr-team-name {
        font-size: 0.85rem;
        max-width: 90px;
    }
    
    .lassr-team-logo {
        width: 50px;
        height: 50px;
    }
    
    .lassr-score-home,
    .lassr-score-away {
        font-size: 2rem;
    }
    
    .lassr-matches-tabs {
        gap: 8px;
    }
    
    .lassr-tab {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .lassr-section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .lassr-team-name {
        font-size: 0.75rem;
        max-width: 70px;
    }
    
    .lassr-team-logo {
        width: 40px;
        height: 40px;
    }
    
    .lassr-match-center {
        padding: 0 8px;
    }
    
    .lassr-match-vs {
        font-size: 1.2rem;
    }
    
    .lassr-score-home,
    .lassr-score-away {
        font-size: 1.6rem;
        min-width: 35px;
    }
    
    .lassr-match-scorers {
        display: none;
    }
}
