/* Poetic Response Formatting - Emily Dickinson, Robert Frost, Khalil Gibran Style */

.poetic-response {
    font-family: 'Philosopher', 'Georgia', serif;
    line-height: 1.8;
    color: #e2e8f0;
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.9), rgba(25, 25, 50, 0.95));
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #a855f7;
    position: relative;
    overflow: hidden;
    margin: 1.5rem 0;
}

.poetic-response::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.poetic-content {
    position: relative;
    z-index: 1;
}

/* Stanza formatting */
.poetic-stanza {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(168, 85, 247, 0.3);
}

.poetic-stanza:last-child {
    margin-bottom: 0;
}

/* Line formatting */
.poetic-line {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.poetic-line:last-child {
    margin-bottom: 0;
}

/* Indented lines (Dickinson style) */
.poetic-line.indented {
    margin-left: 2rem;
    font-style: italic;
    opacity: 0.9;
}

/* Em dash styling (Dickinson signature) */
.poetic-line em-dash {
    color: #c084fc;
    font-weight: 500;
    margin: 0 0.2rem;
}

/* Emphasized spiritual words */
.spiritual-emphasis {
    color: #fbbf24;
    font-weight: 500;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

/* Meditation section styling */
.meditation-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(15, 15, 30, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.meditation-title {
    color: #c084fc;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-weight: 600;
}

.meditation-line {
    font-style: italic;
    color: #cbd5e1;
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(196, 132, 252, 0.3);
}

/* Frost-style nature imagery */
.nature-imagery {
    color: #86efac;
    font-weight: 400;
}

/* Gibran-style wisdom highlights */
.wisdom-highlight {
    color: #fcd34d;
    font-weight: 500;
    position: relative;
}

.wisdom-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #fcd34d, transparent);
}

/* Fragment styling (short, impactful lines) */
.poetic-fragment {
    font-size: 1.2rem;
    font-weight: 400;
    color: #f1f5f9;
    margin: 1rem 0;
    text-align: center;
    letter-spacing: 0.05em;
}

/* Breathing space between thoughts */
.breath-space {
    height: 1.5rem;
}

/* Response type indicators */
.response-type-indicator {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

/* Animation for poetic reveal */
.poetic-reveal {
    animation: poeticFadeIn 1.2s ease-out;
}

@keyframes poeticFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Line-by-line reveal animation */
.line-reveal {
    opacity: 0;
    animation: lineReveal 0.8s ease-out forwards;
}

.line-reveal:nth-child(1) { animation-delay: 0.2s; }
.line-reveal:nth-child(2) { animation-delay: 0.4s; }
.line-reveal:nth-child(3) { animation-delay: 0.6s; }
.line-reveal:nth-child(4) { animation-delay: 0.8s; }

@keyframes lineReveal {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Quote marks for profound statements */
.profound-quote {
    position: relative;
    font-style: italic;
    color: #e2e8f0;
    margin: 1rem 0;
    padding: 0 2rem;
}

.profound-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.2rem;
    font-size: 2rem;
    color: #a855f7;
    font-family: serif;
}

.profound-quote::after {
    content: '"';
    position: absolute;
    right: 0;
    bottom: -0.8rem;
    font-size: 2rem;
    color: #a855f7;
    font-family: serif;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .poetic-response {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .poetic-line {
        font-size: 1rem;
    }
    
    .poetic-line.indented {
        margin-left: 1rem;
    }
    
    .meditation-section {
        padding: 1rem;
    }
}

/* Print styles for poetic responses */
@media print {
    .poetic-response {
        background: white;
        color: black;
        border-left: 4px solid #333;
        box-shadow: none;
    }
    
    .poetic-line {
        color: black;
    }
    
    .spiritual-emphasis {
        color: #666;
        text-shadow: none;
    }
}