/**
 * NPC DRAMA & CONFLICT UI STYLES
 * Beautiful, emotional scenes for NPC conflicts and jealousy
 */

/* ============= DRAMA MODAL OVERLAY ============= */

.drama-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(139, 0, 0, 0.95) 0%,
        rgba(30, 10, 40, 0.98) 50%,
        rgba(0, 0, 0, 0.95) 100%
    );
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
    overflow-y: auto;
    animation: dramaticFadeIn 0.8s ease-out;
}

@keyframes dramaticFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(15px);
    }
}

/* ============= DRAMA MODAL ============= */

.drama-modal {
    max-width: 700px;
    width: 100%;
    background: linear-gradient(135deg,
        rgba(60, 20, 30, 0.95) 0%,
        rgba(40, 10, 30, 0.98) 100%
    );
    border: 3px solid rgba(220, 20, 60, 0.6);
    border-radius: clamp(16px, 3vw, 28px);
    padding: clamp(2rem, 5vw, 3.5rem);
    box-shadow: 0 30px 80px rgba(220, 20, 60, 0.5),
                0 0 100px rgba(220, 20, 60, 0.3) inset;
    animation: dramaticSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dramaticSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px) rotate(-2deg);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

/* ============= DRAMA SCENES ============= */

.drama-scene h3 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 0 20px rgba(220, 20, 60, 0.8);
}

.drama-scene.caught-lying h3 {
    color: #e74c3c;
}

.drama-scene.two-timing h3 {
    color: #e91e63;
}

.drama-scene.moral-conflict h3 {
    background: linear-gradient(135deg, #f39c12, #9b59b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.drama-scene.jealousy h3 {
    color: #27ae60;
}

.drama-scene.betrayal h3 {
    color: #c0392b;
}

.drama-scene > p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* ============= DRAMA DIALOGUE ============= */

.drama-dialogue {
    background: rgba(0, 0, 0, 0.5);
    border-left: 4px solid #e74c3c;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    margin: clamp(1.5rem, 3vw, 2rem) 0;
    border-radius: clamp(8px, 1.5vw, 12px);
}

.drama-quote,
.drama-response,
.drama-erana,
.drama-katrina {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
}

.drama-quote::before,
.drama-response::before,
.drama-erana::before,
.drama-katrina::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 2.5rem;
    color: #e74c3c;
    opacity: 0.5;
    font-family: Georgia, serif;
}

.drama-quote:last-child,
.drama-response:last-child,
.drama-erana:last-child,
.drama-katrina:last-child {
    margin-bottom: 0;
}

.drama-erana {
    border-left: 3px solid #f39c12;
    padding-left: 1.5rem;
}

.drama-erana::before {
    color: #f39c12;
}

.drama-katrina {
    border-left: 3px solid #9b59b6;
    padding-left: 1.5rem;
}

.drama-katrina::before {
    color: #9b59b6;
}

/* ============= DRAMA CONSEQUENCES ============= */

.drama-consequences {
    background: rgba(231, 76, 60, 0.15);
    border: 2px solid rgba(231, 76, 60, 0.4);
    border-radius: clamp(8px, 1.5vw, 12px);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    margin: clamp(1.5rem, 3vw, 2rem) 0;
}

.drama-consequences p {
    font-size: clamp(0.95rem, 2.3vw, 1.1rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.drama-consequences p:last-child {
    margin-bottom: 0;
}

.drama-consequences strong {
    color: #e74c3c;
    font-weight: 700;
}

/* ============= DRAMA CHOICES ============= */

.drama-choices {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 2vw, 1rem);
    margin-top: clamp(1.5rem, 3vw, 2rem);
}

.drama-choices button {
    width: 100%;
    padding: clamp(0.875rem, 2.5vw, 1.25rem) clamp(1.5rem, 3vw, 2rem);
    font-size: clamp(0.95rem, 2.3vw, 1.1rem);
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg,
        rgba(231, 76, 60, 0.8) 0%,
        rgba(192, 57, 43, 0.9) 100%
    );
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: clamp(8px, 1.5vw, 12px);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    position: relative;
    overflow: hidden;
}

.drama-choices button::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;
}

.drama-choices button:hover::before {
    left: 100%;
}

.drama-choices button:hover {
    background: linear-gradient(135deg,
        rgba(231, 76, 60, 1) 0%,
        rgba(192, 57, 43, 1) 100%
    );
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.5);
    transform: translateY(-2px);
}

.drama-choices button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

.drama-choices button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(100, 100, 100, 0.5);
}

.drama-choices button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ============= RESOLUTION BANNER ============= */

.drama-resolution-banner {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    max-width: 600px;
    width: 90%;
    background: linear-gradient(135deg,
        rgba(231, 76, 60, 0.95) 0%,
        rgba(192, 57, 43, 0.95) 100%
    );
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 40px rgba(231, 76, 60, 0.6);
    animation: slideDownBanner 0.5s ease-out;
}

@keyframes slideDownBanner {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.drama-resolution-banner p {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: #fff;
    text-align: center;
    margin: 0;
    font-weight: 600;
    line-height: 1.6;
}

/* ============= MOBILE OPTIMIZATIONS ============= */

@media (max-width: 768px) {
    .drama-modal {
        padding: clamp(1.5rem, 5vw, 2rem);
    }

    .drama-choices {
        gap: 0.75rem;
    }

    .drama-choices button {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }

    .drama-resolution-banner {
        top: 1rem;
        width: 95%;
        padding: 1.25rem 1.5rem;
    }
}

/* ============= ACCESSIBILITY ============= */

@media (prefers-reduced-motion: reduce) {
    .drama-modal-overlay,
    .drama-modal,
    .drama-resolution-banner,
    .drama-choices button::before {
        animation: none;
        transition: none;
    }

    .drama-choices button:hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .drama-modal {
        border-width: 4px;
    }

    .drama-choices button {
        border-width: 3px;
    }
}

/* ============= SPECIAL ANIMATIONS ============= */

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.05);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.02);
    }
}

.drama-scene.two-timing {
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.drama-scene.moral-conflict h3 {
    animation: flicker 3s ease-in-out infinite;
}
