Files
spark/public/styles.css
T
2026-06-10 00:40:26 -04:00

664 lines
12 KiB
CSS

:root {
--bg: #0b0d12;
--bg-soft: #12151d;
--surface: #161a24;
--surface-2: #1d2230;
--border: #262c3a;
--text: #e8ebf2;
--muted: #8b93a7;
--accent: #7c5cff;
--accent-2: #00d4ff;
--danger: #ff5470;
--radius: 14px;
--shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
--grad: linear-gradient(135deg, var(--accent), var(--accent-2));
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
scroll-behavior: smooth;
}
body {
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
}
a {
color: inherit;
text-decoration: none;
}
.container {
width: 100%;
max-width: 1100px;
margin: 0 auto;
padding: 0 24px;
}
/* ---------- Buttons ---------- */
.btn {
display: inline-flex;
align-items: center;
gap: 8px;
border: 1px solid var(--border);
background: var(--surface-2);
color: var(--text);
padding: 10px 18px;
border-radius: 10px;
font-size: 0.95rem;
font-weight: 600;
cursor: pointer;
transition: transform 0.12s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn:hover {
transform: translateY(-1px);
border-color: var(--accent);
}
.btn-primary {
background: var(--grad);
border: none;
color: #fff;
box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.6);
}
.btn-ghost {
background: transparent;
}
.btn-danger {
color: var(--danger);
border-color: transparent;
background: transparent;
padding: 6px 10px;
}
.btn-danger:hover {
border-color: var(--danger);
}
.btn-sm {
padding: 6px 12px;
font-size: 0.85rem;
}
/* ---------- Nav ---------- */
.nav {
position: sticky;
top: 0;
z-index: 50;
backdrop-filter: blur(12px);
background: rgba(11, 13, 18, 0.7);
border-bottom: 1px solid var(--border);
}
.nav-inner {
display: flex;
align-items: center;
justify-content: space-between;
height: 68px;
}
.logo {
display: flex;
align-items: center;
gap: 10px;
font-weight: 800;
font-size: 1.2rem;
letter-spacing: -0.02em;
}
.logo .spark {
font-size: 1.4rem;
}
.gradient-text {
background: var(--grad);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
/* ---------- Landing ---------- */
.hero {
position: relative;
text-align: center;
padding: 120px 0 100px;
overflow: hidden;
}
.hero::before {
content: "";
position: absolute;
top: -200px;
left: 50%;
transform: translateX(-50%);
width: 700px;
height: 700px;
background: radial-gradient(
circle,
rgba(124, 92, 255, 0.25),
transparent 60%
);
filter: blur(40px);
z-index: -1;
}
.badge {
display: inline-block;
padding: 6px 14px;
border: 1px solid var(--border);
border-radius: 999px;
font-size: 0.82rem;
color: var(--muted);
margin-bottom: 28px;
background: var(--surface);
}
.hero h1 {
font-size: clamp(2.4rem, 6vw, 4.2rem);
line-height: 1.05;
letter-spacing: -0.03em;
font-weight: 800;
margin-bottom: 22px;
}
.hero p.sub {
font-size: 1.2rem;
color: var(--muted);
max-width: 620px;
margin: 0 auto 38px;
}
.hero-actions {
display: flex;
gap: 14px;
justify-content: center;
flex-wrap: wrap;
}
.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 22px;
padding: 40px 0 120px;
}
.feature-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 28px;
transition: transform 0.18s ease, border-color 0.2s ease;
}
.feature-card:hover {
transform: translateY(-4px);
border-color: var(--accent);
}
.feature-card .icon {
font-size: 1.8rem;
margin-bottom: 14px;
display: block;
}
.feature-card h3 {
font-size: 1.15rem;
margin-bottom: 8px;
}
.feature-card p {
color: var(--muted);
font-size: 0.95rem;
}
footer {
border-top: 1px solid var(--border);
padding: 30px 0;
color: var(--muted);
font-size: 0.9rem;
text-align: center;
}
/* ---------- App ---------- */
.app-main {
padding: 40px 0 80px;
}
.app-header {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 20px;
margin-bottom: 32px;
flex-wrap: wrap;
}
.app-header h1 {
font-size: 2rem;
letter-spacing: -0.02em;
}
.app-header p {
color: var(--muted);
}
.layout {
display: grid;
grid-template-columns: 380px 1fr;
gap: 28px;
align-items: start;
}
@media (max-width: 860px) {
.layout {
grid-template-columns: 1fr;
}
}
.panel {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 22px;
}
.panel h2 {
font-size: 1.05rem;
margin-bottom: 16px;
}
/* Forms */
.field {
margin-bottom: 14px;
}
.field label {
display: block;
font-size: 0.85rem;
color: var(--muted);
margin-bottom: 6px;
}
input[type="text"],
textarea {
width: 100%;
background: var(--bg-soft);
border: 1px solid var(--border);
border-radius: 10px;
color: var(--text);
padding: 11px 13px;
font-size: 0.95rem;
font-family: inherit;
resize: vertical;
transition: border-color 0.2s ease;
}
input[type="text"]:focus,
textarea:focus {
outline: none;
border-color: var(--accent);
}
/* Idea list */
.ideas-list {
display: flex;
flex-direction: column;
gap: 12px;
max-height: 70vh;
overflow-y: auto;
}
.idea-item {
border: 1px solid var(--border);
background: var(--bg-soft);
border-radius: 12px;
padding: 14px 16px;
cursor: pointer;
transition: border-color 0.18s ease, transform 0.12s ease;
}
.idea-item:hover {
border-color: var(--accent);
transform: translateX(2px);
}
.idea-item.active {
border-color: var(--accent);
background: var(--surface-2);
}
.idea-item h3 {
font-size: 1rem;
margin-bottom: 4px;
}
.idea-item .meta {
font-size: 0.78rem;
color: var(--muted);
display: flex;
gap: 10px;
}
.pill {
background: rgba(124, 92, 255, 0.15);
color: #b9a8ff;
padding: 1px 8px;
border-radius: 999px;
font-weight: 600;
}
/* Detail */
.detail-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
margin-bottom: 8px;
}
.detail-head h2 {
font-size: 1.5rem;
margin: 0;
}
.detail-desc {
color: var(--muted);
margin-bottom: 4px;
white-space: pre-wrap;
}
.detail-meta {
font-size: 0.8rem;
color: var(--muted);
margin-bottom: 24px;
}
.divider {
height: 1px;
background: var(--border);
margin: 18px 0;
}
/* Notes / comments */
.note {
display: flex;
gap: 12px;
padding: 14px 0;
border-bottom: 1px solid var(--border);
}
.note:last-child {
border-bottom: none;
}
.note .avatar {
width: 34px;
height: 34px;
border-radius: 50%;
background: var(--grad);
flex-shrink: 0;
display: grid;
place-items: center;
font-size: 0.9rem;
}
.note-body {
flex: 1;
min-width: 0;
}
.note-body .text {
white-space: pre-wrap;
word-wrap: break-word;
}
.note-time {
font-size: 0.75rem;
color: var(--muted);
margin-top: 4px;
display: flex;
align-items: center;
gap: 8px;
}
.note-time .del {
color: var(--danger);
cursor: pointer;
opacity: 0;
transition: opacity 0.15s ease;
}
.note:hover .note-time .del {
opacity: 1;
}
.note-composer {
margin-top: 18px;
display: flex;
flex-direction: column;
gap: 10px;
}
.note-composer .row {
display: flex;
justify-content: flex-end;
}
/* Empty / states */
.empty {
text-align: center;
color: var(--muted);
padding: 60px 20px;
}
.empty .big {
font-size: 2.5rem;
display: block;
margin-bottom: 12px;
}
/* ---------- Nav right / user chip ---------- */
.nav-right {
display: flex;
align-items: center;
gap: 12px;
}
.user-chip {
display: flex;
align-items: center;
gap: 9px;
padding: 5px 6px 5px 12px;
border: 1px solid var(--border);
border-radius: 999px;
background: var(--surface);
font-size: 0.88rem;
}
.user-chip img,
.user-chip .avatar-fallback {
width: 28px;
height: 28px;
border-radius: 50%;
}
.user-chip .avatar-fallback {
background: var(--grad);
display: grid;
place-items: center;
font-size: 0.85rem;
}
.user-chip .logout {
color: var(--muted);
cursor: pointer;
padding: 0 6px;
}
.user-chip .logout:hover {
color: var(--danger);
}
/* ---------- Login gate ---------- */
.login-gate {
min-height: calc(100vh - 68px);
display: grid;
place-items: center;
padding: 40px 20px;
}
.login-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 44px 38px;
max-width: 420px;
width: 100%;
text-align: center;
box-shadow: var(--shadow);
}
.login-card .spark.big {
font-size: 2.6rem;
display: block;
margin-bottom: 14px;
}
.login-card h1 {
font-size: 1.6rem;
margin-bottom: 10px;
letter-spacing: -0.02em;
}
.login-card p {
color: var(--muted);
margin-bottom: 26px;
}
.provider-buttons {
display: flex;
flex-direction: column;
gap: 12px;
}
.provider-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 13px;
border-radius: 10px;
border: 1px solid var(--border);
background: var(--surface-2);
color: var(--text);
font-weight: 600;
font-size: 0.98rem;
cursor: pointer;
transition: border-color 0.2s ease, transform 0.12s ease;
}
.provider-btn:hover {
border-color: var(--accent);
transform: translateY(-1px);
}
.provider-btn svg {
width: 20px;
height: 20px;
}
.login-error {
color: var(--danger);
margin-top: 18px !important;
margin-bottom: 0 !important;
font-size: 0.9rem;
}
.login-note {
font-size: 0.85rem;
margin-top: 18px !important;
margin-bottom: 0 !important;
}
/* ---------- Privacy controls ---------- */
.privacy-bar {
display: flex;
align-items: center;
gap: 14px;
flex-wrap: wrap;
background: var(--bg-soft);
border: 1px solid var(--border);
border-radius: 12px;
padding: 12px 14px;
margin-bottom: 18px;
}
.vis-badge {
font-size: 0.78rem;
font-weight: 600;
padding: 3px 10px;
border-radius: 999px;
}
.vis-badge.private {
background: rgba(139, 147, 167, 0.18);
color: var(--muted);
}
.vis-badge.public {
background: rgba(0, 212, 255, 0.16);
color: var(--accent-2);
}
/* Toggle switch */
.switch {
display: inline-flex;
align-items: center;
gap: 9px;
cursor: pointer;
font-size: 0.88rem;
color: var(--muted);
}
.switch input {
display: none;
}
.switch .track {
width: 40px;
height: 22px;
border-radius: 999px;
background: var(--surface-2);
border: 1px solid var(--border);
position: relative;
transition: background 0.2s ease;
}
.switch .track::after {
content: "";
position: absolute;
top: 2px;
left: 2px;
width: 16px;
height: 16px;
border-radius: 50%;
background: var(--muted);
transition: transform 0.2s ease, background 0.2s ease;
}
.switch input:checked + .track {
background: rgba(0, 212, 255, 0.25);
border-color: var(--accent-2);
}
.switch input:checked + .track::after {
transform: translateX(18px);
background: var(--accent-2);
}
.share-box {
margin-top: 4px;
margin-bottom: 18px;
background: var(--bg-soft);
border: 1px solid var(--border);
border-radius: 12px;
padding: 14px;
}
.share-box .share-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
}
.share-box h4 {
font-size: 0.92rem;
}
.share-row {
display: flex;
gap: 8px;
}
.share-row input {
flex: 1;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 0.82rem;
}
.share-hint {
color: var(--muted);
font-size: 0.82rem;
margin-top: 8px;
}
.read-only-banner {
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: 10px;
padding: 10px 14px;
font-size: 0.85rem;
color: var(--muted);
margin-bottom: 20px;
}
.toast {
position: fixed;
bottom: 24px;
left: 50%;
transform: translateX(-50%) translateY(100px);
background: var(--surface-2);
border: 1px solid var(--border);
padding: 12px 20px;
border-radius: 10px;
box-shadow: var(--shadow);
transition: transform 0.25s ease;
z-index: 100;
}
.toast.show {
transform: translateX(-50%) translateY(0);
}
.toast.error {
border-color: var(--danger);
}