/* Birdsong Detective Challenge Styles */
/* Professional, immersive learning experience design */

/* Custom Color Palette for RobinSong Brand */
:root {
    --robin-primary: #2D5016;      /* Deep forest green */
    --robin-secondary: #6B8E23;    /* Olive green */
    --robin-accent: #8FBC8F;       /* Light sage */
    --robin-warm: #D2B48C;         /* Tan/beige */
    --robin-earth: #8B4513;        /* Saddle brown */
    --robin-sky: #87CEEB;          /* Sky blue */
    --robin-sunset: #FF7F50;       /* Coral */
    
    --detective-bg: #F5F5DC;       /* Beige background */
    --detective-card: #FFFFFF;     /* Clean white cards */
    --detective-border: #E6E6FA;   /* Light lavender border */
    --detective-text: #2F4F4F;     /* Dark slate gray */
    --detective-muted: #708090;    /* Slate gray */
    
    --success-natural: #228B22;    /* Forest green */
    --warning-natural: #DAA520;    /* Goldenrod */
    --error-natural: #B22222;      /* Fire brick */
}

/* Modal Styles - Enhanced with natural theme */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 80, 22, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    animation: fadeIn 0.4s ease-out;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: 100vh;
}

.modal-content {
    background: var(--detective-card);
    border-radius: 32px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(45, 80, 22, 0.25);
    animation: slideIn 0.4s ease-out;
    border: 2px solid var(--detective-border);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--robin-primary), var(--robin-secondary), var(--robin-accent));
    border-radius: 24px 24px 0 0;
}

.modal-header {
    background: linear-gradient(135deg, var(--detective-card) 0%, #FAFAFA 100%);
    padding: 2.5rem 2.5rem 1.5rem;
    border-bottom: 1px solid var(--detective-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2.5rem;
    right: 2.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--robin-accent), transparent);
}

.modal-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    color: var(--detective-text);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-header h2::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--robin-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--robin-accent);
}

.modal-close {
    background: var(--detective-bg);
    border: 1px solid var(--detective-border);
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--detective-muted);
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-close:hover {
    background: var(--robin-accent);
    color: var(--robin-primary);
    border-color: var(--robin-secondary);
    transform: scale(1.05);
}

.modal-close::before {
    content: '×';
    font-size: 1.5rem;
    font-weight: 300;
}

.modal-body {
    padding: 2.5rem;
    background: var(--detective-bg);
}

/* Activity Specific Styles - Enhanced Visual Hierarchy */
.activity-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--detective-card);
    border-radius: 20px;
    border: 1px solid var(--detective-border);
    box-shadow: 0 4px 20px rgba(45, 80, 22, 0.08);
}

.activity-intro h3 {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    color: var(--detective-text);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.activity-intro p {
    color: var(--detective-muted);
    line-height: 1.7;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.curriculum-info {
    background: linear-gradient(135deg, var(--detective-card) 0%, #F8F8FF 100%);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2.5rem;
    border: 1px solid var(--detective-border);
    box-shadow: 0 6px 25px rgba(45, 80, 22, 0.1);
    position: relative;
}

.curriculum-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--robin-primary), var(--robin-secondary));
    border-radius: 20px 20px 0 0;
}

.standard-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--robin-primary), var(--robin-secondary));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 12px rgba(45, 80, 22, 0.3);
    letter-spacing: 0.02em;
}

.standard-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    margin-right: 0.5rem;
    opacity: 0.8;
}

.objective-text {
    color: var(--detective-muted);
    line-height: 1.7;
    font-size: 1.05rem;
    margin: 0;
}

.detective-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.detective-intro h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.detective-intro p {
    color: var(--text-muted-color);
    line-height: 1.6;
}

.detective-mission {
    background: var(--background-color);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.mission-progress {
    margin-bottom: 2rem;
}

/* Enhanced Progress Indicators */
.investigation-progress {
    background: var(--detective-card);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid var(--detective-border);
    box-shadow: 0 4px 20px rgba(45, 80, 22, 0.08);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 1rem 0;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--robin-accent) 0%, var(--robin-accent) var(--progress, 0%), var(--detective-border) var(--progress, 0%), var(--detective-border) 100%);
    border-radius: 2px;
    transform: translateY(-50%);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.1);
}

