/* Poem Page Specific Styles */

.poem-page {
    background: linear-gradient(180deg,
        var(--soft-purple) 0%,
        var(--white) 20%,
        var(--soft-purple) 80%,
        var(--light-purple) 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.back-button {
    position: fixed;
    top: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    color: var(--deep-purple);
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(123, 104, 238, 0.2);
    transition: all 0.3s ease;
    z-index: 100;
}

.back-button:hover {
    transform: translateX(-5px);
    box-shadow: 0 8px 30px rgba(123, 104, 238, 0.3);
    background: var(--soft-purple);
}

.poem-full-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}

.poem-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 1s ease;
}

.poem-title {
    font-size: 3.5rem;
    color: var(--deep-purple);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.poem-subtitle {
    font-size: 2rem;
    color: var(--primary-purple);
    font-weight: 400;
    margin-bottom: 2rem;
}

.poem-body {
    background: rgba(255, 255, 255, 0.95);
    padding: 4rem 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(123, 104, 238, 0.15);
}

.poem-stanza {
    margin-bottom: 3rem;
    padding-left: 2rem;
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, var(--primary-purple) 0%, var(--light-purple) 100%);
    border-image-slice: 1;
    animation: fadeInUp 1s ease;
    animation-fill-mode: both;
}

.poem-stanza:nth-child(1) { animation-delay: 0.1s; }
.poem-stanza:nth-child(2) { animation-delay: 0.2s; }
.poem-stanza:nth-child(3) { animation-delay: 0.3s; }
.poem-stanza:nth-child(4) { animation-delay: 0.4s; }
.poem-stanza:nth-child(5) { animation-delay: 0.5s; }
.poem-stanza:nth-child(6) { animation-delay: 0.6s; }
.poem-stanza:nth-child(7) { animation-delay: 0.7s; }
.poem-stanza:nth-child(8) { animation-delay: 0.8s; }
.poem-stanza:nth-child(9) { animation-delay: 0.9s; }
.poem-stanza:nth-child(10) { animation-delay: 1s; }

.poem-stanza p {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    line-height: 2.2;
    color: var(--text-dark);
    position: relative;
}

.poem-stanza.final {
    border-left: 4px solid var(--accent-purple);
    background: linear-gradient(90deg, var(--soft-purple) 0%, transparent 100%);
    padding: 2rem;
    margin-left: -2rem;
    border-radius: 10px;
}

.poem-stanza.final p {
    font-weight: 600;
    font-size: 1.3rem;
}

.poem-footer {
    margin-top: 4rem;
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--soft-purple) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(123, 104, 238, 0.1);
}

.poem-dedication {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--deep-purple);
    line-height: 2;
    margin-bottom: 2rem;
}

.poem-dedication .butterfly-icon {
    font-size: 2rem;
    display: inline-block;
    animation: gentle-flutter 3s ease-in-out infinite;
    margin: 1rem 0;
}

.poem-dedication em {
    font-size: 1.1rem;
    color: var(--primary-purple);
    display: block;
    margin-top: 1rem;
}

.poem-authors {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-purple);
}

.poem-authors p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.poem-event {
    color: var(--primary-purple);
    font-weight: 600;
}

/* Print styles for poem */
@media print {
    .poem-page {
        background: white;
    }

    .back-button,
    .butterflies {
        display: none;
    }

    .poem-body {
        box-shadow: none;
        padding: 2rem;
    }

    .poem-stanza {
        page-break-inside: avoid;
    }

    .poem-title {
        color: black;
        text-shadow: none;
    }
}

/* Mobile optimization for poem */
@media (max-width: 768px) {
    .poem-title {
        font-size: 2.5rem;
    }

    .poem-subtitle {
        font-size: 1.5rem;
    }

    .poem-body {
        padding: 2rem 1.5rem;
    }

    .poem-stanza {
        padding-left: 1rem;
        margin-bottom: 2rem;
    }

    .poem-stanza p {
        font-size: 1.1rem;
        line-height: 2;
    }

    .back-button {
        top: 15px;
        left: 15px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Animation keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Special hover effect for stanzas */
.poem-stanza {
    transition: all 0.3s ease;
    cursor: default;
}

.poem-stanza:hover {
    padding-left: 2.5rem;
    background: linear-gradient(90deg, var(--soft-purple) 0%, transparent 100%);
}

/* Reading mode toggle (future enhancement) */
.reading-mode {
    background: #FFF9F0;
}

.reading-mode .poem-stanza p {
    color: #333;
    font-size: 1.3rem;
    line-height: 2.4;
}