/* --- Workout Selector --- */
.ftp-section {
    margin-bottom: 20px;
}

.ftp-section-label {
    display: block;
    font-weight: 600;
    color: #e2e4ea;
    font-size: 16px;
    margin-bottom: 4px;
}

.fitness-level-picker {
    display: inline-flex;
    background: #1C1F2A;
    border-radius: 999px;
    padding: 3px;
    margin-bottom: 0;
}

.fitness-level-btn {
    height: 40px;
    padding: 0 20px;
    border: none;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.fitness-level-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.fitness-level-btn.active {
    background: #232735;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.fitness-level-btn.active:hover {
    background: #232735;
}

.fitness-level-name {
    font-weight: 600;
    font-size: 14px;
    color: #8b8fa3;
}

.fitness-level-btn.active .fitness-level-name {
    color: #e2e4ea;
}

.fitness-level-btn-custom {
    padding: 0 14px;
}

.custom-short {
    display: none;
}

.fitness-level-desc {
    display: none;
}

.fitness-level-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 34px;
    margin-top: 4px;
}

.fitness-level-subtext {
    font-size: 14px;
    color: #8b8fa3;
}

.ftp-custom-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ftp-custom-input input[type="number"] {
    width: 90px;
    background: #1C1F2A;
    border: 1px solid #232735;
    color: #e2e4ea;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
}

.ftp-unit {
    color: #8b8fa3;
    font-weight: 600;
    font-size: 14px;
}

.zone-legend {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    font-size: 12px;
}

.zone-legend-item {
    flex: 1;
    padding: 8px 4px;
    text-align: center;
    color: white;
    font-weight: 600;
}

.zone-legend-item .zone-watts {
    display: block;
    font-weight: 400;
    font-size: 11px;
    opacity: 0.9;
    margin-top: 2px;
}

.filter-row {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 160px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #8b8fa3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #232735;
    border-radius: 6px;
    font-size: 14px;
    background: #1C1F2A;
    color: #e2e4ea;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.filter-select:hover {
    border-color: #667eea;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.workout-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.workout-card {
    display: flex;
    flex-direction: column;
    background: #1E2130;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: all 0.2s;
}

.workout-card:hover {
    background: #232735;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.workout-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.workout-card-name {
    font-size: 16px;
    font-weight: 600;
    color: #e2e4ea;
}

.workout-card-difficulty {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.difficulty-easy {
    background: rgba(72, 187, 120, 0.15);
    color: #68d391;
}

.difficulty-moderate {
    background: rgba(236, 201, 75, 0.15);
    color: #ecc94b;
}

.difficulty-hard {
    background: rgba(237, 137, 54, 0.15);
    color: #ed8936;
}

.difficulty-very-hard {
    background: rgba(245, 101, 101, 0.15);
    color: #fc8181;
}

.workout-card-desc {
    font-size: 14px;
    font-weight: 400;
    color: #8b8fa3;
    margin-bottom: 16px;
    line-height: 1.5;
    flex: 1;
}

.workout-profile {
    display: flex;
    align-items: flex-end;
    height: 32px;
    gap: 1px;
    margin-bottom: 16px;
    border-radius: 4px;
    overflow: hidden;
}

.workout-profile-bar {
    min-width: 2px;
    border-radius: 2px 2px 0 0;
}

.workout-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workout-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #5c6078;
}

.workout-card-cta {
    height: 38px;
    padding: 0 18px;
    border: none;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.workout-card-cta:hover {
    background: rgba(102, 126, 234, 0.18);
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.2);
}

.cta-short {
    display: none;
}