.progress-steps::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--robin-primary), var(--robin-secondary));
    border-radius: 1px;
    transform: translateY(-50%);
    z-index: 0;
    opacity: 0.3;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.progress-node {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--detective-card);
    border: 3px solid var(--detective-border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.1);
    transition: all 0.4s ease;
    margin-bottom: 0.75rem;
    position: relative;
}

.progress-node::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--detective-muted);
    transition: all 0.3s ease;
}

.progress-node::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--robin-primary), var(--robin-secondary));
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.progress-node.active {
    background: var(--robin-primary);
    border-color: var(--robin-secondary);
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.3);
}

.progress-node.active::before {
    background: white;
    transform: scale(1.3);
}

.progress-node.active::after {
    opacity: 0.2;
    animation: pulse 2s infinite;
}

.progress-node.completed {
    background: var(--success-natural);
    border-color: var(--success-natural);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(34, 139, 34, 0.25);
}

.progress-node.completed::before {
    content: '✓';
    background: none;
    color: white;
    font-size: 16px;
    font-weight: 600;
    width: auto;
    height: auto;
}

.progress-node.completed::after {
    opacity: 0.3;
    background: linear-gradient(45deg, var(--success-natural), #32CD32);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.1); opacity: 0.4; }
}

.step h5 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--detective-text);
    text-align: center;
}

.step p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--detective-muted);
    text-align: center;
    line-height: 1.3;
}

.mystery-sound-section {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.sound-instructions {
    margin-bottom: 1.5rem;
}

.sound-instructions h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.sound-instructions p {
    color: var(--text-muted-color);
    line-height: 1.5;
}

.audio-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Enhanced Audio Player Controls */
.audio-player {
    background: var(--detective-card);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--detective-border);
    box-shadow: 0 4px 20px rgba(45, 80, 22, 0.08);
    margin-bottom: 2rem;
}

.waveform-visualization {
    height: 80px;
    background: linear-gradient(135deg, var(--detective-bg) 0%, #F0F8FF 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--detective-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.waveform-visualization::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--robin-accent), var(--robin-secondary), var(--robin-accent));
    border-radius: 1px;
    transform: translateY(-50%);
    animation: wave 2s ease-in-out infinite;
}

.waveform-bars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 1rem;
}

.waveform-bar {
    width: 3px;
    background: linear-gradient(180deg, var(--robin-primary), var(--robin-secondary));
    border-radius: 2px;
    transition: all 0.3s ease;
    animation: waveform-pulse 2s infinite ease-in-out;
}

.waveform-bar:nth-child(odd) {
    height: 40%;
    animation-delay: 0.1s;
}

.waveform-bar:nth-child(even) {
    height: 60%;
    animation-delay: 0.2s;
}

.waveform-bar:nth-child(3n) {
    height: 80%;
    animation-delay: 0.3s;
}

@keyframes wave {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes waveform-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.playback-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.play-mystery-sound, .replay-mystery-sound {
    background: linear-gradient(135deg, var(--robin-primary), var(--robin-secondary));
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.25);
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.play-mystery-sound::before, .replay-mystery-sound::before {
    content: '';
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.play-mystery-sound::after, .replay-mystery-sound::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.play-mystery-sound:hover, .replay-mystery-sound:hover {
    background: linear-gradient(135deg, var(--robin-secondary), var(--robin-primary));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.35);
}

.play-mystery-sound:hover::before, .replay-mystery-sound:hover::before {
    transform: scale(1.1);
}

.play-mystery-sound:hover::after, .replay-mystery-sound:hover::after {
    width: 100%;
    height: 100%;
}

.playback-time {
    color: var(--detective-muted);
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--detective-bg);
    padding: 0.75rem 1.25rem;
    border-radius: 20px;
    border: 1px solid var(--detective-border);
}

/* Enhanced Hypothesis Form */
.hypothesis-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 3rem;
    border-radius: 24px;
    margin-bottom: 2.5rem;
    border: 2px solid var(--detective-border);
    box-shadow: 0 12px 40px rgba(45, 80, 22, 0.12);
    position: relative;
    backdrop-filter: blur(10px);
}

