/**
 * League Hero Public Styles
 */

/* General */
.lh-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Teams List */
.lh-teams-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px 8px;
    border-radius: 8px;
    background-color: #00256F;
    padding: 16px;
}

@media (min-width: 768px) {
    .lh-teams-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 8px 8px;
    }
}

@media (min-width: 992px) {
    .lh-teams-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 8px 8px;
    }
}

.lh-team-card {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.lh-team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.lh-team-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.lh-team-address {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.lh-team-link {
    display: inline-block;
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.lh-team-link:hover {
    background: #005a87;
}

/* Single Team */
.lh-team-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #0073aa;
}

.lh-team-header h2 {
    margin: 0 0 10px 0;
}

.lh-players-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.lh-players-list li {
    padding: 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lh-players-list li:last-child {
    border-bottom: none;
}

.lh-player-role {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Matches */
.lh-match-week {
    margin-bottom: 30px;
}

.lh-match-week-title {
    background: #0073aa;
    color: #fff;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
}

.lh-match-week-title:hover {
    background: #005a87;
}

.lh-match-week-content {
    border: 1px solid #ddd;
    border-top: none;
    padding: 20px;
    display: none;
}

.lh-match-week-content.active {
    display: block;
}

.lh-match-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lh-match-item:last-child {
    border-bottom: none;
}

.lh-match-teams {
    flex: 1;
}

.lh-match-score {
    font-weight: bold;
    font-size: 18px;
    margin: 0 20px;
}

.lh-match-date {
    color: #666;
    font-size: 14px;
}

/* League Standings */
.lh-standings-tabs {
    display: flex;
    border-bottom: 2px solid #0073aa;
    margin-bottom: 20px;
}

.lh-standings-tabs button {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.lh-standings-tabs button.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
    font-weight: bold;
}

.lh-standings-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.lh-standings-table th {
    background: #f0f0f1;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #0073aa;
}

.lh-standings-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.lh-standings-table tr:hover {
    background: #f9f9f9;
}

.lh-standings-position {
    font-weight: bold;
    width: 50px;
    text-align: center;
}

/* Players List */
.lh-players-search {
    margin-bottom: 20px;
}

.lh-players-search input {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.lh-players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.lh-player-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lh-player-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
}

.lh-player-team {
    color: #666;
    font-size: 14px;
}

/* Single Player */
.lh-player-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.lh-stat-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    border-radius: 4px;
}

.lh-stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #0073aa;
}

.lh-stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .lh-match-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .lh-match-score {
        margin: 10px 0;
    }

    .lh-standings-table {
        font-size: 14px;
    }

    .lh-standings-table th,
    .lh-standings-table td {
        padding: 8px;
    }
}
