/* Heartwarming Conversation Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;700;800&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&display=swap');

:root {
    --page-accent: #f9a8d4; /* Affectionate Pink */
    --page-gradient: linear-gradient(135deg, #fff5f5 0%, #fffaf0 100%);
    --seed-bg: #fdf2f8;
}

/* Background Decor */
.bg-decor-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    transition: transform 0.5s ease-out;
}

.blob-1 {
    width: 40vw;
    height: 40vw;
    background: #ffe4e6;
    top: -10%;
    right: -10%;
}

.blob-2 {
    width: 35vw;
    height: 35vw;
    background: #f0f9ff;
    bottom: 5%;
    left: -5%;
}

.blob-3 {
    width: 25vw;
    height: 25vw;
    background: #fef3c7;
    top: 40%;
    right: 15%;
}

.page-wrapper {
    position: relative;
    z-index: 1;
}

.conversation-header {
    padding: 8rem 2rem 6rem;
    text-align: center;
    background: white;
    border-radius: 60px;
    margin-bottom: 5rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.conversation-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 241, 242, 0.8), transparent 70%),
                radial-gradient(circle at bottom left, rgba(240, 249, 255, 0.8), transparent 70%);
    z-index: 0;
}

.conversation-header > * {
    position: relative;
    z-index: 1;
}


.category-tag {
    display: inline-block;
    padding: 0.6rem 2rem;
    background: white;
    color: var(--page-accent);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(249, 168, 212, 0.15);
}


.conversation-header h1 {
    font-size: clamp(2.5rem, 9vw, 3.8rem);
    margin-bottom: 1.5rem;
    color: #1e293b;
    line-height: 1.4;
    font-weight: 700;
    font-family: "Kaisei Opti", serif;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}




.hero-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.content-block {
    background: #ffffff;
    padding: 4rem;
    border-radius: 40px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.06);
    border-color: rgba(244, 63, 94, 0.2);
}


.content-block h2 {
    font-size: 1.95rem;
    margin: 0 0 2.5rem;
    padding-left: 1.8rem;
    border-left: 4px solid var(--page-accent);
    color: #1e293b;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-family: "Kaisei Opti", serif;
}




.content-block h3 {
    font-size: 1.45rem;
    margin: 3.5rem 0 1.8rem;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    font-family: "Kaisei Opti", serif;
    letter-spacing: 0.02em;
}




