/* Interactive Components for Movement Medicine Course */

/* Neurotransmitter Dashboard */
.neurotransmitter-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.chemical-meter {
    background: #F2EFF3;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #D8C7CC;
}

.chemical-name {
    display: block;
    font-weight: 600;
    color: #847D83;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.meter-bar {
    width: 100%;
    height: 20px;
    background: #D8C7CC;
    border-radius: 10px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.meter-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-in-out;
    width: 0%;
}

.chemical-meter[data-chemical="dopamine"] .meter-fill {
    background: linear-gradient(90deg, #10b981, #059669);
}

.chemical-meter[data-chemical="serotonin"] .meter-fill {
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
}

.chemical-meter[data-chemical="norepinephrine"] .meter-fill {
    background: linear-gradient(90deg, #a8edea, #fed6e3);
}

.chemical-value {
    display: block;
    font-weight: 700;
    color: #059669;
    font-size: 1.1rem;
}

/* Exercise Simulator */
.exercise-simulator {
    margin-top: 1.5rem;
}

.exercise-simulator h3 {
    color: #847D83;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.exercise-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.exercise-btn {
    padding: 1rem;
    border: 2px solid #D8C7CC;
    border-radius: 12px;
    background: #F2EFF3;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    color: #847D83;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.exercise-btn:hover {
    border-color: #5FACCF;
    background: #F2EFF3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 172, 207, 0.2);
}

.exercise-btn:active {
    transform: translateY(0);
}

.simulation-results {
    background: #F2EFF3;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #D8C7CC;
    margin-top: 1rem;
}

.simulation-results h4 {
    color: #059669;
    margin-bottom: 1rem;
}

.simulation-results ul {
    list-style: none;
    padding: 0;
}

.simulation-results li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.simulation-results li:last-child {
    border-bottom: none;
}

/* Assessment Form */
.assessment-form {
    background: #F2EFF3;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #D8C7CC;
}

.question-card {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.question-card.active {
    display: block;
}

.question-card h3 {
    color: #847D83;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #D8C7CC;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.answer-option:hover {
    border-color: #5FACCF;
    background: #F2EFF3;
}

.answer-option input[type="radio"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.answer-option span {
    font-weight: 500;
    color: #374151;
}

.assessment-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #D8C7CC;
}

.assessment-results {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.profile-summary {
    color: #059669;
}

/* Mood Tracker */
.mood-tracker {
    background: #F2EFF3;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #D8C7CC;
}

.mood-input h3 {
    color: #847D83;
    margin-bottom: 1rem;
}

.mood-input input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #D8C7CC;
    outline: none;
    margin: 1rem 0;
}

.mood-input input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #5FACCF;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mood-input input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #5FACCF;
    cursor: pointer;
    border: none;
}

.movement-practice {
    margin: 2rem 0;
    text-align: center;
}

.movement-timer {
    background: #F2EFF3;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.start-btn {
    background: #059669;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.start-btn:hover {
    background: #047857;
    transform: translateY(-2px);
}

.timer-display {
    font-size: 3rem;
    font-weight: 700;
    color: #059669;
    margin: 1rem 0;
}

.instruction-text {
    font-size: 1.25rem;
    color: #374151;
    margin-top: 1rem;
}

.mood-change {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.mood-change.positive {
    background: #dcfce7;
    color: #059669;
}

.mood-change.neutral {
    background: #fef3c7;
    color: #d97706;
}

.save-btn {
    background: #5FACCF;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.save-btn:hover {
    background: #4A9BB9;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.meter-fill.animating {
    animation: pulse 0.5s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .neurotransmitter-dashboard {
        grid-template-columns: 1fr;
    }

    .exercise-buttons {
        grid-template-columns: 1fr;
    }

    .assessment-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-btn {
        width: 100%;
    }

    .timer-display {
        font-size: 2rem;
    }
}

/* Accessibility */
.exercise-btn:focus,
.answer-option:focus,
.start-btn:focus,
.save-btn:focus {
    outline: 2px solid #5FACCF;
    outline-offset: 2px;
}

/* Recommendation Styles */
.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.recommendation-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
}

.recommendation-card:hover {
    border-color: #5FACCF;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(95, 172, 207, 0.2);
}

.rec-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.recommendation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.rec-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.rec-section h4 {
    color: #059669;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.rec-section ul {
    list-style: none;
    padding: 0;
}

.rec-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    padding-left: 1.5rem;
}

.rec-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    .exercise-btn {
        border-color: #847D83;
    }

    .answer-option {
        border-color: #847D83;
    }

    .recommendation-card {
        border-color: #847D83;
    }
}