/* Additional styles for the enhanced story mode - Create this new file to avoid modifying the full styles.css */
.chapter-message {
    background: rgba(255, 158, 0, 0.3);
    align-self: center;
    width: 90%;
    padding: 15px 20px;
    margin: 20px 0;
    border-left: 5px solid var(--secondary);
    border-right: 5px solid var(--secondary);
    text-align: center;
    animation: chapterReveal 0.8s ease;
}

.chapter-header h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(255, 158, 0, 0.3);
    margin: 0;
}

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

.npc-message {
    background: rgba(255, 158, 0, 0.2);
    align-self: flex-start;
    border-left: 3px solid var(--secondary);
}

.message-sender {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--secondary);
}

/* Improve readability for long narrative texts */
.narrator-message p {
    line-height: 1.6;
    text-align: justify;
}

/* Additional responsive styles */
@media (max-width: 768px) {
    .chapter-message {
        width: 95%;
        padding: 10px;
    }
    
    .chapter-header h3 {
        font-size: 1.3rem;
    }
}

.saga-header {
    background: linear-gradient(to right, rgba(123, 44, 191, 0.8), rgba(255, 158, 0, 0.8));
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.saga-title {
    font-size: 2rem;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.saga-info {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.saga-progress {
    background: rgba(36, 0, 70, 0.6);
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.episode-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    background: rgba(255, 158, 0, 0.3);
}

.episode-marker.completed {
    background: var(--secondary);
}

.episode-marker.current {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 158, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 158, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 158, 0, 0); }
}

.saga-characters {
    background: rgba(36, 0, 70, 0.6);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

.character-roster {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
}

.roster-character {
    background: rgba(15, 12, 41, 0.6);
    border-radius: 10px;
    padding: 10px;
    min-width: 150px;
    text-align: center;
}

.roster-character img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 2px solid var(--primary);
}

.character-role {
    font-size: 0.8rem;
    color: var(--secondary);
    margin-top: 5px;
}

.saga-episode {
    background: rgba(36, 0, 70, 0.6);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary);
}

.episode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.episode-title {
    font-size: 1.4rem;
    color: var(--secondary);
}

.episode-number {
    background: rgba(255, 158, 0, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.episode-content {
    line-height: 1.6;
}

.revelation-banner {
    background: linear-gradient(to right, rgba(123, 44, 191, 0.4), rgba(255, 158, 0, 0.4));
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    font-weight: bold;
    color: var(--secondary);
    animation: revealFade 1s ease-in;
}

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

.character-interaction {
    background: rgba(36, 0, 70, 0.5);
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
}

.dialogue-line {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.speaker-name {
    color: var(--secondary);
    font-weight: bold;
    min-width: 100px;
}

.dialogue-content {
    flex: 1;
}

.location-exploration {
    background: rgba(36, 0, 70, 0.5);
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
}

.discovery-item {
    background: rgba(255, 158, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.discovery-icon {
    font-size: 1.5rem;
}

.season-finale-banner {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    animation: finaleFade 1s ease-in;
}

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

/* Mobile optimization */
@media (max-width: 768px) {
    .saga-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .character-roster {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .roster-character {
        min-width: 120px;
    }
    
    .episode-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}