/* Group Detail Page Specific Styles */

/* Page Header */
.group-header {
    margin-bottom: 30px;
}

.season-info-prominent {
    color: var(--primary);
    font-size: 1.4em;
    font-weight: 700;
    margin-top: 15px;
    margin-bottom: 10px;
}

.update-info {
    color: var(--text-light);
    font-size: 0.7em;
    font-style: italic;
    margin-top: 15px;
    opacity: 0.8;
}

/* Tab panel visibility */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Standings Card */
.standings-card {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 32px;
    margin: 30px 0;
}

.standings-table {
    margin-top: 20px;
}

.standings-header {
    display: grid;
    grid-template-columns: 60px 1fr 60px 200px 60px 60px;
    gap: 15px;
    padding: 15px 20px;
    background: var(--table-header);
    color: var(--white);
    border-radius: 10px 10px 0 0;
    font-weight: 700;
    font-size: 0.9em;
    align-items: center;
}

/* Add white lines between header sections */
.standings-header > div {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.standings-header > div:last-child {
    border-right: none;
}

.standings-header .matches-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 5px;
    text-align: center;
}

/* Add white lines between match breakdown headers */
.standings-header .matches-breakdown > div {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.standings-header .matches-breakdown > div:last-child {
    border-right: none;
}

.standings-row {
    display: grid;
    grid-template-columns: 60px 1fr 60px 200px 60px 60px;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    align-items: center;
    transition: all 0.2s ease;
}

.standings-row:nth-child(even) {
    background: var(--table-row-alt);
}

.standings-row:hover {
    background: rgba(243, 146, 0, 0.25) !important;
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(243, 146, 0, 0.25);
}

.standings-row:hover a {
    color: var(--secondary) !important;
    font-weight: 700;
}

.standings-row:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

.position {
    text-align: center;
    font-weight: 700;
    color: var(--secondary);
    font-size: 1.1em;
}

.team-name a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

.team-name a:hover {
    color: var(--primary);
}

.points {
    text-align: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1em;
}

.match-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 5px;
    text-align: center;
    font-size: 0.9em;
}

.goals {
    text-align: center;
    font-weight: 600;
}

.goals.scored {
    color: green;
}

.goals.conceded {
    color: #d32f2f;
}

/* Matches Card */
.matches-card {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 32px;
    margin: 30px 0;
}

.match-item {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 15px;
    background: var(--white);
    transition: all 0.2s ease;
}

.match-item:nth-child(even) {
    background: var(--background);
}

.match-item:hover {
    background: rgba(243, 146, 0, 0.25) !important;
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(243, 146, 0, 0.25);
}

.match-item:hover a {
    color: var(--secondary) !important;
    font-weight: 700;
}

.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-light);
}

/* Goal Scorers Card */
.goalscorers-card {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 32px;
    margin: 30px 0;
}

/* Transfers Card */
.transfers-card {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 32px;
    margin: 30px 0;
}

.getTransfers {
    margin-top: 20px;
}

/* Transfers Table */
.transfers-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    font-size: 1.05em;
    border-radius: 10px;
    overflow: hidden;
}

.transfers-table th {
    background: var(--table-header);
    color: var(--white);
    font-weight: 700;
    padding: 12px 8px;
    text-align: center;
}

.transfers-table th:first-child {
    border-top-left-radius: 10px;
}

.transfers-table th:last-child {
    border-top-right-radius: 10px;
}

.transfers-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #eee;
    background: var(--white);
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.transfers-table tr:nth-child(even) td {
    background: var(--table-row-alt);
}

.transfers-table tr:hover td {
    background: rgba(243, 146, 0, 0.25) !important;
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(243, 146, 0, 0.25);
}

.transfers-table tr:hover td a {
    color: var(--secondary) !important;
    font-weight: 700;
}

.transfers-table .player,
.transfers-table .team {
    text-align: left;
    font-weight: 600;
}

.transfers-table a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

.transfers-table a:hover {
    color: var(--primary);
}

/* Goal Scorers Table */
.goalscorers-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    font-size: 1.05em;
    border-radius: 10px;
    overflow: hidden;
}

.goalscorers-table th {
    background: var(--table-header);
    color: var(--white);
    font-weight: 700;
    padding: 12px 8px;
    text-align: center;
}

.goalscorers-table th:first-child {
    border-top-left-radius: 10px;
}

.goalscorers-table th:last-child {
    border-top-right-radius: 10px;
}

.goalscorers-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #eee;
    background: var(--white);
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.goalscorers-table tr:nth-child(even) td {
    background: var(--table-row-alt);
}

.goalscorers-table tr:hover td {
    background: rgba(243, 146, 0, 0.25) !important;
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(243, 146, 0, 0.25);
}

.goalscorers-table tr:hover td a {
    color: var(--secondary) !important;
    font-weight: 700;
}