.hypothesis-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--robin-accent), var(--robin-secondary));
    border-radius: 20px 20px 0 0;
}

.hypothesis-instructions {
    margin-bottom: 2rem;
}

.hypothesis-instructions h5 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--detective-text);
    letter-spacing: -0.01em;
}

.hypothesis-instructions p {
    color: var(--detective-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

.hypothesis-input {
    width: 100%;
    min-height: 140px;
    padding: 2rem;
    border: 3px solid var(--detective-border);
    border-radius: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: inherit;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    box-shadow: inset 0 2px 8px rgba(45, 80, 22, 0.05);
    color: var(--detective-text);
}

.hypothesis-input:focus {
    outline: none;
    border-color: var(--robin-primary);
    box-shadow: 0 0 0 4px rgba(45, 80, 22, 0.15), inset 0 2px 8px rgba(45, 80, 22, 0.05);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transform: translateY(-2px);
}

.hypothesis-input::placeholder {
    color: var(--detective-muted);
    opacity: 0.7;
}

.detective-btn {
    background: linear-gradient(135deg, var(--robin-primary) 0%, var(--robin-secondary) 100%);
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    box-shadow: 0 12px 35px rgba(45, 80, 22, 0.25);
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.detective-btn:hover {
    background: linear-gradient(135deg, var(--robin-secondary) 0%, var(--robin-primary) 100%);
    transform: translateY(-4px);
    box-shadow: 0 16px 45px rgba(45, 80, 22, 0.35);
}

.detective-btn::after {
    content: '→';
    transition: transform 0.3s ease;
}

.detective-btn:hover::after {
    transform: translateX(3px);
}

/* Special styling for Continue Investigation button */
.continue-btn {
    background: linear-gradient(135deg, #2D5016 0%, #4A7C59 50%, #6B8E23 100%);
    color: white;
    border: none;
    padding: 1.75rem 3.5rem;
    border-radius: 35px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 2rem;
    box-shadow: 0 15px 40px rgba(45, 80, 22, 0.3);
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.continue-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.continue-btn:hover::before {
    left: 100%;
}

.continue-btn:hover {
    background: linear-gradient(135deg, #4A7C59 0%, #6B8E23 50%, #8FBC8F 100%);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(45, 80, 22, 0.4);
}

.hypothesis-feedback {
    background: var(--background-color);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.hypothesis-feedback h6 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hypothesis-feedback p {
    color: var(--text-muted-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Investigation Phase Styles */
.investigation-phase {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.investigation-phase h6 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.investigation-phase p {
    color: var(--text-muted-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.investigation-tools {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.investigate-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    min-width: 200px;
}

.investigate-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.investigation-results {
    margin-top: 2rem;
}

/* Sound Comparison Styles */
.sound-comparison {
    margin-top: 1.5rem;
}

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

.sound-option {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition);
}

.sound-option:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.sound-option h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.sound-option button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 1rem;
}

.sound-option button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.sound-option p {
    color: var(--text-muted-color);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.comparison-conclusion {
    background: var(--background-color);
    padding: 2rem;
    border-radius: var(--radius);
    margin-top: 2rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.comparison-conclusion p {
    color: var(--text-muted-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.conclusion-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.conclusion-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Answer Reveal Styles */
.answer-reveal {
    background: var(--background-color);
    padding: 2rem;
    border-radius: var(--radius);
    margin-top: 2rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.answer-reveal h6 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.answer-explanation {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.answer-explanation p {
    color: var(--text-muted-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.answer-explanation ul {
    color: var(--text-muted-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.answer-explanation li {
    margin-bottom: 0.5rem;
}

.final-report-btn {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.final-report-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

/* Bird Image Styles */
.bird-image-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
}

.bird-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px; /* Rounded rectangle */
    border: 3px solid #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all var(--transition);
    background: #f8f9fa;
    display: block;
    margin: 0 auto;
}

.bird-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-color: #4CAF50;
}

.answer-bird-image {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.bird-image-large {
    width: 160px;
    height: 160px;
    object-fit: cover;
    object-position: center;
    border-radius: 20px; /* Larger rounded rectangle */
    border: 4px solid #4CAF50;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.4);
    transition: all var(--transition);
    background: #ffffff;
    display: block;
    margin: 0 auto;
}

.bird-image-large:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(76, 175, 80, 0.5);
    border-color: #45a049;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

/* Responsive design for bird images */
@media (max-width: 768px) {
    .bird-image {
        width: 100px;
        height: 100px;
    }
    
    .bird-image-large {
        width: 140px;
        height: 140px;
    }
    
    .sound-option {
        padding: 1rem;
    }
    
    .sound-option h5 {
        font-size: 0.95rem;
    }
    
    .sound-option button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .bird-image {
        width: 90px;
        height: 90px;
    }
    
    .bird-image-large {
        width: 120px;
        height: 120px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}
/* Enhanced Modal Title Styles */
.modal-title-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.title-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--robin-primary), var(--robin-secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.25);
}

.title-text h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--detective-text);
    letter-spacing: -0.02em;
}

.title-subtitle {
    margin: 0.25rem 0 0 0;
    color: var(--detective-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Activity Hero Section */
.activity-hero {
    background: linear-gradient(135deg, var(--detective-card) 0%, #F8F9FA 100%);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    border: 1px solid var(--detective-border);
    box-shadow: 0 8px 32px rgba(45, 80, 22, 0.1);
    position: relative;
    overflow: hidden;
}

.activity-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--robin-primary), var(--robin-secondary), var(--robin-accent));
    border-radius: 24px 24px 0 0;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--robin-primary), var(--robin-secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.3);
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--detective-text);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--detective-muted);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-badge {
    background: linear-gradient(135deg, var(--robin-accent), var(--robin-warm));
    color: var(--robin-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 3px 12px rgba(45, 80, 22, 0.15);
}

/* Investigation Overview */
.investigation-overview {
    background: var(--detective-card);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border: 1px solid var(--detective-border);
    box-shadow: 0 4px 20px rgba(45, 80, 22, 0.08);
}

.overview-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--detective-text);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mission-story {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.story-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--detective-border);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.story-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.story-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--detective-text);
    margin-bottom: 0.5rem;
}

.story-content p {
    color: var(--detective-muted);
    line-height: 1.6;
    margin: 0;
}

/* Force visibility for Investigation Mission section - Critical Fix */
.birdsong-detective-activity .investigation-overview * {
    visibility: visible !important;
    opacity: 1 !important;
}

.birdsong-detective-activity .investigation-overview h3,
.birdsong-detective-activity .investigation-overview .overview-title {
    color: #2F4F4F !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
}

.birdsong-detective-activity .investigation-overview h4,
.birdsong-detective-activity .investigation-overview .story-content h4 {
    color: #2F4F4F !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

.birdsong-detective-activity .investigation-overview p,
.birdsong-detective-activity .investigation-overview .story-content p {
    color: #708090 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

.birdsong-detective-activity .investigation-overview {
    background: #ffffff !important;
}

/* Scientific Method Section */
.scientific-method {
    background: var(--detective-card);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border: 1px solid var(--detective-border);
    box-shadow: 0 4px 20px rgba(45, 80, 22, 0.08);
}

.method-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--detective-text);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.method-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.method-step {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--detective-border);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.method-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.15);
    border-color: var(--robin-accent);
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--robin-primary), var(--robin-secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 auto 1rem;
    box-shadow: 0 3px 12px rgba(45, 80, 22, 0.25);
}

.step-icon {
    width: 48px;
    height: 48px;
    background: var(--detective-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--robin-primary);
    border: 2px solid var(--detective-border);
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--detective-text);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--detective-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Activity Actions */
.activity-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.primary-action-btn {
    background: linear-gradient(135deg, var(--robin-primary), var(--robin-secondary));
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.25);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.02em;
}

.primary-action-btn:hover {
    background: linear-gradient(135deg, var(--robin-secondary), var(--robin-primary));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.35);
}

.secondary-action-btn {
    background: var(--detective-card);
    color: var(--robin-primary);
    border: 2px solid var(--robin-primary);
    padding: 1.25rem 2.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.02em;
}

.secondary-action-btn:hover {
    background: var(--robin-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.35);
}

/* Investigation Interface */
.investigation-interface {
    background: var(--detective-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--detective-border);
}

.investigation-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--detective-border);
}

.investigation-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--detective-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.investigation-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--detective-border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--robin-primary), var(--robin-secondary));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    color: var(--detective-muted);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Investigation Steps */
.investigation-step {
    background: var(--detective-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--detective-border);
    margin-bottom: 1.5rem;
}

.step-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--detective-border);
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-icon {
    width: 48px;
    height: 48px;
    background: var(--detective-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--detective-muted);
    border: 2px solid var(--detective-border);
    transition: all 0.3s ease;
}

.step-icon.active {
    background: linear-gradient(135deg, var(--robin-primary), var(--robin-secondary));
    color: white;
    border-color: var(--robin-secondary);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.25);
}

.step-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--detective-text);
    margin-bottom: 0.5rem;
}

.step-info p {
    color: var(--detective-muted);
    line-height: 1.6;
    margin: 0;
}

/* Audio Player */
.audio-player {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--detective-border);
    margin-bottom: 2rem;
}

