/* Personalization Settings & Feedback UI */

.feedback-modal,
.personalization-modal {
    max-width: 650px;
    width: 90%;
}

.personalization-body {
    max-height: 70vh;
    overflow-y: auto;
}

.setting-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 4px solid #000;
}

.setting-section:last-child {
    border-bottom: none;
}

.setting-section-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.setting-row {
    margin-bottom: 1rem;
}

.setting-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border: 3px solid #000;
    background: #fff;
    transition: none;
}

.setting-label:hover {
    background: #f8fafc;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
}

.setting-checkbox {
    margin-top: 0.2rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.setting-text {
    flex: 1;
}

.setting-text strong {
    display: block;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.setting-text small {
    color: var(--text-light);
    font-size: 0.875rem;
}

.setting-label-full {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-select,
.setting-input {
    padding: 0.75rem;
    border: 3px solid var(--dark);
    font-size: 1rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
}

.setting-select:focus,
.setting-input:focus {
    outline: none;
    box-shadow: 4px 4px 0 #000;
    transform: translate(-2px, -2px);
}

.setting-slider {
    width: 100%;
    height: 12px;
    border-radius: 0;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    border: 3px solid #000;
    box-shadow: 4px 4px 0 #000;
}

.setting-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 0;
    background: var(--primary);
    cursor: pointer;
    border: 3px solid var(--dark);
    box-shadow: 2px 2px 0 #000;
}

.setting-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 0;
    background: var(--primary);
    cursor: pointer;
    border: 3px solid var(--dark);
    box-shadow: 2px 2px 0 #000;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.slider-labels span {
    flex: 1;
}

.slider-labels span:nth-child(2) {
    font-weight: 900;
    color: var(--primary);
    font-size: 0.85rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
}

/* Feedback Modal */

.feedback-section {
    margin-bottom: 2rem;
}

.feedback-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.star-rating {
    display: flex;
    gap: 0.5rem;
    font-size: 2.5rem;
    margin: 1rem 0;
}

.star {
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.star:hover,
.star.hover {
    color: #fbbf24;
    transform: scale(1.1);
}

.star.active {
    color: #f59e0b;
}

.feedback-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.feedback-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.feedback-checkbox-label:hover {
    background: #f8fafc;
    border-color: var(--primary);
}

.feedback-checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#feedbackText {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--dark);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

#feedbackText:focus {
    outline: none;
    border-color: var(--primary);
}

.feedback-confirmation {
    padding: 1rem;
    background: #d1fae5;
    border: 2px solid #10b981;
    color: #065f46;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
}

/* Feedback Button */
.lesson-feedback-trigger {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--primary);
    color: white;
    border: 3px solid var(--dark);
    box-shadow: 4px 4px 0 var(--dark);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.feedback-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--dark);
}

.feedback-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--dark);
}

@media (max-width: 768px) {
    .profile-stats {
        grid-template-columns: 1fr;
    }

    .feedback-checkboxes {
        grid-template-columns: 1fr;
    }

    .star-rating {
        font-size: 2rem;
    }
}
