/* ============================================
   bada.cafe -- Seaside Cafe Experience
   Colors: Sea Deep #1a3a4a, Sea Mid #5b8fa8,
           Sea Light #a8d8ea, Horizon #e8f1f5,
           Sand #faf6f0, Coffee #6b4423,
           Latte #c9a882, Steam #ffffff,
           Driftwood #8b7d6b
   Fonts: Caveat (display/handwritten), Merriweather (body), Karla (labels)
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 300;
    line-height: 1.8;
    color: #6b4423;
    background-color: #e8f1f5;
    overflow-x: hidden;
}

/* --- Background Wash --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #e8f1f5 0%, #faf6f0 30%, #faf6f0 100%);
    z-index: -1;
}

/* --- Hero: The Window Seat --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-sky {
    flex: 0 0 60%;
    background: linear-gradient(180deg, #a8d8ea 0%, #5b8fa8 55%, #1a3a4a 100%);
    position: relative;
    overflow: hidden;
}

.hero-cloud {
    position: absolute;
    background-color: #ffffff;
    opacity: 0.35;
    border-radius: 50%;
    filter: blur(8px);
    pointer-events: none;
}

.cloud-1 {
    top: 18%;
    left: -10%;
    width: 240px;
    height: 36px;
    animation: cloudDrift 60s linear infinite;
}

.cloud-2 {
    top: 38%;
    left: -25%;
    width: 320px;
    height: 28px;
    opacity: 0.22;
    animation: cloudDrift 90s linear infinite;
    animation-delay: -30s;
}

@keyframes cloudDrift {
    0% { transform: translateX(0); }
    100% { transform: translateX(140vw); }
}

.hero-gull {
    position: absolute;
    top: 30%;
    left: 70%;
    width: 14px;
    height: 8px;
    border-top: 1.5px solid #ffffff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    opacity: 0.6;
    animation: gullDrift 28s linear infinite;
}

.hero-gull::before,
.hero-gull::after {
    content: '';
    position: absolute;
    top: -2px;
    width: 8px;
    height: 5px;
    border-top: 1.5px solid #ffffff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero-gull::before {
    left: -7px;
    transform: rotate(-15deg);
}

.hero-gull::after {
    right: -7px;
    transform: rotate(15deg);
}

@keyframes gullDrift {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 0.7; }
    50% { transform: translate(-30vw, 20px); opacity: 0.6; }
    90% { opacity: 0; }
    100% { transform: translate(-60vw, 0); opacity: 0; }
}

.hero-horizon {
    height: 1px;
    width: 100%;
    background-color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.hero-table {
    flex: 0 0 40%;
    background-color: #faf6f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(180deg, rgba(26, 58, 74, 0.08) 0%, transparent 100%);
}

.napkin {
    text-align: center;
    position: relative;
    padding: 1rem 2rem;
}

.site-title {
    font-family: 'Caveat', cursive;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    color: #6b4423;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.site-subtitle {
    font-family: 'Karla', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #8b7d6b;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 0.3rem;
}

.hero-hint {
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    color: #c9a882;
    margin-top: 1.4rem;
    opacity: 0.8;
    animation: hintPulse 3.5s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 0.85; transform: translateY(3px); }
}

/* --- Coffee Cup --- */
.coffee-cup {
    position: relative;
    display: inline-block;
    margin-top: 1.5rem;
    width: 60px;
    height: 50px;
}

.cup-icon {
    width: 60px;
    height: 50px;
}

.coffee-cup-small {
    margin-top: 1rem;
    width: 40px;
    height: 34px;
}

.cup-icon-small {
    width: 40px;
    height: 34px;
}

/* --- Steam Wisps --- */
.steam {
    position: absolute;
    display: block;
    width: 2px;
    height: 30px;
    background: transparent;
    top: -12px;
    pointer-events: none;
}