.audio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.audio-header h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--detective-text);
    margin: 0;
}

.audio-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #856404;
}

.status-indicator {
    font-size: 1rem;
}

.waveform-container {
    margin-bottom: 1.5rem;
}

.waveform-visualization {
    height: 100px;
    background: linear-gradient(135deg, var(--detective-bg) 0%, #F0F8FF 100%);
    border-radius: 12px;
    border: 1px solid var(--detective-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.waveform-bars {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    height: 100%;
    padding: 0 2rem;
}

.waveform-bar {
    width: 4px;
    background: linear-gradient(180deg, var(--robin-primary), var(--robin-secondary));
    border-radius: 2px;
    transition: all 0.3s ease;
    animation: waveform-pulse 2s infinite ease-in-out;
}

.waveform-bar:nth-child(odd) {
    height: 30%;
    animation-delay: 0.1s;
}

.waveform-bar:nth-child(even) {
    height: 50%;
    animation-delay: 0.2s;
}

.waveform-bar:nth-child(3n) {
    height: 70%;
    animation-delay: 0.3s;
}

.playback-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.primary-audio-btn {
    background: linear-gradient(135deg, var(--robin-primary), var(--robin-secondary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.25);
}

.primary-audio-btn:hover {
    background: linear-gradient(135deg, var(--robin-secondary), var(--robin-primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.35);
}

.playback-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.playback-time {
    color: var(--detective-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.playback-hint {
    color: var(--robin-accent);
    font-size: 0.8rem;
    font-style: italic;
}

/* Observation Form */
.observation-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--detective-border);
}

.observation-form h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--detective-text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.observation-prompts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.prompt-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.prompt-item label {
    font-weight: 600;
    color: var(--detective-text);
    font-size: 0.95rem;
}

.prompt-item input {
    padding: 1rem;
    border: 2px solid var(--detective-border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.prompt-item input:focus {
    outline: none;
    border-color: var(--robin-primary);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

/* Hypothesis Form */
.hypothesis-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--detective-border);
}

.hypothesis-instructions {
    background: var(--detective-bg);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--robin-accent);
}

.hypothesis-instructions p {
    color: var(--detective-muted);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.hypothesis-input-container {
    margin-bottom: 2rem;
}

.hypothesis-input-container label {
    display: block;
    font-weight: 600;
    color: var(--detective-text);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.hypothesis-input-container textarea {
    width: 100%;
    min-height: 120px;
    padding: 1.5rem;
    border: 2px solid var(--detective-border);
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.hypothesis-input-container textarea:focus {
    outline: none;
    border-color: var(--robin-primary);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.hypothesis-tips {
    background: #e8f5e8;
    padding: 1.25rem;
    border-radius: 12px;
    margin-top: 1rem;
    border-left: 4px solid var(--success-natural);
}

.hypothesis-tips h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--success-natural);
    margin-bottom: 0.75rem;
}

.hypothesis-tips ul {
    margin: 0;
    padding-left: 1.25rem;
}

.hypothesis-tips li {
    color: var(--detective-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

/* Comparison Section */
.comparison-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--detective-border);
}

.comparison-section h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--detective-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comparison-section > p {
    color: var(--detective-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

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

.sound-option {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid var(--detective-border);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.05);
}

.sound-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.15);
    border-color: var(--robin-accent);
}

.sound-option h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--detective-text);
    margin: 1rem 0;
}

.play-comparison-sound {
    background: var(--robin-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto 1rem;
}

.play-comparison-sound:hover {
    background: var(--robin-secondary);
    transform: translateY(-2px);
}

.sound-option p {
    color: var(--detective-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.select-bird-btn {
    background: linear-gradient(135deg, var(--success-natural), #32CD32);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.select-bird-btn:hover {
    background: linear-gradient(135deg, #32CD32, var(--success-natural));
    transform: translateY(-2px);
}

.comparison-conclusion {
    background: var(--detective-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--detective-border);
    text-align: center;
}

.comparison-conclusion h6 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--detective-text);
    margin-bottom: 1.5rem;
}

.selected-bird {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--success-natural);
    margin-bottom: 1.5rem;
}

.selected-bird h6 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--success-natural);
    margin: 0;
}

.selected-bird p {
    color: var(--detective-muted);
    margin: 0;
}

/* Analysis Section */
.analysis-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--detective-border);
}

.evidence-summary {
    margin-bottom: 2rem;
}

.evidence-summary h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--detective-text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.evidence-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.evidence-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--detective-border);
}

.evidence-item h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--detective-text);
    margin-bottom: 0.75rem;
}

.evidence-item p {
    color: var(--detective-muted);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.evidence-item p:last-child {
    margin-bottom: 0;
}

.conclusion-form {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--detective-border);
}

.conclusion-form h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--detective-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conclusion-form label {
    display: block;
    font-weight: 600;
    color: var(--detective-text);
    margin-bottom: 0.75rem;
}

.conclusion-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 1.25rem;
    border: 2px solid var(--detective-border);
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.conclusion-form textarea:focus {
    outline: none;
    border-color: var(--robin-primary);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

/* Final Report */
.final-report {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--detective-border);
}

.report-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--detective-border);
}

.report-header h4 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--detective-text);
    margin-bottom: 1rem;
}

.report-status {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    display: inline-block;
}

.report-status.correct {
    background: linear-gradient(135deg, var(--success-natural), #32CD32);
    color: white;
}

.report-status.incorrect {
    background: linear-gradient(135deg, var(--warning-natural), #FFA500);
    color: white;
}

.report-content {
    margin-bottom: 2.5rem;
}

.mystery-reveal {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    border: 2px solid var(--robin-accent);
}

.mystery-reveal h5 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--detective-text);
    margin-bottom: 1.5rem;
}

.revealed-bird {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.revealed-bird h6 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--robin-primary);
    margin: 0;
}

.revealed-bird p {
    color: var(--detective-muted);
    line-height: 1.6;
    margin: 0;
}

.your-investigation {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--detective-border);
    margin-bottom: 2rem;
}

.your-investigation h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--detective-text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.investigation-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-item {
    padding: 1rem;
    background: var(--detective-bg);
    border-radius: 8px;
    border-left: 4px solid var(--robin-accent);
}

.summary-item strong {
    color: var(--detective-text);
}

.learning-reflection {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--detective-border);
}

.learning-reflection h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--detective-text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.learning-reflection ul {
    margin: 0;
    padding-left: 1.5rem;
}

.learning-reflection li {
    color: var(--detective-muted);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.report-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .mission-story {
        grid-template-columns: 1fr;
    }
    
    .method-steps {
        grid-template-columns: 1fr;
    }
    
    .activity-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .primary-action-btn,
    .secondary-action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .investigation-progress {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .step-indicator {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .playback-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .report-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .activity-hero {
        padding: 2rem 1rem;
    }
    
    .investigation-overview,
    .scientific-method {
        padding: 1.5rem;
    }
    
    .investigation-step {
        padding: 1.5rem;
    }
    
    .audio-player {
        padding: 1.5rem;
    }
    
    .observation-form,
    .hypothesis-form,
    .comparison-section,
    .analysis-section {
        padding: 1.5rem;
    }
    
    .final-report {
        padding: 1.5rem;
    }
}

/* Cache bust: Tue Sep 23 19:56:59 EDT 2025 */
