/**
 * OddsEkspert V2 - Matches Shortcode Styles
 * Card grid layout - 3 per row
 */

/* Container */
.oev2-matches {
    font-family: inherit;
    line-height: 1.5;
}

/* Date Group */
.oev2-matches__date-group {
    margin-bottom: 1.5rem;
}

.oev2-matches__date-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem 0;
    padding: 0;
}

/* Grid layout - 3 columns */
.oev2-matches__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Single Match Card */
a.oev2-match,
.oev2-match {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #14b8a6;
    border-radius: 0.375rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

a.oev2-match:hover,
.oev2-match:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

a.oev2-match:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Live match indicator */
.oev2-match--live {
    border-left-color: #ef4444;
}

.oev2-match--final {
    opacity: 0.7;
}

/* League info row */
.oev2-match__league {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #14b8a6;
    margin-bottom: 0.5rem;
}

.oev2-match__league-logo {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.oev2-match__league-name {
    font-weight: 500;
}

/* Time and Status */
.oev2-match__time,
.oev2-match__status {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #14b8a6;
    margin-bottom: 0.5rem;
}

.oev2-match__status--live {
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.oev2-match__live-indicator {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: oev2-pulse 1.5s ease-in-out infinite;
}

@keyframes oev2-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.oev2-match__status--final {
    color: #64748b;
}

/* Teams row */
.oev2-match__teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
}

.oev2-match__team {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex: 1;
    min-width: 0;
}

.oev2-match__team--home {
    justify-content: flex-start;
}

.oev2-match__team--away {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.oev2-match__team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.oev2-match__team-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* VS indicator */
.oev2-match__vs {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Empty/Error states */
.oev2-matches--empty,
.oev2-matches--error {
    padding: 2rem;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border-radius: 0.5rem;
}

/* Responsive - 2 columns on tablet */
@media (max-width: 1024px) {
    .oev2-matches__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive - 1 column on mobile */
@media (max-width: 640px) {
    .oev2-matches__list {
        grid-template-columns: 1fr;
    }

    .oev2-match__team-name {
        font-size: 0.8125rem;
    }

    .oev2-match__team-logo {
        width: 20px;
        height: 20px;
    }
}