.steam::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 30px;
    border-radius: 50%;
    background-color: #ffffff;
    opacity: 0;
    animation: steamRise 4s ease-in-out infinite;
}

.steam-1 {
    left: 22px;
}
.steam-1::before {
    animation-delay: 0s;
}

.steam-2 {
    left: 28px;
}
.steam-2::before {
    animation-delay: 1.3s;
}

.steam-3 {
    left: 34px;
}
.steam-3::before {
    animation-delay: 2.6s;
}

.coffee-cup-small .steam {
    top: -8px;
    height: 18px;
}

.coffee-cup-small .steam-1 {
    left: 14px;
}
.coffee-cup-small .steam-2 {
    left: 18px;
}
.coffee-cup-small .steam-3 {
    left: 22px;
}

.coffee-cup-small .steam::before {
    height: 18px;
}

@keyframes steamRise {
    0% {
        opacity: 0;
        transform: translateY(0) scaleX(1);
    }
    15% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.4;
        transform: translateY(-12px) scaleX(1.5);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scaleX(0.8);
    }
}

/* --- Content Column --- */
.content-column {
    max-width: 640px;
    margin: 0 auto;
    padding: 3rem 1.5rem 0;
    position: relative;
    z-index: 1;
}

/* --- Horizon Divider --- */
.horizon-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #a8d8ea 30%, #5b8fa8 50%, #a8d8ea 70%, transparent 100%);
    margin: 3rem 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shell-accent {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: #faf6f0;
    padding: 2px 6px;
}

/* --- Journal Entry --- */
.journal-entry {
    background-color: #faf6f0;
    padding: 2.5rem 2rem;
    border-radius: 2px;
    position: relative;
    margin: 2rem 0;
    box-shadow: 0 1px 3px rgba(107, 68, 35, 0.05);
}

.journal-heading {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 400;
    color: #6b4423;
    margin-bottom: 1rem;
}

.journal-entry p {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.8;
    color: #6b4423;
    margin-bottom: 1rem;
}

.journal-entry p:last-of-type {
    margin-bottom: 0;
}

/* --- Handwritten Marks --- */
.handwritten-mark {
    font-family: 'Caveat', cursive;
    color: #c9a882;
    user-select: none;
}

.mark-asterisk {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 2rem;
    transform: rotate(12deg);
    line-height: 1;
}

.mark-circle {
    text-align: right;
    font-size: 1.5rem;
    margin-top: 1rem;
    opacity: 0.6;
    transform: rotate(-5deg);
    display: block;
}

.mark-underline {
    font-family: 'Caveat', cursive;
    color: #faf6f0;
    opacity: 0.5;
    font-size: 1.5rem;
    text-align: center;
    margin-top: 1.5rem;
    letter-spacing: 0.3em;
}

/* --- Menu Board --- */
.menu-board {
    background-color: #1a3a4a;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(168, 216, 234, 0.04) 0%, transparent 50%);
    padding: 2.5rem 2rem;
    border-radius: 2px;
    transform: rotate(-1deg);
    margin: 2rem 0;
    position: relative;
    border: 6px solid #6b4423;
    box-shadow: 0 4px 12px rgba(26, 58, 74, 0.25), inset 0 0 30px rgba(0, 0, 0, 0.2);
}

.menu-title {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 400;
    color: #faf6f0;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.menu-name {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    color: #faf6f0;
    white-space: nowrap;
}

.menu-dots {
    flex: 1;
    border-bottom: 1px dotted #5b8fa8;
    margin-bottom: 0.3em;
    min-width: 20px;
}

.menu-detail {
    font-family: 'Karla', sans-serif;
    font-size: 0.8rem;
    color: #a8d8ea;
    white-space: nowrap;
}

/* --- Postcard --- */
.postcard {
    background-color: #faf6f0;
    padding: 2.5rem 2rem;
    border: 1px solid #c9a882;
    border-radius: 2px;
    transform: rotate(1.5deg);
    margin: 2rem 0;
    position: relative;
    box-shadow: 2px 3px 8px rgba(107, 68, 35, 0.08);
}

