/**
 * 마이랭킹 2026 - 선수 프로필 스타일
 */

/* ===== Profile Container ===== */
.profile-container {
    max-width: 900px;
}

/* ===== Profile Header ===== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: #fff;
    margin-bottom: 24px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.profile-avatar .team-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
}

.profile-avatar .team-name-text {
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.profile-meta .meta-item {
    font-size: 14px;
}

.profile-meta .meta-item::after {
    content: '|';
    margin-left: 12px;
    opacity: 0.5;
}

.profile-meta .meta-item:last-child::after {
    display: none;
}

.profile-stats-mini {
    font-size: 13px;
    opacity: 0.8;
}

/* ===== Profile Section ===== */
.profile-section {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8eaed;
    padding: 20px;
    margin-bottom: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a73e8;
}

.section-title .material-symbols-outlined {
    color: #1a73e8;
    font-size: 24px;
}

.section-title small {
    font-size: 14px;
    font-weight: 400;
    color: #5f6368;
    margin-left: 8px;
}

/* ===== Distance Filter Buttons ===== */
.distance-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.distance-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #5f6368;
    background: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.distance-btn:hover {
    background: #e8f0fe;
    border-color: #d2e3fc;
    color: #1a73e8;
}

.distance-btn.active {
    background: #1a73e8;
    border-color: #1a73e8;
    color: #fff;
}

/* ===== Stroke Best Table ===== */
.stroke-best-table {
    overflow-x: auto;
}

.stroke-best-table table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.stroke-best-table th {
    padding: 12px 16px;
    background: #f8f9fa;
    font-size: 14px;
    font-weight: 600;
    color: #202124;
    border-bottom: 2px solid #e8eaed;
}

.stroke-best-table td {
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #1a73e8;
    border-bottom: 1px solid #f1f3f4;
    font-variant-numeric: tabular-nums;
}

.stroke-best-table td.record-cell {
    font-family: 'Roboto Mono', monospace;
}

/* ===== History Event Filter ===== */
.history-event-filter {
    margin-bottom: 16px;
}

/* ===== History Slider ===== */
.history-slider-container {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    color: #5f6368;
}

.slider-labels .slider-current {
    font-weight: 600;
    color: #1a73e8;
    font-size: 14px;
}

.history-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #dadce0;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.history-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #1a73e8;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.history-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(26, 115, 232, 0.5);
}

.history-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #1a73e8;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.4);
}

/* ===== History Stats Table ===== */
.history-stats-table {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8eaed;
}

.history-stats-table table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.history-stats-table th {
    padding: 10px 12px;
    background: #f8f9fa;
    font-size: 13px;
    font-weight: 600;
    color: #5f6368;
    border-bottom: 2px solid #e8eaed;
}

.history-stats-table td {
    padding: 14px 12px;
    font-size: 16px;
    font-weight: 600;
    color: #202124;
    border-bottom: 1px solid #f1f3f4;
    font-variant-numeric: tabular-nums;
}

.history-stats-table td.best {
    color: #1a73e8;
}

.history-stats-table td.predicted {
    color: #5f6368;
    font-style: italic;
}

.history-stats-table .trend-indicator {
    display: inline-block;
    margin-left: 4px;
    font-size: 14px;
    font-style: normal;
}

.history-stats-table .trend-indicator.improving {
    color: #34a853;
}

.history-stats-table .trend-indicator.declining {
    color: #ea4335;
}

.history-stats-table .stats-note {
    margin-top: 10px;
    font-size: 12px;
    color: #70757a;
    text-align: right;
}

/* ===== Chart Container ===== */
.chart-container {
    position: relative;
    height: 350px;
    width: 100%;
}

/* ===== Radar Container ===== */
.radar-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.radar-chart-wrapper {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    height: 300px;
}

.radar-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
}

.legend-stroke {
    font-weight: 600;
    color: #202124;
}

.legend-count {
    color: #1a73e8;
    font-weight: 500;
}

/* ===== No Data ===== */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #70757a;
}

.no-data p {
    font-size: 14px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .profile-meta {
        justify-content: center;
    }

    .profile-name {
        font-size: 24px;
    }

    .section-title {
        font-size: 16px;
    }

    .section-title .material-symbols-outlined {
        font-size: 20px;
    }

    .distance-filter-buttons {
        justify-content: center;
    }

    .stroke-best-table th,
    .stroke-best-table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .stroke-best-table td {
        font-size: 16px;
    }

    .chart-container {
        height: 280px;
    }

    .history-slider-container {
        padding: 12px;
    }

    .slider-labels {
        font-size: 12px;
    }

    .slider-labels .slider-current {
        font-size: 13px;
    }

    .history-stats-table th,
    .history-stats-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .history-stats-table td {
        font-size: 14px;
    }

    .radar-container {
        flex-direction: column;
    }

    .radar-chart-wrapper {
        max-width: 100%;
        height: 280px;
    }

    .radar-legend {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .legend-item {
        flex: 1 1 calc(50% - 6px);
        min-width: 140px;
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 16px;
    }

    .profile-avatar {
        width: 60px;
        height: 60px;
    }

    .profile-avatar .team-logo {
        width: 40px;
        height: 40px;
    }

    .profile-name {
        font-size: 20px;
    }

    .profile-section {
        padding: 16px;
    }

    .section-title {
        font-size: 15px;
    }

    .distance-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .stroke-best-table th {
        font-size: 12px;
        padding: 8px 4px;
    }

    .stroke-best-table td {
        font-size: 14px;
        padding: 12px 4px;
    }

    .chart-container {
        height: 250px;
    }

    .history-stats-table th {
        font-size: 11px;
        padding: 6px 4px;
    }

    .history-stats-table td {
        font-size: 13px;
        padding: 10px 4px;
    }

    .history-stats-table .stats-note {
        font-size: 11px;
        text-align: center;
    }

    .radar-chart-wrapper {
        height: 250px;
    }

    .legend-item {
        flex: 1 1 100%;
    }
}
