@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,600&family=Outfit:wght@200;300;400;500;600;700&display=swap');

:root {
    --peach:   #ffb347;
    --honey:   #f9a825;
    --cream:   #fff8f0;
    --warm:    #e8956d;
    --text:    #3d2b1f;
    --muted:   #8a6a55;
    --glass:   rgba(255, 248, 240, 0.72);
    --border:  rgba(232, 149, 109, 0.2);
    --shadow:  0 12px 40px rgba(232, 149, 109, 0.12);
    --radius:  24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: linear-gradient(145deg, #fff8f0 0%, #fef3e2 50%, #fde8d0 100%);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---- Background Orbs ---- */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 18s ease-in-out infinite alternate;
}
.orb-peach  { width: 500px; height: 500px; background: #ffb347; top: -120px; left: -120px; animation-delay: 0s; }
.orb-honey  { width: 400px; height: 400px; background: #f9a825; bottom: -100px; right: -80px; animation-delay: -6s; }
.orb-cream  { width: 300px; height: 300px; background: #fde8d0; top: 40%; left: 55%; animation-delay: -12s; }

@keyframes floatOrb {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(25px, 40px) scale(1.08); }
}

/* ---- Nav ---- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.1rem 2rem;
    background: rgba(255, 248, 240, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-back {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--warm);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}
.nav-back:hover { opacity: 0.7; }
.nav-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--warm);
}

/* ---- Page Layout ---- */
.page-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 7rem 1.5rem 5rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ---- Hero ---- */
.hero-section { text-align: center; padding: 2rem 0 1rem; }
.hero-badge {
    display: inline-block;
    background: rgba(232, 149, 109, 0.12);
    border: 1px solid var(--border);
    color: var(--warm);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.2rem;
}
.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 7vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 1rem;
}
.hero-title em { font-style: italic; color: var(--warm); }
.hero-sub {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* ---- Glass Card ---- */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
}
.glass-inner {
    background: rgba(255, 248, 240, 0.6);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
    margin-top: 1.5rem;
    position: relative;
}

/* ---- Section Headers ---- */
.section-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--warm);
    font-weight: 600;
    margin-bottom: 0.6rem;
}
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.section-sub {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* ---- Morning Locker ---- */
.locker-box {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.locker-icon {
    font-size: 5rem;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 8px 20px rgba(232, 149, 109, 0.3));
}
.locker-box:hover .locker-icon { transform: scale(1.08) rotate(-5deg); }

.locker-lock {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--warm);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(232, 149, 109, 0.4);
    transition: transform 0.3s ease;
}
.lock-icon { font-size: 1.3rem; line-height: 1; }
.lock-label { font-size: 0.5rem; color: white; font-weight: 600; text-align: center; }

.locker-content { text-align: center; width: 100%; }
.locker-content.hidden { display: none; }

.morning-note {
    background: rgba(232, 149, 109, 0.08);
    border: 1px solid rgba(232, 149, 109, 0.2);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    animation: fadeSlideUp 0.5s ease;
}
.note-greeting {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--warm);
    margin-bottom: 0.4rem;
}
.note-text { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

.breakfast-reveal {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    animation: fadeSlideUp 0.6s ease 0.1s both;
}
.breakfast-emoji { font-size: 2.5rem; }
.breakfast-name { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; }
.breakfast-time { font-size: 0.78rem; color: var(--warm); font-weight: 500; }

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.unlock-btn {
    display: block;
    margin: 0 auto;
    background: var(--warm);
    color: white;
    border: none;
    padding: 0.85rem 2.5rem;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(232, 149, 109, 0.35);
    transition: all 0.3s ease;
}
.unlock-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(232, 149, 109, 0.5); }
.unlock-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.unlock-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.8rem;
    min-height: 1.2em;
}