.content-block h3 i {
    color: var(--page-accent);
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Specific Decorations */
.highlight-box {
    background: #fdf2f8;
    border: 1px solid rgba(249, 168, 212, 0.2);
}

.accent-quote {
    margin: 3rem 0;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    border-left: 6px solid var(--page-accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    text-align: center;
    font-weight: 600;
    color: #1e293b;
}

.accent-message {
    padding: 1.5rem;
    background: var(--page-gradient);
    border-radius: 15px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--page-accent);
    margin: 2rem 0;
}

.special-focus {
    text-align: center;
    background: #fff;
    border: 2px dashed #f9a8d4;
    padding: 5rem 3rem;
}

.mega-text {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #f43f5e;
    margin: 2.5rem 0;
    font-family: "Outfit", sans-serif;
}

/* Marker Highlight Animation */
.marker-highlight {
    background: linear-gradient(transparent 60%, rgba(244, 63, 94, 0.2) 60%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    transition: background-size 1s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 700;
}

.marker-highlight.active {
    background-size: 100% 100%;
}

/* Interactive Catchball Styles */
.catchball-visual.clickable {
    cursor: pointer;
    position: relative;
    padding-bottom: 3rem;
    transition: background 0.3s ease;
    border-radius: 30px;
}

.catchball-visual.clickable:hover {
    background: rgba(249, 168, 212, 0.03);
}

.click-hint {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--page-accent);
    opacity: 0.6;
    animation: pulseHint 2s infinite;
}

@keyframes pulseHint {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

.bubble {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-family: "Kaisei Opti", serif;
}

.bubble.side-left {
    color: #3b82f6;
    background: #eff6ff;
    border-bottom-left-radius: 2px;
}

.bubble.side-right {
    color: #f43f5e;
    background: #fff1f2;
    border-bottom-right-radius: 2px;
}

.ball-icon {
    font-size: 1.5rem;
    color: var(--page-accent);
    filter: drop-shadow(0 4px 10px rgba(249, 168, 212, 0.3));
}

@keyframes bounceBall {
    0%, 100% { transform: translateX(-60px) translateY(0) rotate(0); }
    50% { transform: translateX(60px) translateY(-50px) rotate(180deg); }
}

.catchball-visual.interacting .ball-icon {
    animation: none; /* Controlled by JS during click */
}

.catchball-visual {
    animation: floatingContainer 4s ease-in-out infinite;
}

@keyframes floatingContainer {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Summary Cards Area */
.summary-section {
    background: #1e293b;
    color: #f8fafc;
    padding: 4rem 3rem;
    border-radius: 40px;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

.summary-intro {
    font-size: 1.25rem;
    color: #cbd5e1;
    text-align: center;
    margin-bottom: 3.5rem;
}

/* Summary Step Enhanced Interaction */
.step-cards-grid {
    display: grid;
    gap: 2rem;
    margin: 3.5rem 0;
}

.step-card {
    background: rgba(255, 255, 255, 0.05); /* Same as before, will be updated */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 35px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.step-card:hover {
    transform: scale(1.02) translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 40px rgba(249, 168, 212, 0.15);
    border-color: var(--page-accent);
}

.step-card.highlight {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(249, 168, 212, 0.15));
    border-color: var(--page-accent);
}

.step-card:active {
    transform: scale(0.98);
}

.step-num {
    font-family: "Outfit", sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
}

.step-card.highlight .step-num {
    color: var(--page-accent);
}

.step-content h3 {
    color: #f8fafc;
    font-size: 1.4rem;
    margin: 0;
    font-family: "Kaisei Opti", serif;
}

.final-message {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    font-size: 1.1rem;
    line-height: 2;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mindset Column */
.mindset-column {
    background: #f8fafc;
    border-radius: 20px;
    padding: 2rem;
    margin: 3rem 0;
    border-left: 5px solid #64748b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.column-header {
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Action Guide Box */
.action-guide-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 25px;
    padding: 2.5rem;
    margin: 3rem 0;
    border: 1px solid #fde68a;
}

.guide-title {
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: #92400e;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Relief Box */
.relief-box {
    background: #f0fdf4;
    border-radius: 30px;
    padding: 3rem;
    margin: 4rem 0;
    border: 2px dashed #bbf7d0;
    text-align: center;
}

.relief-box p {
    color: #166534;
}


/* 3D Flip Cards for Topics */
.topic-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.topic-card-wrapper {
    height: 240px;
    perspective: 1200px;
}


.topic-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    cursor: pointer;
}

.topic-card-wrapper:hover .topic-card-inner {
    transform: rotateY(180deg);
}

.topic-card-front, .topic-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    border: 1px solid rgba(255,255,255,0.8);
    background: white;
}


.topic-card-back {
    background: linear-gradient(135deg, #fff5f5 0%, #fffaf0 100%);
    transform: rotateY(180deg);
}

.topic-card-front i {
    font-size: 3.5rem;
    color: var(--page-accent);
    margin-bottom: 1.5rem;
}

.topic-card-front h4 {
    font-family: "Kaisei Opti", serif;
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1.2rem;
}

.flip-hint {
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
}

.topic-card-back p {
    font-size: 1.15rem;
    color: #334155;
    margin: 0;
    line-height: 1.7;
    font-family: "Kaisei Opti", serif;
    font-weight: 500;
}

.decoration-icon {
    font-size: 1.8rem;
    color: var(--page-accent);
    margin-top: 1.8rem;
    opacity: 0.4;
}

/* Shuffle Section */
.shuffle-section {
    margin: 4rem 0;
    background: #fff;
    border-radius: 30px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border: 2px solid #fecdd3;
    text-align: center;
}

.shuffle-container h3 {
    font-size: 1.5rem;
    color: #be123c;
    margin-bottom: 1rem;
}

.shuffle-desc {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.shuffle-result {
    background: #fff1f2;
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 2.5rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    border: 1px dashed #fda4af;
    transition: all 0.3s ease;
}

.shuffle-result.new-seed {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Premium Button Styling */
.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #f43f5e 0%, #f9a8d4 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: "Outfit", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(244, 63, 94, 0.2);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-premium:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(244, 63, 94, 0.4);
    filter: brightness(1.1);
}

.btn-premium:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-premium i {
    font-size: 1.2rem;
    transition: transform 0.5s ease;
}

.btn-premium:hover i {
    transform: rotate(20deg) scale(1.2);
}

@media (max-width: 992px) {
    .topic-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .conversation-header {
        padding: 4rem 1.5rem;
    }
    .content-block {
        padding: 2.5rem 1.5rem;
    }
    .summary-section {
        padding: 2.5rem 1.5rem;
    }
    .topic-cards-grid {
        grid-template-columns: 1fr;
    }
    .topic-card-wrapper {
        height: 220px;
    }
}


/* Particle Magic Effect */
.particle {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    z-index: 100;
    animation: sparkleOut 1s ease-out forwards;
}

@keyframes sparkleOut {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Success Stamp Styling */
.success-stamp-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transform: scale(3) rotate(-20deg);
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-stamp-container.active {
    height: 300px; /* Expand to show the stamp */
    opacity: 1;
    transform: scale(1) rotate(-10deg);
    padding-top: 2rem;
}

.stamp-wrapper {
    position: relative;
    border: 5px solid rgba(244, 63, 94, 0.4);
    padding: 1.5rem 3rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(244, 63, 94, 0.4);
}

.stamp-wrapper i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.stamp-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Scroll Path Seeds */
.scroll-seed {
    position: fixed;
    pointer-events: none;
    z-index: 5;
    color: var(--page-accent);
    opacity: 0.3;
    font-size: 1rem;
    filter: blur(1px);
    transition: opacity 0.3s ease;
}

