/* ============================================
   INTERACTIVE ELEMENTS - TERMINAL
   ============================================ */

.terminal-section .section-header {
    margin-bottom: var(--spacing-md);
}

.terminal-container {
    max-width: 800px;
    margin: var(--spacing-md) auto 0;
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    font-family: 'Courier New', Courier, monospace;
}

.terminal-header {
    background-color: #333;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.t-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.t-red {
    background-color: #ff5f56;
}

.t-yellow {
    background-color: #ffbd2e;
}

.t-green {
    background-color: #27c93f;
}

.terminal-title {
    color: #999;
    font-size: 0.8rem;
    text-transform: lowercase;
}

.terminal-body {
    padding: 20px;
    height: 400px;
    overflow-y: auto;
    color: #0f0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.terminal-output {
    margin-bottom: 10px;
}

.terminal-line {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.prompt {
    color: #f39c12;
    white-space: nowrap;
}

.terminal-input-line {
    display: flex;
    gap: 8px;
    align-items: center;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    outline: none;
    font-family: inherit;
    font-size: inherit;
}

.command-response {
    color: #ecf0f1;
    margin-bottom: 10px;
}

.command-error {
    color: #e74c3c;
}

.command-success {
    color: #2ecc71;
}

.highlight {
    color: #f1c40f;
}

/* ============================================
   INTERACTIVE ELEMENTS - QUIZ
   ============================================ */
.quiz-section {
    background: var(--color-background-white);
}

/* Quiz Container - Glassmorphism Refresh */
.quiz-container {
    max-width: 650px;
    margin: var(--spacing-lg) auto 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

/* Dark Mode Overrides for Quiz */
body.dark-mode .quiz-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

body.dark-mode .quiz-option {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .quiz-option:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .result-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Progress Bar */
.quiz-progress-container {
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    margin-bottom: 2.5rem;
    width: 100%;
}

.quiz-progress-bar {
    height: 100%;
    background: var(--color-primary-yellow);
    border-radius: 3px;
    width: 33%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-step {
    display: none;
    animation: quizSlideIn 0.5s ease;
}

.quiz-step.active {
    display: block;
}

.quiz-question {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text-black);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    font-family: var(--font-heading);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.quiz-option {
    background-color: var(--color-background-white);
    border: 1.5px solid rgba(0, 0, 0, 0.03);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-align: left;
    color: var(--color-text-black);
}

.quiz-option svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary-yellow);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.quiz-option:hover {
    border-color: var(--color-primary-yellow);
    transform: translateX(5px);
    background-color: #fffaf0;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.08);
}

.quiz-option:hover svg {
    transform: scale(1.15) rotate(5deg);
}

.quiz-option.selected {
    background-color: var(--color-primary-yellow);
    color: var(--color-primary-dark);
    border-color: var(--color-primary-yellow);
}

.quiz-result {
    text-align: center;
}

.result-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    margin-top: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
}

.result-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--color-text-black);
}

@keyframes quizSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   INTERACTIVE ELEMENTS - CHATBOT
   ============================================ */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.chatbot-button {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.chatbot-button:hover {
    transform: scale(1.1);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    height: 450px;
    background-color: var(--color-background-white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.chatbot-window.active {
    display: flex;
}

.chatbot-header {
    background-color: var(--color-primary-yellow);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-primary-dark);
}

.chatbot-header h3 {
    font-size: 1rem;
    margin: 0;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bot-msg,
.user-msg {
    padding: 10px 12px;
    border-radius: 12px;
    max-width: 85%;
    font-size: 0.9rem;
}

.bot-msg {
    background-color: var(--color-background-light);
    align-self: flex-start;
}

.user-msg {
    background-color: var(--color-primary-yellow);
    color: var(--color-primary-dark);
    align-self: flex-end;
}

.chatbot-suggestions {
    padding: 0 15px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background-color: var(--color-background-white);
}

.suggestion-chip {
    background-color: var(--color-background-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    color: var(--color-text-grey);
}

.suggestion-chip:hover {
    background-color: var(--color-primary-yellow);
    color: var(--color-primary-dark);
    border-color: var(--color-primary-yellow);
    transform: translateY(-2px);
}

body.dark-mode .chatbot-suggestions {
    background-color: #1a1a1a;
}

body.dark-mode .suggestion-chip {
    background-color: #333;
    border-color: rgba(255, 255, 255, 0.1);
    color: #ccc;
}

.chatbot-input-area {
    padding: 15px;
    border-top: 1px solid var(--color-background-light);
    display: flex;
    gap: 10px;
}

.chatbot-input {
    flex: 1;
    border: 1px solid var(--color-background-light);
    padding: 8px 12px;
    border-radius: 20px;
    outline: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}