/* PE Athlete Card Styles - Ultra Compact, Full Width */

.pe-athlete-card {
    background: #0d0d0d;
    color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: max-content 1fr;
    grid-template-areas:
        "header results"
        "footer results";
    column-gap: 15px;
    row-gap: 5px;
    align-items: center;
}

.pe-ac-header {
    grid-area: header;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.pe-ac-avatar {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255,255,255,0.08);
    display: block;
}

.pe-ac-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.pe-ac-avatar-placeholder svg {
    width: 60%;
    height: 60%;
    margin: 20% auto;
    color: #555;
}

.pe-ac-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pe-athlete-card .pe-ac-header .pe-ac-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1;
    color: #ffffff !important;
    white-space: nowrap;
}

.pe-ac-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.pe-ac-stat-badge {
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 7px;
    border-radius: 4px;
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1;
}

.pe-ac-stat-badge.pto-rank {
    background: rgba(246, 78, 28, 0.06);
    border-color: rgba(246, 78, 28, 0.25);
}

.pe-ac-label {
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 0.5px;
    color: #888;
}

.pe-ac-stat-badge strong {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.pe-ac-stat-badge.pto-rank strong {
    color: #f64e1c;
}

.pe-ac-results {
    grid-area: results;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
}

.pe-ac-results-title {
    font-size: 10px;
    font-weight: 700;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.pe-ac-races-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pe-ac-races-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}

.pe-ac-races-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pe-ac-race-name {
    font-size: 13px;
    font-weight: 700;
    color: #eee;
    flex: 1;
    padding-right: 15px;
    line-height: 1.3;
}

.pe-ac-race-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}

.pe-ac-race-date {
    font-size: 10px;
    color: #888;
    white-space: nowrap;
}

.pe-ac-race-pos {
    font-size: 11px;
    color: #aaa;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.pe-ac-race-pos strong {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #333;
    padding: 2px 5px;
    border-radius: 4px;
    color: #fff;
    font-weight: 800;
    margin-left: 5px;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
}

.pe-ac-footer {
    grid-area: footer;
    text-align: center;
}

.pe-ac-footer a {
    font-size: 10px;
    color: #f64e1c;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.pe-ac-footer a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
    .pe-athlete-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "footer"
            "results";
        row-gap: 15px;
    }

    .pe-ac-results {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-left: 0;
        padding-top: 12px;
        align-self: auto;
    }
}