.goalscorers-table .player,
.goalscorers-table .team {
    text-align: left;
    font-weight: 600;
}

.goalscorers-table a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

.goalscorers-table a:hover {
    color: var(--primary);
}

/* Map Card */
.map-card {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 32px;
    margin: 30px 0;
}

/* Alert Messages */
.alert-card {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    color: #856404;
    text-align: center;
}

/* Advertisement Container */
.ad-container {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
}

/* FCF Link */
.fcf-link {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
}

.fcf-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    background: var(--background);
    padding: 12px 20px;
    border-radius: 10px;
    transition: all 0.2s;
}

.fcf-link a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .standings-card .standings-header,
    .standings-card .standings-row {
        display: grid !important; /* Force grid layout */
        grid-template-columns: 35px 1fr 40px 160px; /* Adjusted for abbreviations */
        gap: 4px;
        padding: 8px 6px;
        font-size: 0.9em;
    }
    
    .standings-card .standings-header .goals-header,
    .standings-card .standings-header .matches-breakdown,
    .standings-card .standings-row .goals {
        display: none !important;
    }
    
    /* Replace header text with abbreviations on mobile */
    .standings-card .standings-header > div:first-child {
        font-size: 0;
        position: relative;
        min-height: 20px;
    }
    .standings-card .standings-header > div:first-child::before {
        content: "Pos.";
        font-size: 13.6px; /* 0.85em equivalent at 16px base */
        font-weight: 700;
        display: block;
        color: white !important;
        line-height: 1.2;
        text-align: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
    }
    
    .standings-card .standings-header > div:nth-child(2) {
        font-size: 0;
        position: relative;
        min-height: 20px;
    }
    .standings-card .standings-header > div:nth-child(2)::before {
        content: "Club";
        font-size: 13.6px; /* 0.85em equivalent at 16px base */
        font-weight: 700;
        display: block;
        color: white !important;
        line-height: 1.2;
        text-align: left;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 100%;
    }
    
    .standings-card .standings-header > div:nth-child(3) {
        font-size: 0;
        position: relative;
        min-height: 20px;
    }
    .standings-card .standings-header > div:nth-child(3)::before {
        content: "Pts.";
        font-size: 13.6px; /* 0.85em equivalent at 16px base */
        font-weight: 700;
        display: block;
        color: white !important;
        line-height: 1.2;
        text-align: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
    }
    
    .standings-card .match-stats {
        display: grid !important; /* Force grid layout */
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 2px;
        font-size: 0.8em;
        text-align: center;
        align-items: center;
    }
    
    .standings-card .position {
        font-size: 0.9em;
        text-align: center;
        font-weight: 700;
    }
    
    .standings-card .team-name {
        font-size: 1em;
        min-width: 130px;
        display: block !important; /* Ensure it's visible */
    }
    
    .standings-card .team-name a {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--secondary);
        text-decoration: none;
        font-weight: 600;
    }
    
    .standings-card .points {
        font-size: 0.9em;
        text-align: center;
        font-weight: 700;
        color: var(--primary);
    }
    
    .transfers-header {
        display: none;
    }
    
    .transfers-row {
        display: block;
        padding: 20px;
        border: 1px solid #eee;
        border-radius: 12px;
        margin-bottom: 15px;
        background: var(--white);
    }
    
    .transfers-row > div {
        margin-bottom: 8px;
    }
    
    .transfers-row > div:last-child {
        margin-bottom: 0;
    }
    
    .transfer-date:before {
        content: "Fecha: ";
        font-weight: 600;
        color: var(--text-light);
    }
    
    .transfer-player:before {
        content: "Jugador: ";
        font-weight: 600;
        color: var(--text-light);
    }
    
    .transfer-team.new:before {
        content: "Nuevo equipo: ";
        font-weight: 600;
        color: var(--text-light);
    }
    
    .transfer-team.old:before {
        content: "Equipo anterior: ";
        font-weight: 600;
        color: var(--text-light);
    }
    
    /* Responsive styling for transfers table */
    .transfers-header {
        display: none;
    }
    
    .transfers-row {
        display: block;
        padding: 20px;
        border: 1px solid #eee;
        border-radius: 12px;
        margin-bottom: 15px;
        background: var(--white);
    }
    
    .transfers-row > div {
        margin-bottom: 8px;
    }
    
    .transfers-row > div:last-child {
        margin-bottom: 0;
    }
    
    .transfer-date:before {
        content: "Fecha: ";
        font-weight: 600;
        color: var(--text-light);
    }
    
    .transfer-player:before {
        content: "Jugador: ";
        font-weight: 600;
        color: var(--text-light);
    }
    
    .transfer-team:nth-child(3):before {
        content: "Nuevo equipo: ";
        font-weight: 600;
        color: var(--text-light);
    }
    
    .transfer-team:nth-child(4):before {
        content: "Equipo anterior: ";
        font-weight: 600;
        color: var(--text-light);
    }
    
    /* Responsive styling for goalscorers table */
    .goalscorers-header {
        display: none;
    }
    
    .goalscorers-row {
        display: block;
        padding: 20px;
        border: 1px solid #eee;
        border-radius: 12px;
        margin-bottom: 15px;
        background: var(--white);
    }
    
    .goalscorers-row > div {
        margin-bottom: 8px;
    }
    
    .goalscorers-row > div:last-child {
        margin-bottom: 0;
    }
    
    .scorer-player:before {
        content: "Jugador: ";
        font-weight: 600;
        color: var(--text-light);
    }
    
    .scorer-goals:before {
        content: "Goles: ";
        font-weight: 600;
        color: var(--text-light);
    }
    
    .scorer-team:before {
        content: "Equipo: ";
        font-weight: 600;
        color: var(--text-light);
    }
    
    .standings-card,
    .matches-card,
    .goalscorers-card,
    .transfers-card,
    .map-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .standings-card .standings-header,
    .standings-card .standings-row {
        display: grid !important; /* Force grid layout */
        grid-template-columns: 30px 1fr 35px;
        gap: 4px;
        padding: 6px 4px;
        font-size: 0.85em;
    }
    
    .standings-card .standings-header .matches-breakdown,
    .standings-card .standings-row .match-stats {
        display: none !important;
    }
    
    /* Replace header text with abbreviations on small mobile */
    .standings-card .standings-header > div:first-child {
        font-size: 0;
        position: relative;
        min-height: 18px;
    }
    .standings-card .standings-header > div:first-child::before {
        content: "Pos.";
        font-size: 12.8px; /* 0.8em equivalent at 16px base */
        font-weight: 700;
        display: block;
        color: white !important;
        line-height: 1.2;
        text-align: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
    }
    
    .standings-card .standings-header > div:nth-child(2) {
        font-size: 0;
        position: relative;
        min-height: 18px;
    }
    .standings-card .standings-header > div:nth-child(2)::before {
        content: "Club";
        font-size: 12.8px; /* 0.8em equivalent at 16px base */
        font-weight: 700;
        display: block;
        color: white !important;
        line-height: 1.2;
        text-align: left;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 100%;
    }
    
    .standings-card .standings-header > div:nth-child(3) {
        font-size: 0;
        position: relative;
        min-height: 18px;
    }
    .standings-card .standings-header > div:nth-child(3)::before {
        content: "Pts.";
        font-size: 12.8px; /* 0.8em equivalent at 16px base */
        font-weight: 700;
        display: block;
        color: white !important;
        line-height: 1.2;
        text-align: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
    }
    
    .standings-card .team-name {
        min-width: 130px;
        display: block !important; /* Ensure it's visible */
    }
    
    .standings-card .team-name a {
        font-size: 1em;
        color: var(--secondary);
        text-decoration: none;
        font-weight: 600;
    }
    
    .standings-card .position {
        font-size: 0.85em;
        font-weight: 700;
        width: 30px;
    }
    
    .standings-card .points {
        font-size: 0.85em;
        font-weight: 700;
        color: var(--primary);
    }
    
    .standings-card .standings-row::after {
        content: attr(data-record);
        grid-column: 1 / -1;
        font-size: 1em;
        color: var(--text-light);
        text-align: center;
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px solid #eee;
    }
    
    .standings-card,
    .matches-card,
    .goalscorers-card,
    .transfers-card,
    .map-card {
        padding: 16px;
        margin: 20px 0;
    }
} 

