/* Learning Style Quiz - Neo Brutalist Design */

.learning-style-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
    opacity: 0;
    transition: all 0.3s ease;
}

.learning-style-overlay.active {
    opacity: 1;
}

.learning-style-modal {
    background: #ffffff;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 95vh;
    overflow: hidden;
    border: 4px solid #000000;
    box-shadow: 8px 8px 0px #000000, 16px 16px 0px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.learning-style-modal.active {
    transform: scale(1);
}

.learning-style-header {
    background: #ffffff;
    color: #000000;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #000000;
    border-left: 4px solid #ff6b6b;
    border-right: 4px solid #4ecdc4;
    border-top: 4px solid #45b7d1;
}

.quiz-title {
    flex: 1;
}

.quiz-title h2 {
    margin: 0 0 8px 0;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.quiz-subtitle {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quiz-close-btn {
    background: #ff6b6b;
    border: 3px solid #000000;
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    transition: all 0.1s ease;
    box-shadow: 4px 4px 0px #000000;
}

.quiz-close-btn:hover {
    background: #ff5252;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000000;
}

.quiz-close-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px #000000;
}

.quiz-progress {
    background: #f8f9fa;
    border-bottom: 4px solid #000000;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.progress-step.active {
    color: #ff6b6b;
    font-weight: 900;
}

.progress-step.completed {
    color: #4ecdc4;
}

.progress-step-number {
    width: 24px;
    height: 24px;
    background: #e9ecef;
    border: 2px solid #000000;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.8rem;
}

.progress-step.active .progress-step-number {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

.progress-step.completed .progress-step-number {
    background: #4ecdc4;
    color: white;
    border-color: #4ecdc4;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid #000000;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    border-right: 2px solid #000000;
    transition: width 0.5s ease;
}

.quiz-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    background: #ffffff;
}

.quiz-intro {
    text-align: center;
    margin-bottom: 40px;
}

.quiz-intro h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #000000;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.quiz-intro p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.question-container {
    margin-bottom: 40px;
}

.question-number {
    font-size: 0.8rem;
    color: #666;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 900;
    color: #000000;
    margin-bottom: 24px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.answer-option {
    background: #ffffff;
    border: 3px solid #000000;
    border-radius: 0;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.1s ease;
    position: relative;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
}

.answer-option:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.answer-option.selected {
    background: #4ecdc4;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 3px #000000, 6px 6px 0px rgba(78, 205, 196, 0.3);
}

.answer-option.selected:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px rgba(78, 205, 196, 0.3);
}

.answer-label {
    display: flex;
    align-items: center;
    gap: 16px;
}

.answer-icon {
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border: 2px solid #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.answer-option.selected .answer-icon {
    background: #ffffff;
    border-color: #4ecdc4;
    color: #4ecdc4;
}

.answer-text {
    font-weight: 700;
    color: #000000;
    font-size: 1rem;
    line-height: 1.4;
}

.answer-description {
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
    font-weight: 500;
}

.answer-option.selected .answer-description {
    color: #333;
}

.quiz-navigation {
    background: #f8f9fa;
    border-top: 4px solid #000000;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #f9ca24;
    border-right: 4px solid #45b7d1;
}

.nav-btn {
    background: #ffffff;
    border: 3px solid #000000;
    color: #000000;
    padding: 12px 24px;
    border-radius: 0;
    cursor: pointer;
    font-weight: 900;
    font-size: 1rem;
    transition: all 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
}

.nav-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.nav-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.3);
}

.nav-btn.primary {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

.nav-btn.primary:hover {
    background: #ff5252;
    border-color: #ff5252;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.nav-btn:disabled:hover {
    transform: none;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
}

.results-container {
    display: none;
    text-align: center;
}

.results-container.active {
    display: block;
}

.results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: #333333;
    box-shadow: 0 0 0 4px #000000, 8px 8px 0px rgba(255, 215, 0, 0.3);
}

.results-title {
    font-size: 2rem;
    font-weight: 900;
    color: #000000;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.results-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 32px;
    font-weight: 600;
}

