/* ===== POEM PAGE STYLES ===== */
.poem-page {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 40px 0;
}

.poem-page .container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== POEM NAV ===== */
.poem-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.poem-nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-arrow {
    color: #b0a080;
    text-decoration: none;
    font-family: 'Lora', Georgia, serif;
    font-size: 0.9rem;
    padding: 6px 12px;
    border: 1px solid rgba(201,149,43,0.2);
    border-radius: 6px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.nav-arrow:hover {
    background: rgba(201,149,43,0.1);
    border-color: rgba(201,149,43,0.4);
    color: #e0d0b0;
}

/* ===== POEM HEADER ===== */
.poem-header {
    text-align: center;
    margin-bottom: 32px;
}

.poem-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 600;
    color: #f0e0c0;
    margin-bottom: 8px;
}

.poem-subtitle {
    font-size: 1rem;
    color: #807868;
    font-style: italic;
}

/* ===== LANGUAGE TOGGLE (Integrated into poem card) ===== */
.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto 20px;
    z-index: 3;
    background: rgba(15, 13, 28, 0.6);
    border: 1px solid rgba(201,149,43,0.15);
    border-radius: 20px;
    padding: 3px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: fit-content;
}

.lang-btn {
    position: relative;
    padding: 6px 16px;
    border: none;
    background: none;
    color: #706858;
    font-size: 0.82rem;
    cursor: pointer;
    transition: color 0.3s ease, background 0.3s ease;
    letter-spacing: 0.03em;
    border-radius: 16px;
    min-width: 64px;
    text-align: center;
}

.lang-btn[data-lang="en"] {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.88rem;
    font-weight: 600;
}

.lang-btn[data-lang="fa"] {
    font-family: 'Scheherazade New', serif;
    font-size: 0.95rem;
}

.lang-btn:hover {
    color: #c0b090;
}

.lang-btn.active {
    color: #f0e6d0;
    background: rgba(201,149,43,0.15);
    box-shadow: 0 0 8px rgba(201,149,43,0.1);
}

/* ===== POEM CARD WRAPPER ===== */
.poem-card-wrapper {
    position: relative;
}

/* ===== POEM CONTENT ===== */
.poem-content {
    display: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.poem-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: contentFadeIn 0.4s ease;
}

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

.poem-verses {
    position: relative;
    background: rgba(20, 18, 35, 0.5);
    border: 1px solid rgba(201,149,43,0.1);
    border-radius: 14px;
    padding: 28px 32px 36px;
    backdrop-filter: blur(8px);
}

.poem-content-en .poem-verses {
    text-align: center;
    font-style: normal;
}

.poem-content-fa .poem-verses {
    direction: rtl;
    text-align: center;
}

.verse-line {
    margin-bottom: 8px;
    line-height: 2;
}

.poem-content-en .verse-line {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.25rem;
    color: #c8bca8;
}

.poem-content-fa .verse-line {
    font-family: 'Scheherazade New', serif;
    font-size: 1.5rem;
    color: #d4b870;
    line-height: 2.4;
}

.verse-break {
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poem-content-en .verse-break::after {
    content: '✦';
    color: rgba(201,149,43,0.3);
    font-size: 0.55rem;
    letter-spacing: 8px;
}

.poem-source {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #605848;
}

.poem-source a {
    color: #907840;
    text-decoration: none;
}

.poem-source a:hover {
    color: #c9952b;
    text-decoration: underline;
}

/* ===== POEM ACTIONS ===== */
.poem-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 36px;
    flex-wrap: wrap;
}

/* ===== FULL POEM LINK (in reading card) ===== */
.full-poem-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c9952b;
    text-decoration: none;
    font-family: 'Lora', Georgia, serif;
    font-size: 0.9rem;
    padding: 10px 20px;
    border: 1px solid rgba(201,149,43,0.2);
    border-radius: 8px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    margin-top: 20px;
}

.full-poem-link:hover {
    background: rgba(201,149,43,0.1);
    border-color: rgba(201,149,43,0.4);
    color: #ffe08a;
}

.full-poem-link svg {
    width: 16px;
    height: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .poem-page {
        padding: 24px 0;
    }

    .poem-title {
        font-size: 2rem;
    }

    .poem-verses {
        padding: 40px 18px 24px;
        border-radius: 12px;
    }

    .lang-toggle {
        margin-bottom: 16px;
    }

    .lang-btn {
        padding: 5px 12px;
        font-size: 0.78rem;
        min-width: 56px;
    }

    .lang-btn[data-lang="fa"] {
        font-size: 0.88rem;
    }

    .reflection-card,
    .oracle-cta {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .poem-content-fa .verse-line {
        font-size: 1.3rem;
    }

    .poem-content-en .verse-line {
        font-size: 1.1rem;
    }

    .poem-actions {
        flex-direction: column;
    }

    .poem-actions .action-btn {
        justify-content: center;
    }

    .poem-nav-links {
        gap: 8px;
    }

    .nav-arrow {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

/* ===== MINI ORB (new reading) ===== */
.mini-orb {
    position: relative;
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 50%;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mini-orb-inner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffe08a, #c9952b 50%, #8a6914 100%);
    box-shadow:
        0 0 24px rgba(201,149,43,0.4),
        0 0 48px rgba(201,149,43,0.15),
        inset 0 -3px 8px rgba(0,0,0,0.3);
    transition: transform 0.15s ease, box-shadow 0.3s ease;
}

.mini-orb-glow {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,149,43,0.12) 0%, transparent 70%);
    animation: miniOrbPulse 4s ease-in-out infinite;
}

@keyframes miniOrbPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 1; }
}

