/**
 * Learning Quiz Modal Styles
 * Clean, abstracted styles for the learning quiz component.
 */

/* Modal Container */
.lq-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.lq-modal.open {
    display: flex;
}

/* Backdrop */
.lq-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* Modal Container */
.lq-container {
    position: relative;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
}

/* Header */
.lq-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.lq-header-text {
    flex: 1;
}

.lq-kicker {
    display: block;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 6px;
}

.lq-title {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 6px;
}

.lq-step-indicator {
    font-size: 14px;
    color: #6b7280;
}

.lq-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

.lq-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.lq-close svg {
    width: 18px;
    height: 18px;
}

/* Question Section */
.lq-question {
    margin-bottom: 20px;
}

.lq-prompt {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 6px;
}

.lq-hint {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Options */
.lq-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.lq-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    font-size: 16px;
    color: #111827;
}

.lq-option:hover {
    border-color: #9ca3af;
}

.lq-option.selected {
    border-color: #059669;
    background: #ecfdf5;
}

.lq-option [data-lucide] {
    width: 22px;
    height: 22px;
    color: #6b7280;
    flex-shrink: 0;
}

.lq-option.selected [data-lucide] {
    color: #059669;
}

.lq-option-label {
    flex: 1;
    font-weight: 500;
}

/* Checkbox/Radio Indicator */
.lq-check {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
    background: #fff;
}

.lq-check.multi {
    border-radius: 4px;
}

.lq-check.single {
    border-radius: 50%;
}

.lq-option.selected .lq-check {
    background: #059669;
    border-color: #059669;
}

.lq-check svg {
    width: 12px;
    height: 12px;
    color: #fff;
}

.lq-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

/* Other Input */
.lq-other-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.lq-other-input::placeholder {
    color: #9ca3af;
}

.lq-other-input:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Navigation */
.lq-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    margin-top: 12px;
}

.lq-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 12px;
    transition: background 0.15s, color 0.15s;
}

.lq-back svg {
    width: 18px;
    height: 18px;
}

.lq-back:hover:not(:disabled) {
    background: #f3f4f6;
    color: #111827;
}

.lq-back:disabled {
    color: #d1d5db;
    cursor: not-allowed;
}

.lq-back:disabled svg {
    opacity: 0.5;
}

.lq-next {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    background: #059669;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 14px;
    transition: background 0.15s, transform 0.1s;
}

.lq-next svg {
    width: 18px;
    height: 18px;
}

.lq-next:hover:not(:disabled) {
    background: #047857;
    transform: translateY(-1px);
}

.lq-next:active:not(:disabled) {
    transform: translateY(0);
}

.lq-next.disabled,
.lq-next:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Results */
.lq-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lq-results-card {
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 16px;
}

.lq-results-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin: 0 0 12px;
}

.lq-result-row {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.lq-result-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.lq-result-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}

.lq-result-title svg {
    width: 20px;
    height: 20px;
    color: #059669;
}

.lq-result-desc {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.lq-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lq-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.lq-tag.gray {
    background: #f3f4f6;
    color: #374151;
}

.lq-tag.green {
    background: #d1fae5;
    color: #047857;
}

.lq-tag.purple {
    background: #ede9fe;
    color: #6b21a8;
}

.lq-tag.blue {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Results Actions */
.lq-results-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.lq-complete-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background: #059669;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 14px;
    transition: background 0.15s;
}

.lq-complete-btn:hover {
    background: #047857;
}

.lq-retake-btn {
    padding: 16px 20px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 14px;
    transition: background 0.15s, border-color 0.15s;
}

.lq-retake-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Responsive */
@media (max-width: 480px) {
    .lq-container {
        padding: 24px;
        border-radius: 16px;
    }

    .lq-title {
        font-size: 20px;
    }

    .lq-prompt {
        font-size: 18px;
    }

    .lq-option {
        padding: 14px 16px;
        font-size: 15px;
    }

    .lq-result-title {
        font-size: 15px;
    }

    .lq-result-desc {
        font-size: 14px;
    }

    .lq-results-actions {
        flex-direction: column;
    }
}
