﻿:root {
    --bg: #eef1ec;
    --panel: #fbfcf8;
    --panel-strong: #ffffff;
    --ink: #213027;
    --ink-soft: #5e6f64;
    --line: #d7dfd4;
    --accent: #2f6f52;
    --accent-strong: #214f3b;
    --accent-soft: #dcebe2;
    --accent-ghost: rgba(47, 111, 82, 0.12);
    --warn: #c86d2a;
    --danger: #b04836;
    --shadow: 0 18px 40px rgba(33, 48, 39, 0.08);
    --radius: 20px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", "Noto Sans KR", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(164, 196, 175, 0.25), transparent 32%),
        linear-gradient(180deg, #f5f7f2 0%, var(--bg) 100%);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.shell { min-height: 100vh; padding: 24px; }

.topbar, .panel, .form-card, .calendar-day, .list-row {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 28px;
    border-radius: 28px;
}

.topbar-main { display: flex; flex-direction: column; gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.topbar-user { color: var(--ink-soft); font-weight: bold; font-size: 16px; }

.topnav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.topnav a, .button, button {
/*    display: inline-flex;
    align-items: center;
    justify-content: center; */
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.topnav a:nth-child(-n+4) { background: var(--accent-ghost); color: var(--accent-strong); }
.topnav a:hover, .button:hover, button:hover { transform: translateY(-1px); }
.button-secondary { background: var(--accent-ghost); color: var(--accent-strong); }
.button-danger { background: var(--danger); }

.content { margin-top: 24px; display: grid; gap: 24px; }
.hero-grid, .two-column, .dashboard-grid, .form-grid, .stats-grid, .list-grid { display: grid; gap: 20px; }
.hero-grid, .two-column, .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.panel, .form-card { padding: 24px; border-radius: var(--radius); }
.panel h1, .panel h2, .form-card h1, .form-card h2 { margin: 0 0 12px; letter-spacing: -0.03em; }

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lede, .muted, .helper { color: var(--ink-soft); }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 20px 0; }

.stat {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(240,246,241,0.95));
    border: 1px solid var(--line);
}

.stat strong { display: block; font-size: 1.7rem; margin-top: 10px; }

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.weekday { padding: 10px 8px; text-align: center; color: var(--ink-soft); font-weight: 700; }
.weekday.is-weekend { color: var(--danger); }

.calendar-day {
    min-height: 150px;
    padding: 14px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
}

.calendar-day.is-empty { background: rgba(255, 255, 255, 0.35); box-shadow: none; }
.calendar-day.is-today { outline: 2px solid rgba(47, 111, 82, 0.35); }
.calendar-day.is-weekend .day-number,
.calendar-day.is-weekend .day-weekday { color: var(--danger); }
.day-heading { display: flex; align-items: baseline; gap: 6px; }
.day-number { font-weight: 800; }
.day-weekday { font-size: 0.92rem; color: var(--ink-soft); }

.booking-chip, .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.84rem;
}

.booking-chip { background: rgba(47, 111, 82, 0.1); color: var(--accent-strong); width: 100%; justify-content: flex-start; flex-wrap: wrap; }
.booking-link { position: relative; z-index: 1; }
.status-pill { color: #fff; }
.status-active { background: var(--accent); }
.status-cancelled { background: var(--danger); }

.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 700; }

.field input, .field select, .field textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--panel-strong);
    color: var(--ink);
}

.field textarea { min-height: 110px; resize: vertical; }

.flash {
    margin-top: 18px;
    padding: 15px 18px;
    border-radius: 16px;
    font-weight: 600;
}

