/**
 * WHS Paradigm Assessment - Part D: Youth-Specific Styles
 */

/* Youth Sliders Page */
.whs-youth-sliders {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.whs-youth-slider-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
}

.whs-youth-slider-header {
    margin-bottom: 12px;
}

.whs-youth-slider-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.whs-youth-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.whs-youth-slider-labels span {
    max-width: 45%;
}

/* Label with visible guidance text (replaces tooltip reliance) */
.whs-label-with-guidance {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 45%;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.whs-label-left-group {
    align-items: flex-start;
    text-align: left;
}

.whs-label-right-group {
    align-items: flex-end;
    text-align: right;
}

.whs-label-with-guidance .whs-label-left,
.whs-label-with-guidance .whs-label-right {
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.whs-label-guidance {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.3;
    font-style: italic;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

/* Primary Age Selection */
.whs-primary-selection {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.whs-primary-prompt {
    font-size: 14px;
    color: #e056fd;
    margin-bottom: 12px;
    text-align: center;
}

.whs-primary-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.whs-primary-age-btn {
    background: rgba(224, 86, 253, 0.1);
    border: 1px solid rgba(224, 86, 253, 0.3);
    color: #e056fd;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.whs-primary-age-btn:hover {
    background: rgba(224, 86, 253, 0.2);
}

.whs-primary-age-btn.active {
    background: #e056fd;
    color: #fff;
    border-color: #e056fd;
}

/* Youth Gate Page */
.whs-youth-gate {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.whs-youth-gate-header {
    margin-bottom: 24px;
}

.whs-youth-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.whs-youth-gate h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.whs-youth-gate-intro {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.whs-youth-benefits {
    text-align: left;
    background: rgba(107, 92, 231, 0.1);
    border: 1px solid rgba(107, 92, 231, 0.3);
    border-radius: 12px;
    padding: 20px 20px 20px 40px;
    margin: 20px 0;
}

.whs-youth-benefits li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    line-height: 1.5;
}

.whs-youth-gate-note {
    background: rgba(224, 86, 253, 0.1);
    border: 1px solid rgba(224, 86, 253, 0.3);
    border-radius: 8px;
    padding: 12px 20px;
    margin: 20px 0;
    color: #e056fd;
}

.whs-youth-gate-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.whs-youth-start {
    background: linear-gradient(135deg, #6b5ce7 0%, #e056fd 100%);
}

.whs-youth-skip {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.whs-youth-skip-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 16px;
}

/* Age Range Selection */
.whs-age-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.whs-age-option {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.whs-age-option:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(107, 92, 231, 0.4);
}

.whs-age-option.selected {
    background: rgba(107, 92, 231, 0.1);
    border-color: #6b5ce7;
}

.whs-age-option.primary {
    border-color: #e056fd;
    box-shadow: 0 0 0 1px #e056fd;
}

.whs-age-option input[type="checkbox"] {
    display: none;
}

.whs-age-icon {
    font-size: 32px;
    width: 48px;
    text-align: center;
}

.whs-age-content {
    flex: 1;
    text-align: left;
}

.whs-age-label {
    display: block;
    font-weight: 600;
    color: #fff;
    font-size: 16px;
    margin-bottom: 4px;
}

.whs-age-desc {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.whs-age-check {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 14px;
    transition: all 0.2s ease;
}

.whs-age-option.selected .whs-age-check {
    background: #6b5ce7;
    color: #fff;
}

.whs-primary-btn {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(224, 86, 253, 0.2);
    border: 1px solid rgba(224, 86, 253, 0.4);
    color: #e056fd;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.whs-primary-btn:hover {
    background: rgba(224, 86, 253, 0.3);
}

.whs-primary-btn.active {
    background: #e056fd;
    color: #fff;
    border-color: #e056fd;
}

.whs-primary-prompt {
    text-align: center;
    color: #e056fd;
    font-size: 14px;
    margin-top: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Youth Contexts Grid */
.whs-youth-context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

/* Youth Outcomes Checklist */
.whs-outcomes-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
}

.whs-outcome-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.whs-outcome-check:hover {
    background: rgba(255, 255, 255, 0.06);
}

.whs-outcome-check.selected {
    background: rgba(107, 92, 231, 0.1);
    border-color: #6b5ce7;
}

.whs-outcome-check input[type="checkbox"] {
    display: none;
}

.whs-outcome-check .whs-check-mark {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 12px;
    flex-shrink: 0;
}

.whs-outcome-check.selected .whs-check-mark {
    background: #6b5ce7;
    color: #fff;
}

.whs-outcome-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

/* Youth section spacing - ensures proper spacing between consecutive sections */
.whs-youth-section + .whs-youth-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Youth Limitations Section */
.whs-limitations-section {
    margin-top: 24px;
}

.whs-limitations-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.whs-limitation-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-wrap: wrap;
}

.whs-limitation-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.whs-limitation-option.selected {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
}

.whs-limitation-option input[type="checkbox"] {
    display: none;
}

.whs-limitation-option .whs-check-mark {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 12px;
    flex-shrink: 0;
}

.whs-limitation-option.selected .whs-check-mark {
    background: #ef4444;
    color: #fff;
}

.whs-limitation-text {
    flex: 1;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.whs-min-age-input {
    width: 60px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    margin-left: 8px;
}

.whs-honesty-note {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

/* Youth Section in Results Display */
.whs-youth-profile-section {
    background: linear-gradient(135deg, rgba(107, 92, 231, 0.1) 0%, rgba(224, 86, 253, 0.1) 100%);
    border: 1px solid rgba(107, 92, 231, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
}

.whs-youth-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.whs-youth-profile-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.whs-youth-ages-taught {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.whs-youth-age-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(107, 92, 231, 0.2);
    border: 1px solid rgba(107, 92, 231, 0.4);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 14px;
    color: #fff;
}

.whs-youth-age-badge.primary {
    background: rgba(224, 86, 253, 0.2);
    border-color: #e056fd;
}

.whs-youth-age-badge .whs-primary-star {
    color: #e056fd;
}

.whs-youth-dimensions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.whs-youth-dimension {
    display: flex;
    align-items: center;
    gap: 12px;
}

.whs-youth-dim-label {
    width: 140px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.whs-youth-dim-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.whs-youth-dim-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #6b5ce7, #e056fd);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.whs-youth-dim-value {
    width: 36px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.whs-youth-dim-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.whs-youth-clusters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.whs-youth-cluster {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.whs-youth-cluster-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.whs-youth-cluster-value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.whs-youth-cluster-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.whs-youth-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
}

.whs-youth-summary h4 {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 12px 0;
}

.whs-youth-summary p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.whs-youth-coherence {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.whs-youth-coherence-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.whs-youth-coherence-value {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whs-youth-clusters {
        grid-template-columns: 1fr;
    }
    
    .whs-outcomes-checklist {
        grid-template-columns: 1fr;
    }
    
    .whs-primary-btn {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 8px;
    }
    
    .whs-age-option {
        flex-wrap: wrap;
    }
    
    .whs-youth-dimension {
        flex-wrap: wrap;
    }
    
    .whs-youth-dim-label {
        width: 100%;
        margin-bottom: 4px;
    }
}
