/**
 * Vereins-Spielplan & Ergebnisse - Frontend Styles
 */

/* ==========================================================================
   General Match Container
   ========================================================================== */

.vse-match {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.vse-match:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Match Header
   ========================================================================== */

.vse-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.vse-match-info {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #666;
}

.vse-match-date {
    font-weight: 600;
}

.vse-match-time::before {
    content: "•";
    margin-right: 0.5rem;
}

.vse-match-location {
    color: #888;
}

.vse-match-day {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    background: #f5f5f5;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

/* ==========================================================================
   Teams Display
   ========================================================================== */

.vse-match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.vse-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.vse-team-home {
    text-align: right;
}

.vse-team-away {
    text-align: left;
}

.vse-team-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.vse-team-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

/* ==========================================================================
   Score Display
   ========================================================================== */

.vse-match-score {
    text-align: center;
    min-width: 80px;
}

.vse-score {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.vse-score-separator {
    font-size: 1.5rem;
    font-weight: 400;
    color: #999;
}

/* ==========================================================================
   Venue Information
   ========================================================================== */

.vse-match-venue {
    text-align: center;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.vse-venue-name {
    font-weight: 500;
}

.vse-venue-city::before {
    content: "•";
    margin: 0 0.5rem;
}

/* ==========================================================================
   Match Links
   ========================================================================== */

.vse-match-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.vse-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.vse-link-livestream {
    background: #e74c3c;
    color: #ffffff;
}

.vse-link-livestream:hover {
    background: #c0392b;
    color: #ffffff;
}

.vse-link-liveticker {
    background: #3498db;
    color: #ffffff;
}

.vse-link-liveticker:hover {
    background: #2980b9;
    color: #ffffff;
}

.vse-link-ticket {
    background: #2ecc71;
    color: #ffffff;
}

.vse-link-ticket:hover {
    background: #27ae60;
    color: #ffffff;
}

/* ==========================================================================
   Schedule List
   ========================================================================== */

.vse-schedule {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vse-schedule-match {
    padding: 1rem;
}

.vse-schedule-match .vse-team-logo {
    width: 40px;
    height: 40px;
}

.vse-schedule-match .vse-score {
    font-size: 1.5rem;
}

.vse-schedule-match .vse-match-teams {
    gap: 1rem;
}

/* ==========================================================================
   Error & No Results
   ========================================================================== */

.vse-error,
.vse-no-match {
    padding: 1rem;
    background: #f8f9fa;
    border-left: 4px solid #e74c3c;
    color: #666;
    font-size: 0.875rem;
    border-radius: 4px;
}

.vse-no-match {
    border-left-color: #95a5a6;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .vse-match-teams {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .vse-team {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .vse-team-home,
    .vse-team-away {
        text-align: left;
    }
    
    .vse-match-score {
        order: -1;
        margin-bottom: 1rem;
    }
    
    .vse-team-logo {
        width: 50px;
        height: 50px;
    }
    
    .vse-match-info {
        font-size: 0.8125rem;
    }
    
    .vse-match-links {
        flex-direction: column;
    }
    
    .vse-link {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .vse-match {
        padding: 1rem;
    }
    
    .vse-team-name {
        font-size: 0.875rem;
    }
    
    .vse-score {
        font-size: 1.5rem;
    }
}