.flash-success { background: var(--accent-soft); color: var(--accent-strong); }
.flash-error { background: rgba(176, 72, 54, 0.14); color: #7d2f22; }

.list-row {
    padding: 18px 20px;
    border-radius: 18px;
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr auto;
    gap: 14px;
    align-items: center;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.auth-wrap { max-width: 1100px; margin: 0 auto; }
.auth-simple { max-width: 520px; }
.auth-card, .narrow-card { max-width: 720px; margin: 0 auto; }

.helper { font-size: 0.92rem; }
.detail-list { display: grid; gap: 14px; }
.detail-list div { display: grid; gap: 4px; }
.detail-list strong { font-size: 0.9rem; color: var(--ink-soft); }
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.theme-option { width: 100%; padding: 14px 12px; border-radius: 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.theme-option.is-active { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent-soft); }
.theme-swatch { width: 100%; height: 22px; border-radius: 999px; display: block; margin-bottom: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }

.filter-bar { margin-bottom: 20px; }
.filter-field { max-width: 320px; }
.weekday-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.weekday-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
}
.segmented {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px;
    border-radius: 999px;
    background: var(--accent-soft);
}
.segment {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}
.segment input { display: none; }
.segment.is-active { background: #fff; color: var(--accent-strong); box-shadow: 0 6px 18px rgba(33,48,39,0.08); }
.is-hidden { display: none; }
.toggle-line { display: inline-flex; gap: 10px; align-items: center; }

.weak { font-weight: normal; opacity: 0.45; }
.strike { text-decoration: line-through; }

@media (max-width: 980px) {
    .hero-grid, .two-column, .dashboard-grid, .form-grid, .stats-grid, .list-row { grid-template-columns: 1fr; }
    .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .calendar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .weekday,
    .calendar-day.is-empty { display: none; }
    .calendar-day { min-height: auto; }
}

@media (max-width: 640px) {
    .shell { padding: 16px; padding-top: 0px; }
    .topbar { padding: 20px; border-radius: 24px; flex-direction: column; }
    .topnav { justify-content: flex-start; }
    .calendar-grid { grid-template-columns: 1fr; }
    .theme-grid { grid-template-columns: 1fr; }
}

.landing-body {
    min-height: 100vh;
    color: #1f2b22;
    background:
        radial-gradient(circle at 16% 18%, rgba(248, 221, 83, 0.34), transparent 20%),
        radial-gradient(circle at 84% 22%, rgba(97, 166, 101, 0.18), transparent 24%),
        linear-gradient(180deg, #f9f7ef 0%, #eef2e5 52%, #e5ecdd 100%);
}

.landing-page {
    min-height: 100vh;
    padding: clamp(20px, 4vw, 44px);
    display: grid;
    gap: clamp(22px, 3vw, 34px);
}

.landing-hero {
    min-height: min(82vh, 860px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

.landing-copy {
    max-width: 620px;
    position: relative;
    z-index: 1;
}

.landing-kicker {
    margin: 0 0 18px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: rgba(31, 43, 34, 0.58);
}

.landing-copy h1 {
    margin: 0;
    font-family: "Noto Serif KR", "Times New Roman", serif;
    font-size: clamp(3rem, 8vw, 6.4rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.landing-lede {
    margin: 22px 0 0;
    max-width: 28rem;
    font-size: clamp(1.08rem, 2vw, 1.34rem);
    line-height: 1.7;
    color: rgba(31, 43, 34, 0.78);
}

.landing-note {
    margin: 18px 0 0;
    max-width: 28rem;
    color: rgba(31, 43, 34, 0.62);
}

.landing-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    align-items: center;
}

.landing-text-link {
    font-weight: 700;
    color: var(--accent-strong);
}

.landing-visual {
    position: relative;
    min-height: 380px;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.landing-glow {
    position: absolute;
    inset: 12% 10% 4%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 36%, rgba(249, 228, 113, 0.58), transparent 34%),
        radial-gradient(circle at 56% 52%, rgba(92, 180, 72, 0.22), transparent 42%);
    filter: blur(16px);
    animation: landing-glow-float 5.5s ease-in-out infinite;
}

.landing-logo-art {
    width: min(100%, 520px);
    filter: drop-shadow(0 28px 40px rgba(62, 84, 56, 0.14));
    transform: translateY(0);
    animation: landing-art-float 5.5s ease-in-out infinite;
}

.portal-split {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.portal-panel {
    min-height: 240px;
    padding: clamp(24px, 3vw, 34px);
    display: grid;
    align-content: end;
    gap: 12px;
    border-radius: 32px;
    color: #1f2b22;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 24px 52px rgba(41, 53, 45, 0.1);
}

.portal-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.8), transparent 58%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.7), transparent 34%);
    pointer-events: none;
}

.portal-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 58px rgba(41, 53, 45, 0.16);
}

.portal-panel strong,
.portal-panel p,
.portal-panel span {
    position: relative;
    z-index: 1;
}

.portal-panel-vehicle {
    background:
        radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.62), transparent 22%),
        linear-gradient(135deg, #f4ebbf 0%, #e0cf7b 100%);
}

.portal-panel-room {
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.66), transparent 22%),
        linear-gradient(135deg, #cfdcc8 0%, #9ab98f 100%);
}

.portal-panel-education {
    background:
        radial-gradient(circle at 75% 14%, rgba(255, 255, 255, 0.6), transparent 22%),
        linear-gradient(135deg, #dcc8cf 0%, #b98f9a 100%);
}

.portal-label,
.landing-strip-label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(31, 43, 34, 0.52);
}

.portal-panel strong {
    font-family: "Noto Serif KR", "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.portal-panel p,
.landing-strip p {
    margin: 0;
    max-width: 25rem;
    line-height: 1.65;
    color: rgba(31, 43, 34, 0.78);
}

.portal-meta {
    margin-top: 10px;
    font-weight: 700;
}

.landing-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 18px 0 10px;
    border-top: 1px solid rgba(31, 43, 34, 0.12);
}

.landing-strip > div {
    display: grid;
    gap: 10px;
}

@keyframes landing-art-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes landing-glow-float {
    0%, 100% { transform: scale(1) translateY(0); opacity: 0.85; }
    50% { transform: scale(1.03) translateY(-8px); opacity: 1; }
}

@media (max-width: 980px) {
    .landing-hero,
    .portal-split,
    .landing-strip {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        min-height: auto;
    }

    .landing-copy {
        max-width: none;
    }

    .landing-visual {
        order: -1;
        min-height: 300px;
    }
}

@media (max-width: 640px) {
    .landing-page {
        padding: 18px 16px 28px;
    }

    .landing-copy h1 {
        font-size: clamp(2.6rem, 15vw, 4.1rem);
    }

    .landing-lede {
        font-size: 1rem;
    }

    .landing-actions {
        align-items: stretch;
    }

    .landing-actions .button,
    .landing-actions .button-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .landing-logo-art {
        width: min(100%, 400px);
    }

    .portal-panel {
        min-height: 220px;
        border-radius: 26px;
    }
}