.learning-style-results {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.style-result {
    background: #ffffff;
    border: 3px solid #000000;
    border-radius: 0;
    padding: 24px;
    min-width: 200px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease;
}

.style-result:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
}

.style-result.primary {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7d1 100%);
    border-color: #4ecdc4;
    box-shadow: 0 0 0 4px #000000, 8px 8px 0px rgba(78, 205, 196, 0.3);
}

.style-result.primary:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px rgba(78, 205, 196, 0.3);
}

.style-name {
    font-size: 1.3rem;
    font-weight: 900;
    color: #000000;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.style-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 16px;
}

.style-match {
    font-size: 0.8rem;
    color: #ff6b6b;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.style-result.primary .style-name {
    color: #ffffff;
}

.style-result.primary .style-description {
    color: #f0f0f0;
}

.style-result.primary .style-match {
    color: #ffffff;
}

.learning-tips {
    background: #f8f9fa;
    border: 3px solid #000000;
    border-radius: 0;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
}

.tips-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: #000000;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 0;
    padding: 12px 16px;
    margin-bottom: 8px;
    font-weight: 700;
    color: #333;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease;
}

.tips-list li:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
}

.tips-list li:last-child {
    margin-bottom: 0;
}

.style-traits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.trait-item {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 0;
    padding: 16px;
    text-align: center;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease;
}

.trait-item:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
}

.trait-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #ff6b6b;
}

.trait-name {
    font-size: 0.9rem;
    font-weight: 900;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.trait-description {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.3;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .learning-style-modal {
        width: 95%;
        margin: 10px;
        max-height: 95vh;
        border: 6px solid #000000;
    }

    .learning-style-header {
        padding: 20px 24px;
        border-width: 6px;
    }

    .quiz-title h2 {
        font-size: 1.8rem;
    }

    .quiz-content {
        padding: 24px;
    }

    .quiz-intro h3 {
        font-size: 1.3rem;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .answer-option {
        padding: 16px 20px;
        border: 3px solid #000000;
    }

    .learning-style-results {
        flex-direction: column;
        align-items: center;
    }

    .style-result {
        width: 100%;
        max-width: 300px;
    }

    .style-traits {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quiz-navigation {
        padding: 20px 24px;
        border-width: 6px;
        flex-direction: column;
        gap: 16px;
    }

    .nav-btn {
        width: 100%;
        box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 480px) {
    .learning-style-modal {
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: 8px solid #000000;
    }

    .quiz-title h2 {
        font-size: 1.5rem;
    }

    .question-text {
        font-size: 1rem;
    }

    .answer-option {
        padding: 14px 16px;
        border: 3px solid #000000;
    }

    .results-title {
        font-size: 1.5rem;
    }

    .style-result {
        padding: 20px;
    }

    .learning-tips {
        padding: 20px;
    }

    .tips-list li {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .trait-item {
        padding: 12px;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    .learning-style-overlay,
    .learning-style-modal,
    .answer-option,
    .style-result,
    .trait-item,
    .nav-btn {
        animation: none;
        transition: none;
    }

    .answer-option:hover,
    .style-result:hover,
    .trait-item:hover,
    .nav-btn:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .learning-style-modal {
        border: 8px solid #000000;
    }

    .answer-option {
        border: 8px solid #000000;
    }

    .style-result {
        border: 8px solid #000000;
    }

    .learning-tips {
        border: 8px solid #000000;
    }

    .trait-item {
        border: 8px solid #000000;
    }

    .nav-btn {
        border: 8px solid #000000;
    }
}

/* Print Styles */
@media print {
    .learning-style-overlay,
    .quiz-close-btn,
    .quiz-navigation,
    .progress-step {
        display: none;
    }

    .learning-style-modal {
        box-shadow: none;
        border: 6px solid #000000;
        border-radius: 0;
    }

    .quiz-progress {
        border-bottom: 6px solid #000000;
    }

    .results-container {
        display: block;
    }
}