/**
 * Upcoming Matches Shortcode Styles
 *
 * @package SportsPress_Enhanced_Features
 * @version 2.4.2
 */

/* Wrapper */
.sp-upcoming-matches-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 20px 0;
}

/* Title */
.sp-upcoming-matches-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #00d9ff;
    color: #1a1a2e;
}

/* List container */
.sp-upcoming-matches-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Grid columns */
.sp-upcoming-columns-2 .sp-upcoming-matches-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.sp-upcoming-columns-3 .sp-upcoming-matches-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Match Card */
.sp-match-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sp-match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.2);
}

.sp-match-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 20px;
}

/* Card Header */
.sp-match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-match-league {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00d9ff;
    font-weight: 600;
}

.sp-match-day {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

/* Teams Section */
.sp-match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.sp-match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

.sp-match-team-logo {
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-match-team-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.sp-match-team-logo-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 100%);
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.sp-match-team-name {
    font-size: 0.9em;
    font-weight: 600;
    color: #ffffff;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* VS / Score Section */
.sp-match-versus {
    flex: 0 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-vs-text {
    font-size: 1.2em;
    font-weight: 800;
    color: #00d9ff;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.sp-match-score {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 217, 255, 0.1);
    padding: 8px 15px;
    border-radius: 25px;
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.sp-score-home,
.sp-score-away {
    font-size: 1.5em;
    font-weight: 800;
    color: #ffffff;
}

.sp-score-separator {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.5);
}

/* Card Footer */
.sp-match-card-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-match-datetime {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 8px;
}

.sp-match-date,
.sp-match-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
}

.sp-match-date svg,
.sp-match-time svg,
.sp-match-venue svg {
    color: #00d9ff;
}

.sp-match-venue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.6);
}

/* Empty State */
.sp-upcoming-matches-empty {
    text-align: center;
    padding: 40px 20px;
    background: #f5f5f5;
    border-radius: 12px;
    color: #666;
    font-size: 1em;
}

/* Light Theme Variant */
.sp-upcoming-matches-wrapper.sp-theme-light .sp-match-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

.sp-upcoming-matches-wrapper.sp-theme-light .sp-match-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sp-upcoming-matches-wrapper.sp-theme-light .sp-match-team-name {
    color: #1a1a2e;
}

.sp-upcoming-matches-wrapper.sp-theme-light .sp-match-date,
.sp-upcoming-matches-wrapper.sp-theme-light .sp-match-time {
    color: #555;
}

.sp-upcoming-matches-wrapper.sp-theme-light .sp-match-venue {
    color: #777;
}

.sp-upcoming-matches-wrapper.sp-theme-light .sp-score-home,
.sp-upcoming-matches-wrapper.sp-theme-light .sp-score-away {
    color: #1a1a2e;
}

.sp-upcoming-matches-wrapper.sp-theme-light .sp-match-card-header,
.sp-upcoming-matches-wrapper.sp-theme-light .sp-match-card-footer {
    border-color: #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .sp-upcoming-columns-2 .sp-upcoming-matches-list,
    .sp-upcoming-columns-3 .sp-upcoming-matches-list {
        grid-template-columns: 1fr;
    }

    .sp-match-team-logo {
        width: 55px;
        height: 55px;
    }

    .sp-match-team-name {
        font-size: 0.8em;
        max-width: 80px;
    }

    .sp-match-datetime {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .sp-match-card-link {
        padding: 15px;
    }

    .sp-match-team-logo {
        width: 45px;
        height: 45px;
    }

    .sp-match-versus {
        flex: 0 0 60px;
    }

    .sp-vs-text {
        font-size: 1em;
    }
}