.postcard::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px dashed #c9a882;
    opacity: 0.4;
    pointer-events: none;
}

.postcard-stamp {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    transform: rotate(-8deg);
}

.postcard-greeting {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    color: #6b4423;
    margin-bottom: 1rem;
}

.postcard-body {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #6b4423;
    margin-bottom: 1rem;
}

.postcard-closing {
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    color: #8b7d6b;
    margin-top: 1.5rem;
    line-height: 1.6;
}

.postcard-signature {
    font-style: italic;
    color: #c9a882;
}

/* --- Seasonal Section --- */
.seasonal {
    background-color: #faf6f0;
    padding: 2.5rem 2rem;
    border-radius: 2px;
    margin: 2rem 0;
    box-shadow: 0 1px 3px rgba(107, 68, 35, 0.05);
}

.seasonal-title {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 400;
    color: #6b4423;
    margin-bottom: 1.5rem;
    text-align: center;
}

.seasonal-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e8f1f5;
}

.seasonal-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.seasonal-season {
    font-family: 'Karla', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #5b8fa8;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.seasonal-item p {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #6b4423;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 2rem 0 6rem 0;
    margin-top: 2rem;
}

.footer-text {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: #6b4423;
    margin-top: 2rem;
}

.footer-korean {
    font-family: 'Karla', sans-serif;
    font-size: 0.8rem;
    color: #8b7d6b;
    letter-spacing: 0.1em;
    margin-top: 0.3rem;
}

/* --- Persistent Wave Animation --- */
.wave-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 10;
    overflow: hidden;
    pointer-events: none;
}

.wave {
    position: absolute;
    bottom: 0;
    left: -5%;
    width: 110%;
    height: 100%;
    background-color: #a8d8ea;
    opacity: 0.6;
    animation: waveMotion 6s ease-in-out infinite;
}

.wave-1 {
    border-radius: 50% 50% 0 0 / 20px 30px 0 0;
    animation-duration: 6s;
    opacity: 0.4;
    bottom: -5px;
}

.wave-2 {
    border-radius: 40% 60% 0 0 / 25px 15px 0 0;
    animation-duration: 5s;
    animation-delay: -1.5s;
    opacity: 0.3;
    bottom: -2px;
    background-color: #5b8fa8;
}

.wave-3 {
    border-radius: 55% 45% 0 0 / 15px 25px 0 0;
    animation-duration: 7s;
    animation-delay: -3s;
    opacity: 0.5;
    bottom: -8px;
}

@keyframes waveMotion {
    0% {
        border-radius: 50% 50% 0 0 / 20px 30px 0 0;
        transform: translateX(0);
    }
    25% {
        border-radius: 45% 55% 0 0 / 25px 20px 0 0;
    }
    50% {
        border-radius: 55% 45% 0 0 / 15px 35px 0 0;
        transform: translateX(2%);
    }
    75% {
        border-radius: 48% 52% 0 0 / 28px 18px 0 0;
    }
    100% {
        border-radius: 50% 50% 0 0 / 20px 30px 0 0;
        transform: translateX(0);
    }
}

/* --- Responsive --- */
@media (max-width: 700px) {
    .content-column {
        padding: 2rem 1rem 0;
    }

    .journal-entry,
    .menu-board,
    .postcard,
    .seasonal {
        padding: 2rem 1.5rem;
    }

    .menu-board {
        transform: rotate(-0.5deg);
    }

    .postcard {
        transform: rotate(0.8deg);
    }
}

@media (max-width: 400px) {
    .menu-item {
        flex-wrap: wrap;
    }

    .menu-dots {
        display: none;
    }

    .menu-detail {
        display: block;
        width: 100%;
        padding-left: 0.5rem;
    }
}
