@import "tailwindcss"; /* ───────────────────────────────────────────────────────── Places App — Design tokens (warm travel) shadcn-flavoured CSS variables, OKLCH-based. ───────────────────────────────────────────────────────── */ :root { /* Type */ --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", "Segoe UI", system-ui, sans-serif; --font-display: "Newsreader", "Iowan Old Style", "Georgia", serif; /* Radius scale (driven by --r) */ --r: 1; --radius-sm: calc(6px * var(--r)); --radius-md: calc(10px * var(--r)); --radius-lg: calc(14px * var(--r)); --radius-xl: calc(20px * var(--r)); --radius-2xl: calc(28px * var(--r)); --radius-pill: 9999px; /* Spacing (compact <-> comfy via density) */ --d: 1; --pad-x: 16px; --row-gap: calc(12px * var(--d)); --card-pad: calc(14px * var(--d)); /* Light palette — warm travel */ --background: oklch(98% 0.008 75); --background-soft: oklch(96.5% 0.012 75); --card: oklch(100% 0 0); --foreground: oklch(22% 0.018 55); --muted: oklch(95% 0.012 75); --muted-foreground: oklch(48% 0.022 55); --subtle-foreground: oklch(62% 0.018 55); --border: oklch(91% 0.014 70); --border-strong: oklch(86% 0.018 70); --input: oklch(96% 0.01 75); /* Accent (primary terracotta) */ --primary: oklch(58% 0.155 38); --primary-soft: oklch(94% 0.04 38); --primary-foreground: oklch(99% 0.005 75); --ring: oklch(58% 0.155 38 / 0.4); /* Semantic */ --success: oklch(58% 0.13 155); --success-soft: oklch(94% 0.05 155); --warning: oklch(72% 0.15 75); --warning-soft: oklch(95% 0.06 75); --danger: oklch(58% 0.18 25); --danger-soft: oklch(95% 0.05 25); --star: oklch(74% 0.15 75); /* Category accents */ --cat-food: oklch(60% 0.16 35); --cat-cafe: oklch(50% 0.07 55); --cat-shopping: oklch(58% 0.14 320); --cat-entertainment: oklch(55% 0.12 200); --cat-other: oklch(55% 0.02 60); /* Shadows */ --shadow-sm: 0 1px 2px rgba(28, 22, 14, 0.05); --shadow-md: 0 1px 3px rgba(28, 22, 14, 0.06), 0 4px 10px rgba(28, 22, 14, 0.04); --shadow-lg: 0 4px 12px rgba(28, 22, 14, 0.08), 0 16px 40px rgba(28, 22, 14, 0.08); --shadow-sheet: 0 -8px 30px rgba(28, 22, 14, 0.12); } [data-theme="dark"] { --background: oklch(16% 0.014 55); --background-soft: oklch(19% 0.014 55); --card: oklch(21% 0.015 55); --foreground: oklch(96% 0.006 75); --muted: oklch(24% 0.014 55); --muted-foreground: oklch(68% 0.018 55); --subtle-foreground: oklch(56% 0.018 55); --border: oklch(28% 0.016 55); --border-strong: oklch(34% 0.018 55); --input: oklch(24% 0.014 55); --primary: oklch(72% 0.135 40); --primary-soft: oklch(28% 0.06 40); --primary-foreground: oklch(14% 0.014 55); --ring: oklch(72% 0.135 40 / 0.4); --success: oklch(72% 0.12 155); --success-soft: oklch(28% 0.05 155); --warning: oklch(78% 0.13 75); --warning-soft: oklch(28% 0.06 75); --danger: oklch(70% 0.16 25); --danger-soft: oklch(28% 0.06 25); --star: oklch(80% 0.14 75); --cat-food: oklch(72% 0.14 35); --cat-cafe: oklch(68% 0.05 55); --cat-shopping: oklch(72% 0.13 320); --cat-entertainment: oklch(72% 0.11 200); --cat-other: oklch(68% 0.02 60); --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.4), 0 4px 10px rgba(0, 0, 0, 0.3); --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.45), 0 16px 40px rgba(0, 0, 0, 0.4); --shadow-sheet: 0 -8px 30px rgba(0, 0, 0, 0.55); } /* ── Reset / base ── */ * { box-sizing: border-box; } html, body { margin: 0; padding: 0; height: 100%; } body { font-family: var(--font-sans); background: var(--background); color: var(--foreground); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; } button { font-family: inherit; cursor: pointer; } input, textarea { font-family: inherit; } .no-scrollbar { scrollbar-width: none; } .no-scrollbar::-webkit-scrollbar { display: none; } /* ── App shell — mobile-first frame (max 480px), full-bleed below ── */ .app-frame { position: relative; width: 100%; max-width: 480px; margin: 0 auto; min-height: 100dvh; background: var(--background); color: var(--foreground); display: flex; flex-direction: column; overflow: hidden; font-family: var(--font-sans); font-size: 16px; line-height: 1.5; } @media (min-width: 481px) { .app-frame { height: 100dvh; border-left: 0.5px solid var(--border); border-right: 0.5px solid var(--border); box-shadow: var(--shadow-lg); } } .app-surface { flex: 1; min-height: 0; background: var(--background); color: var(--foreground); display: flex; flex-direction: column; font-family: var(--font-sans); font-size: 16px; line-height: 1.5; } .app-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; position: relative; } /* ── Sticky top header ── */ .app-header { position: sticky; top: 0; z-index: 20; background: color-mix(in oklch, var(--background) 92%, transparent); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border-bottom: 0.5px solid var(--border); } /* ── Bottom tab bar ── */ .tabbar { position: relative; z-index: 30; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; height: 64px; padding-bottom: env(safe-area-inset-bottom, 0); background: color-mix(in oklch, var(--card) 88%, transparent); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); border-top: 0.5px solid var(--border); } .tabbar-btn { appearance: none; border: 0; background: transparent; height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--subtle-foreground); font-size: 11px; font-weight: 500; letter-spacing: 0.01em; transition: color 0.15s ease; } .tabbar-btn[data-active="true"] { color: var(--primary); } .tabbar-fab { position: absolute; right: 16px; bottom: 84px; width: 56px; height: 56px; border-radius: 9999px; background: var(--primary); color: var(--primary-foreground); display: flex; align-items: center; justify-content: center; border: 0; z-index: 40; box-shadow: 0 2px 6px rgba(28, 22, 14, 0.18), 0 12px 28px rgba(28, 22, 14, 0.22); transition: transform 0.18s cubic-bezier(.3, .7, .4, 1); } .tabbar-fab:active { transform: scale(0.94); } [data-theme="dark"] .tabbar-fab { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 12px 28px rgba(0, 0, 0, 0.45); } /* ── Card ── */ .card { background: var(--card); border: 0.5px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); } /* ── Filter pills ── */ .pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 9999px; background: var(--card); border: 0.5px solid var(--border); color: var(--foreground); font-size: 14px; font-weight: 500; white-space: nowrap; flex-shrink: 0; transition: all 0.15s ease; } .pill[data-active="true"] { background: var(--foreground); color: var(--background); border-color: var(--foreground); } /* ── Badge ── */ .badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 9999px; background: var(--muted); color: var(--muted-foreground); font-size: 12px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; } .badge--outline { background: transparent; border: 0.5px solid var(--border-strong); } .badge--primary { background: var(--primary-soft); color: var(--primary); } .badge--success { background: var(--success-soft); color: var(--success); } /* ── Button ── */ .btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border: 0; border-radius: var(--radius-md); background: var(--primary); color: var(--primary-foreground); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; transition: opacity 0.15s ease, transform 0.1s ease; } .btn:active { transform: scale(0.98); } .btn:disabled { opacity: 0.5; } .btn--block { width: 100%; } .btn--lg { height: 52px; font-size: 16px; } .btn--ghost { background: var(--muted); color: var(--foreground); } .btn--outline { background: transparent; border: 0.5px solid var(--border-strong); color: var(--foreground); } .btn--icon { width: 44px; height: 44px; padding: 0; border-radius: 9999px; } .btn--danger { background: var(--danger); color: white; } /* ── Input / textarea ── */ .input { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border-radius: var(--radius-md); background: var(--input); border: 0.5px solid var(--border); color: var(--foreground); font-size: 16px; width: 100%; outline: none; transition: border-color 0.15s ease, background 0.15s ease; } .input:focus-within { border-color: var(--primary); background: var(--card); } .input input, .input textarea { flex: 1; border: 0; background: transparent; outline: none; color: inherit; font: inherit; min-width: 0; } .input--multi { height: auto; min-height: 96px; padding: 12px 14px; align-items: flex-start; } /* ── Star rating ── */ .stars { display: inline-flex; gap: 2px; } .stars button { background: transparent; border: 0; padding: 2px; display: flex; align-items: center; justify-content: center; } /* ── Place card ── */ .place-card { display: flex; gap: 12px; padding: var(--card-pad); background: var(--card); border-radius: var(--radius-lg); border: 0.5px solid var(--border); text-align: left; width: 100%; appearance: none; color: inherit; transition: transform 0.12s ease, box-shadow 0.15s ease; } .place-card:active { transform: scale(0.985); } /* ── Category icon-tile ── */ .cat-tile { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: inherit; background: color-mix(in oklch, var(--cat-color) 20%, var(--background-soft)); color: var(--cat-color); } /* ── Headline (display) ── */ .display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; font-feature-settings: "ss01" on; } /* ── Toast ── */ .toast { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); padding: 12px 16px; background: oklch(20% 0.018 55); color: oklch(98% 0.005 75); border-radius: 9999px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 100; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; animation: toast-in 0.22s cubic-bezier(.3, .7, .4, 1); } @keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } } /* ── Overlay / sheet / dialog ── */ .overlay { position: absolute; inset: 0; background: rgba(20, 14, 8, 0.4); z-index: 200; animation: fade-in 0.18s ease; } @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } } .sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 210; background: var(--card); border-top-left-radius: var(--radius-2xl); border-top-right-radius: var(--radius-2xl); box-shadow: var(--shadow-sheet); max-height: 85%; display: flex; flex-direction: column; animation: sheet-in 0.28s cubic-bezier(.3, .7, .4, 1); padding-bottom: 24px; } @keyframes sheet-in { from { transform: translateY(100%); } to { transform: translateY(0); } } .sheet-handle { width: 36px; height: 5px; border-radius: 9999px; background: var(--border-strong); margin: 8px auto 4px; } .dialog { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 210; background: var(--card); border-radius: var(--radius-xl); width: calc(100% - 32px); max-width: 380px; max-height: 90%; box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; animation: dialog-in 0.22s cubic-bezier(.3, .7, .4, 1); } @keyframes dialog-in { from { opacity: 0; transform: translate(-50%, -46%) scale(0.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } } /* ── Page transition ── */ .page-enter { animation: page-in 0.2s ease; } @keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } } /* ── Avatar stack ── */ .avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; background: var(--muted); color: var(--muted-foreground); overflow: hidden; font-weight: 600; font-size: 13px; flex-shrink: 0; } .avatar img { width: 100%; height: 100%; object-fit: cover; } .avatar-stack { display: inline-flex; } .avatar-stack > * { margin-left: -8px; box-shadow: 0 0 0 2px var(--card); } .avatar-stack > *:first-child { margin-left: 0; } /* ── Tabs ── */ .tabs { display: flex; background: var(--muted); border-radius: var(--radius-md); padding: 4px; gap: 2px; } .tabs button { appearance: none; flex: 1; height: 36px; border: 0; background: transparent; border-radius: calc(var(--radius-md) - 2px); color: var(--muted-foreground); font-size: 14px; font-weight: 500; transition: all 0.15s ease; } .tabs button[data-active="true"] { background: var(--card); color: var(--foreground); box-shadow: var(--shadow-sm); } /* ── Progress bar ── */ .progress { height: 6px; border-radius: 9999px; background: var(--muted); overflow: hidden; } .progress > div { height: 100%; background: var(--primary); border-radius: 9999px; transition: width 0.4s cubic-bezier(.3, .7, .4, 1); } /* ── Divider ── */ .divider { height: 0.5px; background: var(--border); margin: 0; border: 0; } /* ── Skeleton for missing cover ── */ .cover-fallback { background: radial-gradient(ellipse at 30% 20%, color-mix(in oklch, var(--cat-color) 30%, transparent), transparent 60%), radial-gradient(ellipse at 80% 90%, color-mix(in oklch, var(--cat-color) 18%, transparent), transparent 60%), var(--background-soft); } /* ── Offline banner ── */ .offline-banner { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--warning-soft); color: oklch(38% 0.12 75); font-size: 13px; font-weight: 500; border-bottom: 0.5px solid color-mix(in oklch, var(--warning) 30%, transparent); } [data-theme="dark"] .offline-banner { color: var(--warning); } /* ── Checkbox ── */ .checkbox { appearance: none; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--border-strong); background: var(--card); display: inline-flex; align-items: center; justify-content: center; transition: all 0.15s ease; color: transparent; position: relative; } .checkbox[data-checked="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); } .checkbox svg { width: 14px; height: 14px; display: block; } /* ── ToggleGroup ── */ .toggle-group { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; } .toggle-group button { appearance: none; border: 1px solid var(--border); background: var(--card); border-radius: var(--radius-md); padding: 10px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted-foreground); font-size: 12px; font-weight: 500; height: 72px; transition: all 0.15s ease; } .toggle-group button[data-active="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); } /* ── Detail page hero scrim ── */ .hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.7) 100%); } /* Focus rings */ :focus { outline: none; } :focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }