/* Detective Academy - Host Dashboard Styles */

/* Host-specific Layout */
.host-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem;
    min-height: 100vh;
}

.host-header {
    background: rgba(41, 37, 36, 0.95);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.host-logo {
    max-width: 200px;
}

.host-title {
    font-size: 2rem;
    background: linear-gradient(to right, #fbbf24, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    flex: 1;
    text-align: center;
}

.session-controls {
    display: flex;
    gap: 0.5rem;
}

/* Host Screens */
.host-screen {
    animation: fadeIn 0.3s ease-in;
}

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

/* Scenario Builder */
.builder-card {
    background: rgba(41, 37, 36, 0.95);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.section-title {
    font-size: 1.75rem;
    color: #fbbf24;
    margin-bottom: 2rem;
    text-align: center;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    color: #f97316;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.form-section select,
.form-section input[type="text"],
.form-section textarea {
    width: 100%;
    background: rgba(68, 64, 60, 0.8);
    border: 1px solid #78716c;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.form-section select:focus,
.form-section input[type="text"]:focus,
.form-section textarea:focus {
    border-color: #fbbf24;
    outline: none;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2);
}

.custom-inputs {
    display: grid;
    gap: 0.75rem;
}

/* Difficulty Options */
.difficulty-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.difficulty-option {
    display: flex;
    align-items: center;
    background: rgba(68, 64, 60, 0.6);
    padding: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.difficulty-option:hover {
    background: rgba(68, 64, 60, 0.8);
    border-color: #78716c;
}

.difficulty-option input[type="radio"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.difficulty-option input[type="radio"]:checked + .difficulty-label {
    color: #fbbf24;
}

.difficulty-label {
    flex: 1;
    color: #d6d3d1;
}

.difficulty-label strong {
    color: white;
    display: block;
    margin-bottom: 0.25rem;
}

/* Voice Settings */
.voice-settings {
    background: rgba(68, 64, 60, 0.6);
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.voice-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.voice-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.voice-toggle span {
    color: #d6d3d1;
    font-weight: 500;
}

.voice-settings label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d6d3d1;
}

/* Generate Button */
.generate-btn {
    width: 100%;
    font-size: 1.25rem;
    padding: 1.25rem;
    position: relative;
}

.generate-btn .spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Host Control Panel */
.control-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    height: calc(100vh - 200px);
}

/* Game Display Section */
.game-display {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    padding-right: 1rem;
}

.case-header {
    background: rgba(41, 37, 36, 0.95);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#case-title {
    color: #fbbf24;
    font-size: 1.5rem;
    margin: 0;
}

.timer-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(68, 64, 60, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: #14b8a6;
    font-weight: 600;
}

.timer-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: transform 0.2s ease;
}

.timer-btn:hover {
    transform: scale(1.2);
}

.case-overview,
.evidence-display,
.suspects-display {
    background: rgba(41, 37, 36, 0.95);
    border-radius: 1rem;
    padding: 1.5rem;
}

.scene-description {
    background: rgba(68, 64, 60, 0.6);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    line-height: 1.6;
    color: #d6d3d1;
}

/* Evidence Grid */
.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.evidence-item {
    background: rgba(68, 64, 60, 0.8);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #57534e;
    transition: all 0.3s ease;
}

.evidence-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: rgba(251, 191, 36, 0.1);
}

.evidence-item h4 {
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.evidence-item p {
    color: #d6d3d1;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Suspects Grid */
.suspects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.suspect-card {
    background: rgba(68, 64, 60, 0.8);
    padding: 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid #57534e;
    transition: all 0.3s ease;
}

.suspect-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: #f97316;
    background-color: rgba(251, 191, 36, 0.1);
}

.suspect-card h4 {
    color: #f97316;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.suspect-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.suspect-info span {
    color: #a8a29e;
}

.suspect-info strong {
    color: #fbbf24;
}

/* Clickable narration indicators */
#case-details p:hover,
.scene-description:hover {
    background-color: rgba(251, 191, 36, 0.1);
    transform: translateY(-1px);
}

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

.investigation-reveal-container.revealing {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 20px 40px rgba(251, 191, 36, 0.4);
    }
    50% {
        box-shadow: 0 25px 50px rgba(251, 191, 36, 0.6);
    }
}

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

.reveal-header h3 {
    color: #292524;
    font-size: 1.5rem;
    margin: 0;
}

.close-reveal {
    background: none;
    border: none;
    color: #292524;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close-reveal:hover {
    opacity: 1;
}

.reveal-content {
    color: #292524;
    font-size: 1.25rem;
    line-height: 1.8;
    font-weight: 500;
}

/* Host Controls Section */
.host-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    padding-left: 1rem;
}

.control-section {
    background: rgba(41, 37, 36, 0.95);
    border-radius: 1rem;
    padding: 1.5rem;
}

.control-section h3 {
    color: #14b8a6;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.control-btn {
    width: 100%;
    background: linear-gradient(to right, #f59e0b, #ea580c);
    color: white;
    font-weight: 600;
    padding: 0.875rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
}

.control-btn.secondary {
    background: rgba(68, 64, 60, 0.8);
    border: 1px solid #78716c;
}

.control-btn.secondary:hover {
    background: rgba(87, 83, 78, 0.8);
}

/* Group Investigation Styling */
.group-investigation-section {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(68, 64, 60, 0.6);
    border-radius: 0.5rem;
}

.group-investigation-section h4 {
    color: #fbbf24;
    margin-bottom: 0.75rem;
}

#group-question {
    width: 100%;
    background: rgba(87, 83, 78, 0.8);
    border: 1px solid #78716c;
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: white;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

#group-question:focus {
    border-color: #fbbf24;
    outline: none;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2);
}

/* Participant Stats */
.participant-stats {
    background: rgba(68, 64, 60, 0.6);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.participant-stats p {
    color: #d6d3d1;
    margin-bottom: 0.5rem;
}

.participant-stats span {
    color: #fbbf24;
    font-weight: 600;
}

/* Theory List */
.theory-list {
    max-height: 200px;
    overflow-y: auto;
    background: rgba(68, 64, 60, 0.6);
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.theory-item {
    background: rgba(87, 83, 78, 0.8);
    padding: 0.75rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #d6d3d1;
}

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

/* Accusation Ceremony */
.ceremony-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.ceremony-title {
    font-size: 2.5rem;
    text-align: center;
    color: #fbbf24;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.ceremony-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.theories-display {
    background: rgba(41, 37, 36, 0.95);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.ceremony-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.theory-card {
    background: rgba(68, 64, 60, 0.9);
    border: 2px solid #57534e;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.theory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: #fbbf24;
}

.theory-card h4 {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.theory-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.theory-details p {
    color: #d6d3d1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.theory-details strong {
    color: #f97316;
}

/* Solution Reveal */
.solution-reveal {
    text-align: center;
    margin: 2rem 0;
}

.reveal-btn {
    font-size: 1.5rem;
    padding: 1.5rem 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
}

.solution-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(251, 191, 36, 0.1));
    border: 2px solid #ef4444;
    border-radius: 1rem;
    padding: 2rem;
    margin: 0 auto;
    max-width: 800px;
    animation: solutionReveal 1s ease-out;
}

@keyframes solutionReveal {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.solution-box h3 {
    color: #ef4444;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.solution-box p {
    color: #d6d3d1;
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Scrollbar Styling */
.game-display::-webkit-scrollbar,
.host-controls::-webkit-scrollbar,
.theory-list::-webkit-scrollbar {
    width: 8px;
}

.game-display::-webkit-scrollbar-track,
.host-controls::-webkit-scrollbar-track,
.theory-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.game-display::-webkit-scrollbar-thumb,
.host-controls::-webkit-scrollbar-thumb,
.theory-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.game-display::-webkit-scrollbar-thumb:hover,
.host-controls::-webkit-scrollbar-thumb:hover,
.theory-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .control-layout {
        grid-template-columns: 1fr 350px;
    }
}

@media (max-width: 1200px) {
    .control-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .host-controls {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding-left: 0;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .host-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .session-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .host-controls {
        grid-template-columns: 1fr;
    }
    
    .evidence-grid,
    .suspects-grid,
    .ceremony-grid {
        grid-template-columns: 1fr;
    }
    
    .ceremony-controls {
        flex-direction: column;
    }
    
    .control-layout {
        gap: 1rem;
    }
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    background: rgba(41, 37, 36, 0.95);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
}

.loading-content .spinner {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
}

.loading-content p {
    color: #fbbf24;
    font-size: 1.125rem;
}

/* Custom Animations */
.pulse {
    animation: pulse 2s infinite;
}

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

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Status Indicators */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.status-badge.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid #fbbf24;
}

.status-badge.closed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

/* Transition Screen Styles */
#transition-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
}

.fullscreen-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease-in;
}

.fullscreen-video.playing {
    opacity: 1;
}

.transition-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    transition: opacity 0.5s ease-out;
}

.transition-overlay.fade-out {
    opacity: 0;
}

.transition-content {
    text-align: center;
    max-width: 600px;
    padding: 3rem;
    background: rgba(41, 37, 36, 0.95);
    border-radius: 1.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.transition-phase {
    animation: fadeIn 0.5s ease-out;
}

.loading-title {
    font-size: 2.5rem;
    color: #fbbf24;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.large-spinner {
    width: 80px;
    height: 80px;
    margin: 2rem auto;
    border: 4px solid rgba(251, 191, 36, 0.2);
    border-top: 4px solid #fbbf24;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #d6d3d1;
    font-size: 1.125rem;
    font-style: italic;
}

/* Ready phase - minimal button at bottom */
#ready-phase {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.start-session-btn {
    font-size: 1.125rem;
    padding: 1rem 2rem;
    background: rgba(251, 191, 36, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.start-session-btn:hover {
    background: rgba(251, 191, 36, 1);
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

/* ===== IMAGE STYLES FOR DALLE INTEGRATION ===== */

/* Victim thumbnail in case overview */
.victim-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 10px;
    cursor: pointer;
    border: 2px solid #fbbf24;
    transition: all 0.3s ease;
    vertical-align: middle;
    display: inline-block;
}

.victim-thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Update victim info to handle inline display */
#victim-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Suspect card updates for images */
.suspect-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.suspect-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #57534e;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.suspect-image:hover {
    transform: scale(1.05);
    border-color: #f97316;
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3);
}

/* Locations section styling */
.locations-display {
    margin-top: 2rem;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.location-card {
    background: rgba(255, 255, 255, 0.5);
    padding: 1.25rem;
    border-radius: 0.5rem;
    border: 2px solid #8b4513;
    transition: all 0.3s ease;
    cursor: pointer;
}

.location-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
    border-color: #8b4513;
    background-color: rgba(255, 255, 255, 0.7);
}

.location-card h4 {
    color: #8b4513;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-family: 'Special Elite', monospace;
    text-transform: uppercase;
}

.location-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-image:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Image Modal Styles */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.image-modal.hidden {
    display: none;
}

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

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

#modal-title {
    color: #fbbf24;
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #fbbf24;
    transform: scale(1.2);
}

