/*
Theme Name: Azure Theme
Theme URI: https://example.com/
Author: Azure Studio
Description: Infinite Curiosity A to Z Theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --azure-blue: #0070f3;
    --text-black: #111;
    --bg-white: #fff;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-black);
    margin: 0;
    overflow: hidden; /* Snap scroll behavior needs this */
}

/* --- Loading Curtain Animation --- */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    pointer-events: none;
}

.curtain {
    width: 50%;
    height: 100%;
    background-color: var(--azure-blue);
    transition: transform 1.2s cubic-bezier(0.87, 0, 0.13, 1);
    will-change: transform;
}

.curtain-left { transform-origin: left center; }
.curtain-right { transform-origin: right center; }

.loaded .curtain-left { transform: translateX(-100%); }
.loaded .curtain-right { transform: translateX(100%); }

/* --- Scroll Snap Settings --- */
.snap-container {
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
}

.snap-section {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Background Marquee */
.marquee-wrapper {
    position: absolute;
    bottom: -2vw;
    left: 0;
    width: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 60s linear infinite;
}

.marquee-text {
    font-size: 25vw;
    font-weight: 900;
    line-height: 1;
    padding-right: 5vw;
    color: transparent;
    -webkit-text-stroke: 2px #000;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.active .fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Visual Box */
.visual-box {
    background-color: #f4f4f4;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.visual-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}
.active .visual-box img {
    transform: scale(1.05);
}

/* Navigation Dots */
.dot-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 50;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    transition: all 0.3s ease;
    cursor: pointer;
}
.dot.active {
    background-color: var(--azure-blue);
    transform: scale(1.3);
}

/* Utility */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    white-space: nowrap;
}

.article-card {
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
}
.article-card:hover {
    border-bottom-color: var(--azure-blue);
    padding-left: 10px;
}

/* Philosophy Background Text */
.vertical-text-container {
    position: absolute;
    left: 5%;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .dot-nav { display: none; }
    .hero-title { font-size: 14vw; }
    .snap-section {
        padding: 4rem 1.5rem;
        justify-content: flex-start;
    }
    .snap-section.center-mobile {
        justify-content: center;
    }
    
    .marquee-text { font-size: 25vw; -webkit-text-stroke: 1.5px #000; }
    .marquee-wrapper { bottom: 10vh; opacity: 0.1; } /* 0.05 -> 0.1 */
    
    .vertical-text-container {
        left: 0;
        justify-content: flex-start;
        opacity: 0.2; /* 0.15 -> 0.3 */
    }
}

/* --- Single Page Overrides --- */

/* Allow scrolling on non-home pages */
body:not(.home):not(.front-page) {
    overflow-y: auto !important;
}

/* Article Content Styling (Since Tailwind resets everything) */
.post-content h1 { font-size: 2rem; font-weight: 900; margin-top: 3rem; margin-bottom: 1.5rem; line-height: 1.2; }
.post-content h2 { font-size: 1.75rem; font-weight: 900; margin-top: 2.5rem; margin-bottom: 1.25rem; border-left: 4px solid var(--azure-blue); padding-left: 1rem; }
.post-content h3 { font-size: 1.5rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; }
.post-content p { margin-bottom: 1.5rem; line-height: 1.8; color: #333; font-size: 1rem; }
.post-content ul, .post-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.post-content ul { list-style-type: disc; }
.post-content ol { list-style-type: decimal; }
.post-content li { margin-bottom: 0.5rem; }
.post-content a { color: var(--azure-blue); text-decoration: underline; }
.post-content blockquote { border-left: 4px solid #ddd; padding-left: 1rem; font-style: italic; color: #666; margin-bottom: 1.5rem; }
.post-content img { max-width: 100%; height: auto; margin: 2rem 0; border-radius: 4px; }