/**
 * SportsTravel Matches Widget - Base Styles
 * Version: 1.0.0
 * 
 * CSS Variables for team customization:
 * --st-team-color: Team primary color
 * --st-primary: Primary brand color
 * --st-accent-gold: Accent color
 * --st-bg-light: Light background
 */

:root {
    --st-team-color: #C8102E;
    --st-primary: #06424b;
    --st-primary-dark: #043338;
    --st-accent-gold: #FFD700;
    --st-bg-light: #F5F5F5;
    --st-text-dark: #2C2C2C;
    --st-white: #FFFFFF;
}

/* Container */
.st-matches-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Matches Section */
.st-matches-section {
    margin-bottom: 2rem;
}

.st-matches-section h2 {
    font-size: 1.8rem;
    color: var(--st-text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.st-match-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Match Badge */
.st-match-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.st-match-badge--confirmed {
    background-color: #10b981;
    color: white;
}

/* Match Card - Home Matches */
.st-match-card {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.st-match-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

/* Match Card - Away Matches */
.st-match-card--away {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--st-team-color);
}

/* Match Date */
.st-match-date {
    text-align: center;
}

.st-match-date__day {
    font-size: 2rem;
    font-weight: 800;
    color: var(--st-team-color);
    line-height: 1;
}

.st-match-card--away .st-match-date__day {
    color: var(--st-team-color);
}

.st-match-date__month {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
}

.st-match-date__time {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
    font-weight: 600;
}

/* Confirmed Match Styling */
.st-match-card--confirmed {
    border: 2px solid #10b981;
}

.st-match-card--confirmed .st-match-date__day {
    color: #10b981;
}

/* Match Info */
.st-match-info h3 {
    font-size: 1.2rem;
    color: var(--st-text-dark);
    margin-bottom: 0.3rem;
}

.st-match-info__competition {
    font-size: 0.9rem;
    color: #666;
}

/* Match Price */
.st-match-price {
    text-align: right;
}

.st-match-price__from {
    font-size: 0.8rem;
    color: #666;
}

.st-match-price__amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--st-primary);
}

.st-match-price__btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: var(--st-primary);
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.st-match-price__btn:hover {
    background: var(--st-primary-dark);
}

/* Away Matches Section */
.st-away-matches-section {
    padding: 3rem 0;
    background: var(--st-bg-light);
    margin: 0 -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.st-away-matches-section h2 {
    font-size: 1.8rem;
    color: var(--st-text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Show More Button */
.st-show-more-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background: white;
    border: 2px solid var(--st-primary);
    color: var(--st-primary);
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.st-show-more-btn:hover {
    background: var(--st-primary);
    color: white;
}

/* Hidden state */
.st-match-card--hidden {
    display: none;
}

/* Loading state */
.st-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.st-loading::after {
    content: '...';
    animation: st-dots 1.5s steps(4, end) infinite;
}

@keyframes st-dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Error state */
.st-error {
    padding: 1.5rem;
    background: #fee;
    border-left: 4px solid #c00;
    border-radius: 8px;
    color: #c00;
    margin: 1rem 0;
}

/* Empty state */
.st-empty {
    padding: 1.5rem;
    background: #f5f5f5;
    border-left: 4px solid var(--st-primary, #06424b);
    border-radius: 8px;
    color: #555;
    margin: 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .st-match-card {
        grid-template-columns: 80px 1fr;
    }

    .st-match-price {
        grid-column: 1 / -1;
        text-align: left;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #eee;
    }

    .st-match-date__day {
        font-size: 1.5rem;
    }

    .st-match-info h3 {
        font-size: 1rem;
    }

    .st-away-matches-section {
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Utility classes */
.st-text-center {
    text-align: center;
}

.st-mb-1 { margin-bottom: 0.5rem; }
.st-mb-2 { margin-bottom: 1rem; }
.st-mb-3 { margin-bottom: 1.5rem; }
.st-mt-1 { margin-top: 0.5rem; }
.st-mt-2 { margin-top: 1rem; }
.st-mt-3 { margin-top: 1.5rem; }