.standings-card .standings-table {
    margin-top: 20px;
    display: block !important; /* Override global table display */
}

/* Desktop layout for standings header and other elements */
@media (min-width: 769px) {
    .standings-card .standings-header {
        display: grid !important; /* Force grid layout */
        grid-template-columns: 60px 1fr 60px 200px 60px 60px;
        gap: 15px;
        padding: 15px 20px;
        background: var(--table-header);
        color: var(--white);
        border-radius: 10px 10px 0 0;
        font-weight: 700;
        font-size: 0.9em;
        align-items: center;
    }

    /* Add white lines between header sections */
    .standings-card .standings-header > div {
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }

    .standings-card .standings-header > div:last-child {
        border-right: none;
    }

    .standings-card .standings-header .matches-breakdown {
        display: grid !important; /* Force grid layout */
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 5px;
        text-align: center;
    }

    /* Add white lines between match breakdown headers */
    .standings-card .standings-header .matches-breakdown > div {
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }

    .standings-card .standings-header .matches-breakdown > div:last-child {
        border-right: none;
    }

    .standings-card .standings-row {
        display: grid !important; /* Force grid layout */
        grid-template-columns: 60px 1fr 60px 200px 60px 60px;
        gap: 15px;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        align-items: center;
        transition: all 0.2s ease;
    }
} 
