/**
 * WP Club Manager Integration Styles
 *
 * @package FT2026
 */

/* ============================================
   Match List Styles
   ============================================ */
.wpcb-wrapper {
    margin-bottom: 30px;
}

.wpcb-match-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wpcb-match-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.wpcb-match-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.wpcb-match-date {
    font-size: 12px;
    color: #555;
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 500;
}

.wpcb-team {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 100px;
}

.wpcb-team-name {
    font-weight: 600;
    font-size: 14px;
    color: #27272A;
}

.wpcb-team-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.wpcb-score {
    font-size: 20px;
    font-weight: 700;
    color: #27272A;
    padding: 0 15px;
    text-align: center;
    min-width: 60px;
}

.wpcb-venue {
    font-size: 12px;
    color: #555;
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

/* ============================================
   Next Match Widget
   ============================================ */
.wpcb-next-match {
    background: #FEE685;
    border: 2px solid #27272A;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    margin-bottom: 30px;
}

.wpcb-next-match h3 {
    font-size: 18px;
    color: #27272A;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wpcb-match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.wpcb-match-teams .wpcb-team {
    flex-direction: column;
    text-align: center;
}

.wpcb-match-teams .wpcb-team-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.wpcb-vs {
    font-size: 24px;
    font-weight: 800;
    color: #27272A;
}

.wpcb-match-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    color: #27272A;
}

.wpcb-match-info .wpcb-date {
    font-weight: 600;
}

.wpcb-match-info .wpcb-time {
    font-size: 16px;
    font-weight: 700;
}

/* ============================================
   Standings Table
   ============================================ */
.wpcb-standings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.wpcb-standings-table th,
.wpcb-standings-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.wpcb-standings-table th {
    background-color: #FEE685;
    font-weight: 700;
    color: #27272A;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.wpcb-standings-table tr:hover {
    background-color: #f9f9f9;
}

.wpcb-standings-table tr:last-child td {
    border-bottom: none;
}

.wpcb-position {
    font-weight: 700;
    width: 30px;
    text-align: center;
}

.wpcb-position.top-3 {
    color: #31C950;
}

.wpcb-team-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpcb-team-cell .wpcb-team-logo {
    width: 24px;
    height: 24px;
}

.wpcb-points {
    font-weight: 700;
    color: #31C950;
}

.wpcb-played {
    color: #555;
}

.wpcb-won,
.wpcb-drawn,
.wpcb-lost {
    text-align: center;
}

.wpcb-gd {
    text-align: center;
}

/* ============================================
   Club Directory
   ============================================ */
.wpcb-club-directory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.wpcb-club-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wpcb-club-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #31C950;
}

.wpcb-club-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.wpcb-club-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    color: #27272A;
}

.wpcb-club-meta {
    font-size: 12px;
    color: #555;
}

/* ============================================
   Player Cards
   ============================================ */
.wpcb-player-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.wpcb-player-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wpcb-player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wpcb-player-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #FEE685;
}

.wpcb-player-name {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 5px;
    color: #27272A;
}

.wpcb-player-position {
    font-size: 14px;
    color: #31C950;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.wpcb-player-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.wpcb-player-stat {
    text-align: center;
}

.wpcb-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #27272A;
}

.wpcb-stat-label {
    font-size: 11px;
    color: #555;
    text-transform: uppercase;
}

/* ============================================
   Match Results Archive
   ============================================ */
.wpcb-results-archive {
    margin-top: 30px;
}

.wpcb-result-row {
    display: grid;
    grid-template-columns: 100px 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    transition: background 0.3s ease;
}

.wpcb-result-row:hover {
    background: #f9f9f9;
}

.wpcb-result-date {
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

.wpcb-result-home,
.wpcb-result-away {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpcb-result-home {
    text-align: right;
    justify-content: flex-end;
}

.wpcb-result-away {
    text-align: left;
}

.wpcb-result-home .wpcb-team-name {
    order: 1;
}

.wpcb-result-home .wpcb-team-logo {
    order: 2;
}

.wpcb-result-score {
    font-size: 18px;
    font-weight: 700;
    color: #27272A;
    padding: 5px 15px;
    background: #FEE685;
    border-radius: 4px;
    text-align: center;
}

/* ============================================
   League Tables
   ============================================ */
.wpcb-league-table {
    margin-top: 30px;
}

.wpcb-league-header {
    background: #27272A;
    color: #FEE685;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    text-align: center;
}

.wpcb-league-header h3 {
    margin: 0;
    font-size: 18px;
}

.wpcb-league-table table {
    margin: 0;
}

.wpcb-league-table th {
    background: #FEE685;
    color: #27272A;
}

.wpcb-league-table .position-1,
.wpcb-league-table .position-2,
.wpcb-league-table .position-3 {
    background: rgba(49, 201, 80, 0.1);
}

/* ============================================
   Responsive Styles for WP Club Manager
   ============================================ */
@media (max-width: 768px) {
    .wpcb-match-teams {
        flex-direction: column;
        gap: 15px;
    }

    .wpcb-result-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .wpcb-result-home,
    .wpcb-result-away {
        justify-content: center;
    }

    .wpcb-result-home {
        order: 1;
    }

    .wpcb-result-score {
        order: 2;
    }

    .wpcb-result-away {
        order: 3;
    }

    .wpcb-player-list {
        grid-template-columns: 1fr;
    }

    .wpcb-club-directory {
        grid-template-columns: 1fr;
    }

    .wpcb-standings-table {
        font-size: 12px;
    }

    .wpcb-standings-table th,
    .wpcb-standings-table td {
        padding: 8px 4px;
    }
}

@media (max-width: 480px) {
    .wpcb-next-match {
        padding: 15px;
    }

    .wpcb-match-teams .wpcb-team-logo {
        width: 40px;
        height: 40px;
    }

    .wpcb-score {
        font-size: 16px;
    }
}
