/* haroo.day - Glassmorphism Urban Diary */

/* ====== Reset & Base ====== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.75;
    color: #3A3028;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ====== Background Layers (Time-of-Day Gradient) ====== */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.bg-morning {
    background: linear-gradient(
        160deg,
        #E8C878 0%,
        #F0E8D4 35%,
        #F0E8D4 65%,
        #E8C878 100%
    );
    opacity: 1;
    transition: opacity 0.1s linear;
}

.bg-evening {
    background: linear-gradient(
        160deg,
        #D89078 0%,
        #E8C878 30%,
        #D89078 60%,
        #6A5840 100%
    );
    opacity: 0;
    transition: opacity 0.1s linear;
}

/* ====== Collage Container ====== */
.collage-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.collage-element {
    position: absolute;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.collage-element.visible {
    opacity: 1;
}

.collage-rect {
    border-radius: 4px;
}

.collage-circle {
    border-radius: 50%;
}

.collage-text {
    font-family: 'Fira Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #6A5840;
    opacity: 0.05;
    user-select: none;
    white-space: nowrap;
}

.collage-text.visible {
    opacity: 0.05;
}

/* ====== Skyline SVGs ====== */
.skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 0;
}

.skyline svg {
    display: block;
    width: 100%;
    height: auto;
}

.skyline svg rect {
    fill: #5A5A5A;
    opacity: 0.15;
}

.skyline-hero {
    height: 120px;
}

.skyline-section {
    height: 80px;
}

.skyline-footer svg rect {
    fill: #3A3028;
    opacity: 0.2;
}

.skyline-footer {
    height: 120px;
}

/* ====== Glass Panel Base ====== */
.glass-panel {
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: backdrop-filter 0.3s ease, box-shadow 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}

.glass-panel:hover {
    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* ====== Hero Section ====== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-panel {
    width: 60vw;
    max-width: 800px;
    height: 60vh;
    max-height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
    position: relative;
    z-index: 1;
    opacity: 0;
}

.hero-panel.animate-in .hero-border-reveal {
    opacity: 1;
}

.hero-panel.animate-in {
    animation: heroFadeIn 0.7s ease forwards;
    animation-delay: 0.8s;
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(2.2rem, 5vw, 4rem);
    letter-spacing: 0.01em;
    color: #6A5840;
    margin-bottom: 0.3rem;
    opacity: 0;
    animation: contentFadeIn 0.4s ease forwards;
    animation-delay: 1.5s;
}

.hero-korean {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #6A5840;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: contentFadeIn 0.4s ease forwards;
    animation-delay: 1.7s;
}

.hero-subtitle {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: #5A5A5A;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: contentFadeIn 0.4s ease forwards;
    animation-delay: 1.9s;
}

.hero-date {
    font-family: 'Fira Code', monospace;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: #5A9A58;
    min-height: 1.4em;
    opacity: 0;
    animation: contentFadeIn 0.3s ease forwards;
    animation-delay: 2s;
}

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

/* ====== Day Sections (Z-Pattern) ====== */
.day-section {
    position: relative;
    width: 100%;
    min-height: 50vh;
    padding: 80px 0;
    display: flex;
    overflow: hidden;
}

.section-left {
    justify-content: flex-start;
    padding-left: 10%;
}

.section-right {
    justify-content: flex-end;
    padding-right: 10%;
}

.section-panel {
    width: 50%;
    max-width: 650px;
    padding: 2.5rem 3rem;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
}

.section-left .section-panel {
    transform: translateY(30px) translateX(-15px);
}

.section-right .section-panel {
    transform: translateY(30px) translateX(15px);
}

.section-panel.animate-in {
    animation: panelFloatUp 0.6s ease-out forwards;
}

.section-left .section-panel.animate-in {
    animation: panelFloatUpLeft 0.6s ease-out forwards;
}

.section-right .section-panel.animate-in {
    animation: panelFloatUpRight 0.6s ease-out forwards;
}

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

@keyframes panelFloatUpLeft {
    from {
        opacity: 0;
        transform: translateY(30px) translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

@keyframes panelFloatUpRight {
    from {
        opacity: 0;
        transform: translateY(30px) translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

.section-panel .time-marker {
    font-family: 'Fira Code', monospace;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: #5A9A58;
    display: block;
    margin-bottom: 0.75rem;
}

.section-panel h2 {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    letter-spacing: 0.01em;
    color: #6A5840;
    margin-bottom: 0.3rem;
}

.section-panel .korean-accent {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #6A5840;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.section-panel p:last-of-type {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.75;
    color: #3A3028;
}

/* ====== Sunset Footer ====== */
.sunset-footer {
    position: relative;
    width: 100%;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    overflow: hidden;
}

.footer-panel {
    width: 50%;
    max-width: 600px;
    padding: 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
}

.footer-panel.animate-in {
    animation: panelFloatUp 0.6s ease-out forwards;
}

.footer-korean {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    color: #6A5840;
    margin-bottom: 1rem;
}

.footer-text {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.75;
    color: #3A3028;
    margin-bottom: 1.5rem;
}

.footer-domain {
    font-family: 'Fira Code', monospace;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: #5A9A58;
}

/* ====== Responsive ====== */
@media (max-width: 900px) {
    .hero-panel {
        width: 85vw;
        height: auto;
        min-height: 50vh;
        padding: 2rem;
    }

    .section-left,
    .section-right {
        justify-content: center;
        padding-left: 5%;
        padding-right: 5%;
    }

    .section-panel {
        width: 90%;
        max-width: none;
    }

    .section-left .section-panel,
    .section-right .section-panel {
        transform: translateY(30px) translateX(0);
    }

    .section-left .section-panel.animate-in,
    .section-right .section-panel.animate-in {
        animation: panelFloatUp 0.6s ease-out forwards;
    }

    .footer-panel {
        width: 85%;
    }

    .day-section {
        padding: 40px 0;
    }
}

@media (max-width: 600px) {
    .hero-panel {
        width: 92vw;
        padding: 1.5rem;
    }

    .section-panel {
        padding: 1.5rem 2rem;
    }

    .footer-panel {
        width: 92%;
        padding: 2rem;
    }
}