/* ---- Recipes Grid ---- */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.recipe-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.recipe-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(232,149,109,0), rgba(232,149,109,0.06));
    opacity: 0;
    transition: opacity 0.3s;
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(232,149,109,0.15); border-color: var(--warm); }
.recipe-card:hover::after { opacity: 1; }
.recipe-card-emoji { font-size: 2rem; margin-bottom: 0.6rem; display: block; }
.recipe-card-name { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.recipe-card-time { font-size: 0.72rem; color: var(--warm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; display: block; }
.recipe-card-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.recipe-card-hint { font-size: 0.72rem; color: var(--warm); margin-top: 0.5rem; font-style: italic; }

/* Recipe Detail Panel */
.recipe-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s;
}
.recipe-close:hover { color: var(--warm); }
.recipe-detail-emoji { font-size: 3rem; display: block; margin-bottom: 0.8rem; }
.recipe-detail-name { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: var(--text); margin-bottom: 0.3rem; }
.recipe-detail-time { font-size: 0.78rem; color: var(--warm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 1.2rem; }
.recipe-steps { padding-left: 1.4rem; margin-bottom: 1rem; }
.recipe-steps li { font-size: 0.9rem; color: var(--text); line-height: 1.7; margin-bottom: 0.4rem; }
.recipe-tip { font-size: 0.82rem; font-style: italic; color: var(--warm); background: rgba(232,149,109,0.08); padding: 0.7rem 1rem; border-radius: 10px; border-left: 3px solid var(--warm); }

/* ---- Meal Tracker ---- */
.meal-tracker { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.meal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.1rem 1.4rem;
    transition: all 0.3s ease;
}
.meal-row.done {
    background: rgba(232, 149, 109, 0.08);
    border-color: rgba(232, 149, 109, 0.4);
}
.meal-info { display: flex; align-items: center; gap: 1rem; }
.meal-emoji { font-size: 1.8rem; }
.meal-name { font-size: 1rem; font-weight: 600; color: var(--text); }
.meal-time-hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.1rem; }
.meal-tick {
    background: none;
    border: 1.5px solid var(--warm);
    color: var(--warm);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.meal-tick:hover { background: var(--warm); color: white; }
.meal-tick.ticked { background: var(--warm); color: white; cursor: default; }

/* Tracker Summary Ring */
.tracker-summary {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(232, 149, 109, 0.06);
    border: 1px solid rgba(232, 149, 109, 0.15);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
}
.summary-ring-wrap { position: relative; width: 60px; height: 60px; flex-shrink: 0; }
.summary-ring-svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.summary-ring-bg { fill: none; stroke: rgba(232,149,109,0.1); stroke-width: 5; }
.summary-ring-fg {
    fill: none;
    stroke: var(--warm);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 100.53;
    stroke-dashoffset: 100.53;
    transition: stroke-dashoffset 0.6s ease;
}
.summary-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--warm);
}
.summary-label { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

/* ---- Hydration Section ---- */
.hydration-section { text-align: center; }
.hydration-center { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.hydration-ring-wrap { position: relative; width: 180px; height: 180px; }
.hydration-svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.h-ring-bg { fill: none; stroke: rgba(232,149,109,0.1); stroke-width: 8; }
.h-ring-fg {
    fill: none;
    stroke: var(--warm);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 314.16;
    stroke-dashoffset: 314.16;
    transition: stroke-dashoffset 0.6s ease;
    filter: drop-shadow(0 0 6px rgba(232,149,109,0.4));
    animation: pulseGlow 3s infinite alternate;
}
@keyframes pulseGlow {
    0%   { filter: drop-shadow(0 0 3px rgba(232,149,109,0.2)); }
    100% { filter: drop-shadow(0 0 12px rgba(232,149,109,0.6)); }
}
.hydration-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
}
.hydration-drop { font-size: 1.8rem; }
.hydration-count { font-size: 2.2rem; font-weight: 700; color: var(--warm); line-height: 1; }
.hydration-max { font-size: 0.85rem; color: var(--muted); }

.hydration-controls { display: flex; gap: 1rem; }
.h-btn {
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.h-add { background: var(--warm); color: white; box-shadow: 0 4px 15px rgba(232,149,109,0.35); }
.h-add:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(232,149,109,0.5); }
.h-add:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.h-reset { background: none; border: 1.5px solid var(--border); color: var(--muted); }
.h-reset:hover { border-color: var(--warm); color: var(--warm); }

.hydration-msg { font-size: 0.9rem; color: var(--muted); font-style: italic; min-height: 1.4em; }

/* Pulse Reminder */
.pulse-reminder {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
    padding: 0.9rem 1.2rem;
    background: rgba(232, 149, 109, 0.06);
    border: 1px solid rgba(232, 149, 109, 0.15);
    border-radius: 12px;
}
.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--warm);
    flex-shrink: 0;
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.5); opacity: 0.5; }
}
.pulse-text { font-size: 0.82rem; color: var(--muted); }

/* ---- Ritik's Note ---- */
.note-section { background: linear-gradient(135deg, rgba(255,179,71,0.12), rgba(232,149,109,0.08)); }
.note-inner { position: relative; padding: 1rem 0; }
.note-quote-mark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 6rem;
    color: rgba(232, 149, 109, 0.2);
    line-height: 0.5;
    position: absolute;
    top: 0;
    left: -0.5rem;
}
.note-body {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.85;
    font-weight: 300;
    padding-left: 2rem;
    padding-top: 1rem;
}
.note-sign {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--warm);
    margin-top: 1.5rem;
    padding-left: 2rem;
}

/* ---- Footer ---- */
.footer {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    position: relative;
    z-index: 1;
}
.footer-back {
    display: inline-block;
    color: var(--warm);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    transition: opacity 0.2s;
}
.footer-back:hover { opacity: 0.7; }
.footer-note { font-size: 0.78rem; color: var(--muted); }

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .glass-card { padding: 1.5rem; }
    .hero-title { font-size: 2.4rem; }
    .meal-row { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
    .tracker-summary { flex-direction: column; text-align: center; }
}
