/* live_life.css - Life and Passion Theme (Red/Orange) */

.life-page {
    --life-primary: #ea580c;
    --life-secondary: #f97316;
    --life-accent: #e11d48;
    --life-light: #fff7ed;
    --life-border: #fed7aa;
}

/* Page Title Area */
.page-title-area {
    text-align: left;
    margin-bottom: 3rem;
}

.page-title-text {
    color: var(--life-primary);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.title-underline {
    margin: 0;
    width: 100px;
    background: var(--life-secondary);
    height: 3px;
    border-radius: 2px;
}

.title-subtext {
    margin-top: 1rem;
    color: #64748b;
    font-weight: bold;
}

/* Hero Quote Section */
.hero-quote-container {
    background-image:
        repeating-linear-gradient(45deg,
            rgba(194, 65, 12, 0.05) 0px,
            rgba(194, 65, 12, 0.05) 1px,
            transparent 1px,
            transparent 4px),
        linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    background-blend-mode: multiply;
    padding: 3rem;
    border-radius: 1.5rem;
    border-left: 8px solid var(--life-primary);
    margin: 3rem 0;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(234, 88, 12, 0.15);
}

.hero-quote-container .quote-icon {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 2.5rem;
    color: rgba(234, 88, 12, 0.2);
}

.hero-quote-container .quote-text {
    font-size: 1.2rem;
    line-height: 2.4;
    color: #9a3412;
    font-family: "Zen Old Mincho", "Yu Mincho", serif;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 2;
}

.hero-quote-container .quote-author {
    text-align: right;
    margin-top: 2rem;
    font-weight: bold;
    color: var(--life-primary);
    font-family: sans-serif;
    font-size: 1.1rem;
}

.flame-pulse {
    animation: flame 4s infinite ease-in-out;
}

@keyframes flame {
    0% { box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.1); }
    50% { box-shadow: 0 4px 25px -1px rgba(249, 115, 22, 0.3); }
    100% { box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.1); }
}

/* Section Styling */
.section-container {
    margin-bottom: 5rem;
}

.section-header {
    color: #c2410c;
    border-bottom: 2px solid #ffedd5;
    padding-bottom: 0.6rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.section-number {
    background: var(--life-primary);
    color: white;
    padding: 0.2rem 1rem;
    border-radius: 6px;
    margin-right: 0.8rem;
    font-size: 0.9em;
    font-weight: 800;
}

.text-paragraph {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: #4b5563;
}

/* Balance Icons */
.balance-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 3rem 0;
    color: var(--life-secondary);
    padding: 2rem;
    background: #fffaf0;
    border-radius: 1rem;
}

.balance-item {
    text-align: center;
    padding: 1rem;
}

.balance-item.sun { animation: float-y 3s ease-in-out infinite; }
.balance-item.rain { animation: float-y 4s ease-in-out infinite; }

.balance-icon-sun {
    font-size: 2.5rem;
    color: #facc15;
    margin-bottom: 0.8rem;
    display: block;
    filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.4));
}

.balance-icon-rain {
    font-size: 2.5rem;
    color: #64748b;
    margin-bottom: 0.8rem;
    display: block;
}

.balance-arrow {
    font-size: 1.5rem;
    opacity: 0.6;
    color: var(--life-primary);
}

.balance-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: #57534e;
}

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Concept Box */
.concept-box {
    background: white;
    border: 2px dashed var(--life-secondary);
    padding: 2.5rem;
    border-radius: 16px;
    margin: 3rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.concept-title {
    color: #c2410c;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

.concept-icon { color: var(--life-secondary); }

.concept-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: #9a3412;
    line-height: 2;
}

/* Highlights */
.text-highlight {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fff1f2;
    border-left: 5px solid var(--life-accent);
    font-weight: bold;
    color: #9f1239;
    font-size: 1.1rem;
    line-height: 1.8;
}

.highlight-marker.orange {
    background-image: linear-gradient(transparent 60%, rgba(249, 115, 22, 0.3) 60%);
    font-weight: 800;
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 1.5s ease-out;
    padding: 0 4px;
}

.marker-trigger.active .highlight-marker.orange {
    background-size: 100% 100%;
}

/* Door Visualization (Interactive) */
.visual-box {
    text-align: center;
    margin: 4rem 0;
}

.door-container {
    position: relative;
    width: 160px;
    height: 220px;
    margin: 0 auto;
    perspective: 1000px;
    cursor: pointer;
}

.door-frame {
    width: 100%;
    height: 100%;
    border: 8px solid #7c2d12;
    border-bottom: none;
    background: #4a1908; /* Dark hole behind */
    position: absolute;
    z-index: 1;
    border-radius: 4px 4px 0 0;
}

.door {
    width: 100%;
    height: 100%;
    background: #ea580c;
    border: 2px solid #9a3412;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: left;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
    border-radius: 2px 2px 0 0;
}

.knob {
    width: 14px;
    height: 14px;
    background: gold;
    border-radius: 50%;
    position: absolute;
    right: 15px;
    top: 50%;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.door-text-closed {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.light-behind {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0f2fe 0%, #38bdf8 100%);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0.5;
    transition: opacity 1s;
}

.door-container.open .door {
    transform: rotateY(-110deg);
}

.door-container.open .light-behind {
    opacity: 1;
}

.door-caption {
    font-size: 0.95rem;
    color: #9a3412;
    margin-top: 1.5rem;
    font-weight: bold;
}

/* Door Inner Content */
.door-text-open {
    color: #ffffff;
    font-weight: 900;
    font-size: 1.3rem;
    margin-top: 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 5;
    text-align: center;
}

.glow-orb {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 70%);
    position: absolute;
    animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 0.9; }
}

/* Sparkles */
.sparkle {
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white;
    animation: twinkle 2s infinite ease-in-out;
    position: absolute;
}
.sparkle.s1 { width: 10px; height: 10px; top: 20%; left: 20%; animation-delay: 0s; }
.sparkle.s2 { width: 6px; height: 6px; top: 70%; left: 80%; animation-delay: 0.5s; }
.sparkle.s3 { width: 8px; height: 8px; top: 30%; right: 20%; animation-delay: 1s; }
.sparkle.s4 { width: 5px; height: 5px; bottom: 20%; left: 40%; animation-delay: 1.5s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 15px white; }
}

/* Call To Action */
.call-to-action {
    background: #fff7ed;
    padding: 3rem 2rem;
    border-radius: 1rem;
    border: 2px solid var(--life-border);
    margin-top: 4rem;
    text-align: center;
}

.cta-title {
    font-weight: 800;
    color: #c2410c;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Sidebar Specifics */
.life-page .sidebar-nav-list li.active-link a {
    color: var(--life-primary);
    background-color: var(--life-light);
    border-left: 3px solid var(--life-primary);
}

.life-page .sidebar-advice {
    border: 2px solid var(--life-border);
    background: white;
}

.life-page .advice-highlight {
    color: var(--life-primary);
    font-weight: bold;
}
