/**
 * Fixtures module public styles.
 *
 * @since      1.0.0
 * @package    Club_Manager_Pro
 */

/* Modern Fixture Card Styles */
.cmp-fixture-card {
    background-color: #2a2a2a;
    border-radius: 15px;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 100%;
    margin: 0 auto 20px auto;
    color: white;
}

.cmp-fixture-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.cmp-fixture-teams img {
    max-width: 120px;
    height: auto;
}

.cmp-fixture-vs-info {
    font-size: 24px;
    font-weight: bold;
    margin: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cmp-fixture-ticket-button {
    background-color: #c62828;
    padding: 15px 30px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.cmp-fixture-ticket-button:hover {
    background-color: #ff3d3d;
}

/* Responsive styles */
@media (max-width: 600px) {
    .cmp-fixture-teams {
        flex-direction: column;
    }

    .cmp-fixture-vs-info {
        margin: 10px 0;
    }
    
    .cmp-fixture-card {
        padding: 20px;
    }
}

/* Next Fixtures specific styles */
.cmp-next-fixtures-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

@media (min-width: 992px) {
    .cmp-next-fixtures-container {
        flex-direction: row;
        justify-content: center;
    }
    
    .cmp-fixture-card {
        margin: 0;
    }
}

/* Fixtures Container */
.cmp-fixtures-container {
    width: 100%;
    margin-bottom: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Fixtures Table */
.cmp-fixtures-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    background-color: #fff;
}

.cmp-fixtures-table th,
.cmp-fixtures-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.cmp-fixtures-table th {
    background-color: #f5f5f5;
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.cmp-fixtures-table tbody tr:last-child td {
    border-bottom: none;
}

.cmp-fixtures-table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Team Badges */
.cmp-team-badge {
    display: inline-block;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.cmp-team-badge-img {
    width: 2rem;
    height: auto;
    border-radius: 50%;
}

/* Score */
.cmp-fixture-score {
    font-weight: 700;
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    display: inline-block;
    min-width: 4rem;
}

/* Date and Time */
.cmp-fixture-date,
.cmp-fixture-time {
    white-space: nowrap;
}

/* Competition */
.cmp-fixture-competition {
    font-style: italic;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .cmp-fixtures-table {
        display: block;
        overflow-x: auto;
    }
    
    .cmp-fixtures-table th,
    .cmp-fixtures-table td {
        padding: 0.75rem;
    }
    
    .cmp-team-badge-img {
        width: 1.5rem;
    }
}

/* Single Fixture */
.cmp-single-fixture {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.cmp-fixture-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.cmp-fixture-date-time {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.cmp-fixture-competition-name {
    font-size: 1rem;
    color: #888;
    font-style: italic;
}

.cmp-fixture-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.cmp-fixture-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 200px;
}

.cmp-fixture-team-badge {
    width: 5rem;
    height: 5rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    overflow: hidden;
}

.cmp-fixture-team-badge img {
    width: 100%;
    height: auto;
}

.cmp-fixture-team-name {
    font-size: 1.25rem;
    font-weight: 500;
    text-align: center;
}

.cmp-fixture-vs {
    font-size: 1.5rem;
    font-weight: 700;
    color: #888;
}

.cmp-fixture-score-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cmp-fixture-score-number {
    font-size: 2.5rem;
    font-weight: 700;
    min-width: 3rem;
    text-align: center;
}

.cmp-fixture-score-divider {
    font-size: 2rem;
    color: #888;
}

.cmp-fixture-no-score {
    font-style: italic;
    color: #888;
    text-align: center;
    margin-bottom: 1rem;
}

/* Error Message */
.cmp-error {
    padding: 1rem;
    background-color: #ffebee;
    color: #c62828;
    border-radius: 0.25rem;
    border-left: 4px solid #c62828;
    margin-bottom: 1rem;
}