.mini-orb:hover .mini-orb-inner {
    box-shadow:
        0 0 40px rgba(201,149,43,0.6),
        0 0 80px rgba(201,149,43,0.25),
        inset 0 -3px 8px rgba(0,0,0,0.3);
    transform: scale(1.05);
}

.mini-orb:active .mini-orb-inner {
    transform: scale(0.92);
}

/* ===== REFLECTION CARD ===== */
.reflection-card {
    margin-top: 40px;
    padding: 32px 32px;
    background: rgba(20, 18, 35, 0.5);
    border: 1px solid rgba(201,149,43,0.1);
    border-radius: 14px;
    text-align: left;
}

.reflection-icon {
    font-size: 1.4rem;
    color: #c9952b;
    margin-bottom: 12px;
    text-align: center;
}

.reflection-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: #e0d0b0;
    margin-bottom: 12px;
    text-align: center !important;
    width: 100%;
}

.reflection-intro {
    font-size: 0.95rem;
    color: #a09888;
    margin-bottom: 16px;
    line-height: 1.7;
}

.reflection-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reflection-list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #b0a890;
}

.reflection-list li::before {
    content: '·';
    position: absolute;
    left: 4px;
    color: #c9952b;
    font-size: 1.4rem;
    line-height: 1.2;
}

/* ===== SHARE SECTION ===== */
.share-section {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid rgba(201,149,43,0.2);
    color: #b0a080;
    padding: 10px 22px;
    border-radius: 8px;
    font-family: 'Lora', Georgia, serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    background: rgba(201,149,43,0.1);
    border-color: rgba(201,149,43,0.4);
    color: #e0d0b0;
}

/* ===== ORACLE CTA ===== */
.oracle-cta {
    position: relative;
    margin-top: 40px;
    padding: 40px 32px;
    background: rgba(20, 18, 35, 0.5);
    border: 1px solid rgba(201,149,43,0.1);
    border-radius: 14px;
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,149,43,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #f0e0c0;
    margin-bottom: 12px;
}

.cta-text {
    font-size: 0.95rem;
    color: #a09888;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(201,149,43,0.25), rgba(201,149,43,0.12));
    border: 1px solid rgba(201,149,43,0.4);
    color: #ffe08a;
    padding: 14px 32px;
    border-radius: 12px;
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 24px rgba(201,149,43,0.15);
}

.cta-button:hover {
    background: linear-gradient(135deg, rgba(201,149,43,0.35), rgba(201,149,43,0.2));
    border-color: rgba(201,149,43,0.6);
    box-shadow: 0 8px 32px rgba(201,149,43,0.25);
    transform: translateY(-2px);
}

/* ===== FOOTER WISDOM ===== */
.footer-wisdom {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    color: #806830;
    font-style: italic;
    margin-bottom: 12px;
}

/* ===== RESPONSIVE: NEW SECTIONS ===== */
@media (max-width: 480px) {
    .reflection-card {
        padding: 24px 20px;
    }

    .oracle-cta {
        padding: 32px 20px;
    }

    .cta-title {
        font-size: 1.4rem;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .mini-orb {
        width: 48px;
        height: 48px;
    }
}

/* ===== ORACLE VERDICT ===== */

.oracle-verdict {
    margin: 32px auto 0;
    text-align: center;
    opacity: 0;
    transform: translateY(10px) scale(0.96);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.oracle-verdict.verdict-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.verdict-card {
    display: inline-block;
    position: relative;
    padding: 20px 36px;
    background: rgba(20, 18, 35, 0.7);
    border: 1px solid rgba(201, 149, 43, 0.25);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(201, 149, 43, 0.06),
        inset 0 1px 0 rgba(201, 149, 43, 0.1);
}

.verdict-label {
    display: block;
    font-family: 'Lora', Georgia, serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #907840;
    margin-bottom: 8px;
}

.verdict-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffe08a;
    line-height: 1.4;
    text-shadow: 0 0 20px rgba(201, 149, 43, 0.2);
}

/* Decorative corner flourishes */
.verdict-card::before,
.verdict-card::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: rgba(201, 149, 43, 0.3);
    border-style: solid;
}

.verdict-card::before {
    top: 8px;
    left: 8px;
    border-width: 1px 0 0 1px;
    border-radius: 2px 0 0 0;
}

.verdict-card::after {
    bottom: 8px;
    right: 8px;
    border-width: 0 1px 1px 0;
    border-radius: 0 0 2px 0;
}

@media (max-width: 480px) {
    .verdict-card {
        padding: 16px 24px;
    }

    .verdict-text {
        font-size: 1.3rem;
    }
}