/* Loading state for images */
.image-loading {
    background: linear-gradient(90deg, #44403c 0%, #57534e 50%, #44403c 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .suspect-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .suspect-image {
        width: 100px;
        height: 100px;
        margin-top: 10px;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
    
    .location-image {
        height: 150px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        background-color: rgba(0, 0, 0, 0.7);
        width: 40px;
        height: 40px;
        font-size: 2rem;
        border-radius: 50%;
    }
    
    #modal-title {
        font-size: 1.2rem;
        margin: 0.5rem 1rem;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .victim-thumbnail {
        width: 35px;
        height: 35px;
    }
    
    .suspect-image {
        width: 80px;
        height: 80px;
    }
    
    .locations-grid {
        gap: 1rem;
    }
    
    .location-card {
        padding: 1rem;
    }
    
    .location-image {
        height: 120px;
    }
}

#narrator-pause-btn.paused {
    background-color: #22c55e;
}

#narrator-pause-btn.paused:hover {
    background-color: #16a34a;
}

.investigation-board {
    background: rgba(41, 37, 36, 0.95);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.notes-container {
    background: rgba(68, 64, 60, 0.6);
    border-radius: 0.5rem;
    padding: 1rem;
    min-height: 150px;
    max-height: 300px;
    overflow-y: auto;
}

.investigation-note {
    background: rgba(251, 191, 36, 0.1);
    border-left: 3px solid #fbbf24;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}

.investigation-note h4 {
    color: #fbbf24;
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.investigation-note p {
    color: #d6d3d1;
    margin: 0;
}

.empty-state {
    color: #78716c;
    font-style: italic;
    text-align: center;
    margin: 2rem 0;
}

/* Investigation Reveal Popup Styles */
.investigation-reveal-container {
    /* Change from relative to fixed positioning for popup effect */
    position: fixed !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1500;
    
 /* FORCE THE GRADIENT BACKGROUND */
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.95), rgba(249, 115, 22, 0.95)) !important;
    border: 3px solid #fbbf24 !important;
    border-radius: 1rem !important;
    padding: 2rem !important;

    /* Add max width for better readability */
    max-width: 600px;
    width: 90%;
    margin: 0; /* Override any existing margins */
    
    /* Update animation */
    animation: popupReveal 0.5s ease-out;
}

/* Text color fixes - ADD THIS RIGHT HERE */
.investigation-reveal-container .reveal-header h3,
.investigation-reveal-container .reveal-content {
    color: #292524 !important; /* Dark text color */
}

.investigation-reveal-container .close-reveal {
    color: #292524 !important;
}

@keyframes popupReveal {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Investigation Board Note Styling - Make discoveries stand out */
.investigation-note.new-discovery {
    background: rgba(251, 191, 36, 0.2);
    border-left: 4px solid #f97316;
    animation: slideInNote 0.5s ease-out;
}

@keyframes slideInNote {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Timestamp styling */
.note-timestamp {
    display: block;
    font-size: 0.75rem;
    color: #a8a29e;
    margin-top: 0.5rem;
    text-align: right;
}

/* Authentication Modal Styles */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.auth-overlay.hidden {
    display: none;
}

.auth-container {
    background: rgba(41, 37, 36, 0.95);
    border-radius: 1.5rem;
    padding: 3rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(251, 191, 36, 0.2);
    animation: authFadeIn 0.3s ease-out;
    backdrop-filter: blur(20px);
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.auth-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.auth-title {
    color: #fbbf24;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.auth-subtitle {
    color: #d6d3d1;
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-input {
    background: rgba(68, 64, 60, 0.8);
    border: 2px solid rgba(120, 113, 108, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-input:focus {
    border-color: #fbbf24;
    outline: none;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
    background: rgba(68, 64, 60, 0.9);
}

.auth-button {
    background: linear-gradient(to right, #f59e0b, #ea580c);
    color: white;
    font-weight: 600;
    padding: 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.auth-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.3);
}

.auth-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-footer {
    color: #a8a29e;
    font-size: 0.875rem;
    margin-top: 2rem;
}

/* Shake animation for wrong password */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.auth-error {
    animation: shake 0.3s ease-in-out;
}

/* Background images ONLY for auth overlay */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    background-image: url('/images/host-background.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: darken;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .auth-overlay {
        background-image: url('/images/background-mobile.jpg');
    }
    
    .auth-container {
        padding: 2rem;
    }
}

/* Manila Case File Styles */
.case-file-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: calc(100vh - 180px);
    margin: 140px auto 0;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8));
}

.manila-folder {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8d4a1 0%, #d4bc89 100%);
    border-radius: 5px;
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.1),
        0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Folder Tabs */
.folder-tabs {
    position: absolute;
    top: -40px;
    left: 50px;
    display: flex;
    gap: 10px;
    font-family: 'Special Elite', monospace;
}

.folder-tab {
    background: linear-gradient(135deg, #c7a876 0%, #b39766 100%);
    padding: 10px 25px;
    border-radius: 10px 10px 0 0;
    font-size: 1rem;
    color: #2c2c2c;
    box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.folder-tab.active {
    background: linear-gradient(135deg, #e8d4a1 0%, #d4bc89 100%);
    padding: 12px 30px;
    font-size: 1.1rem;
    opacity: 1;
    z-index: 10;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.3);
}

.folder-tab:hover:not(.active) {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Case Content */
.case-file-content {
    position: absolute;
    inset: 20px;
    background: #f5f0e6;
    border-radius: 3px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
    font-family: 'Georgia', serif;
}

/* Tab Content */
.case-tab-content {
    display: none;
    height: 100%;
    overflow-y: auto;
}

.case-tab-content.active {
    display: block;
}

/* Case File Typography */
.case-file-title {
    font-family: 'Special Elite', monospace;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-bottom: 2px solid #8b4513;
    padding-bottom: 10px;
}

.case-file-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.case-file-section-header {
    font-family: 'Special Elite', monospace;
    font-size: 1.3rem;
    color: #8b4513;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #8b4513;
    padding-bottom: 5px;
}

.case-file-content p {
    line-height: 1.6;
    margin-bottom: 10px;
    color: #2c2c2c;
}

.case-file-content strong {
    color: #8b4513;
    font-weight: bold;
}

/* Evidence Grid */
.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.evidence-item {
    background: rgba(255, 255, 255, 0.5);
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #8b4513;
}

.evidence-item h4 {
    font-family: 'Special Elite', monospace;
    color: #8b4513;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Suspects/Persons Grid */
.case-persons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.case-person-card {
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 5px;
    border: 2px solid #8b4513;
}

.case-person-card h4 {
    font-family: 'Special Elite', monospace;
    color: #8b4513;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.case-person-info {
    margin-bottom: 10px;
}

.case-person-info {
    color: #2c2c2c;
}

.case-person-info strong {
    display: inline-block;
    width: 100px;
    margin-right: 8px;
    color: #8b4513;
}

/* Host Controls in Case File */
.case-file-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.case-control-section {
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 5px;
    border: 2px solid #8b4513;
}

.case-control-section h4 {
    font-family: 'Special Elite', monospace;
    color: #8b4513;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.case-control-section .control-btn {
    width: 100%;
    margin-bottom: 10px;
}

/* Manila Folder Responsive Design */
@media (max-width: 768px) {
    .case-file-container {
        height: calc(100vh - 220px);
        margin: 120px auto 0;
    }
    
    .folder-tabs {
        left: 10px;
        gap: 5px;
        top: -35px; 
    }
    
    .folder-tab {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .folder-tab.active {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .case-file-content {
        padding: 20px 15px;
    }
    
    .case-file-title {
        font-size: 1.5rem;
    }
    
    .case-persons-grid,
    .evidence-grid,
    .case-file-controls {
        grid-template-columns: 1fr;
    }
}