thefoldwithin-earth/public/styles.css

216 lines
4.8 KiB
CSS
Raw Normal View History

2025-11-08 18:22:49 -06:00
:root {
--bg: #0b0b0b;
--fg: #e6e3d7;
--accent: #e0b84b;
--topbar-h: 56px;
2025-11-08 23:25:45 -06:00
--subnav-h: 44px;
2025-11-08 16:08:45 -06:00
--transition: .3s ease;
2025-11-08 18:22:49 -06:00
--radius: 8px;
2025-11-08 13:57:15 -06:00
}
2025-11-08 18:22:49 -06:00
* { box-sizing: border-box; }
html, body {
margin: 0; padding: 0; height: 100%;
background: var(--bg); color: var(--fg);
font-family: 'Inter', system-ui, sans-serif;
line-height: 1.6;
2025-11-08 13:57:15 -06:00
}
2025-11-08 18:22:49 -06:00
.topbar {
position: fixed; top: 0; left: 0; right: 0;
height: var(--topbar-h); display: flex; align-items: center;
background: #111; border-bottom: 1px solid #222;
padding: 0 1rem; z-index: 1000; gap: 1.5rem;
2025-11-08 19:16:43 -06:00
overflow: hidden;
2025-11-08 15:25:41 -06:00
}
2025-11-08 18:22:49 -06:00
#menuBtn {
background: none; border: 0; color: var(--accent);
2025-11-08 19:16:43 -06:00
font-size: 1.4rem; cursor: pointer; font-weight: bold;
line-height: 1; padding: 0; margin: 0;
min-width: 2.5rem;
2025-11-08 14:39:49 -06:00
}
2025-11-08 18:22:49 -06:00
.primary-nav {
display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center;
2025-11-08 19:16:43 -06:00
overflow-x: auto;
white-space: nowrap;
2025-11-08 13:57:15 -06:00
}
2025-11-08 15:25:41 -06:00
2025-11-08 18:22:49 -06:00
.primary-nav a {
color: var(--accent); text-decoration: none;
font-weight: 600; font-size: 1.1rem;
transition: all var(--transition);
2025-11-08 13:57:15 -06:00
}
2025-11-08 18:22:49 -06:00
.primary-nav a:hover {
text-shadow: 0 0 8px var(--accent);
}
2025-11-08 13:57:15 -06:00
2025-11-09 00:10:12 -06:00
/* NESTED HORIZON: Emergent Sub-Navigation with Animation */
2025-11-08 23:25:45 -06:00
.sub-nav {
display: none;
position: fixed;
top: var(--topbar-h);
left: 0; right: 0;
height: var(--subnav-h);
background: #0e0e0e;
border-bottom: 1px solid #222;
padding: 0 1rem;
gap: 1rem;
overflow-x: auto;
white-space: nowrap;
z-index: 950;
align-items: center;
opacity: 0;
2025-11-09 00:10:12 -06:00
transform: translateY(-5px);
transition: opacity var(--transition), transform var(--transition);
2025-11-08 23:25:45 -06:00
}
.sub-nav.visible {
display: flex;
opacity: 1;
2025-11-09 00:10:12 -06:00
transform: translateY(0);
animation: fadeSlideDown .3s ease forwards;
}
@keyframes fadeSlideDown {
from { opacity: 0; transform: translateY(-5px); }
to { opacity: 1; transform: translateY(0); }
2025-11-08 23:25:45 -06:00
}
.sub-nav a {
color: var(--accent);
text-decoration: none;
font-weight: 500;
font-size: 0.95rem;
transition: all var(--transition);
}
.sub-nav a:hover {
text-shadow: 0 0 6px var(--accent);
}
2025-11-08 18:22:49 -06:00
#sidebar {
2025-11-08 23:25:45 -06:00
position: fixed; top: calc(var(--topbar-h) + var(--subnav-h)); left: 0;
2025-11-08 18:22:49 -06:00
width: 300px; bottom: 0; overflow: auto;
background: #111; border-right: 1px solid #222;
transform: translateX(-100%); transition: transform var(--transition);
z-index: 900; padding: 1rem;
2025-11-08 13:57:15 -06:00
}
2025-11-08 18:22:49 -06:00
body.sidebar-open #sidebar { transform: translateX(0); }
2025-11-08 13:57:15 -06:00
2025-11-08 18:22:49 -06:00
.sidebar-header {
display: flex; justify-content: space-between; align-items: center;
margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid #222;
2025-11-08 13:36:05 -06:00
}
2025-11-08 18:22:49 -06:00
.sidebar-header h3 {
margin: 0; font-size: 1.1rem; color: var(--accent);
2025-11-08 16:08:45 -06:00
}
2025-11-08 18:22:49 -06:00
.toggle-btn {
background: none; border: 1px solid #333; color: var(--fg);
padding: .25rem .5rem; border-radius: var(--radius);
font-size: .8rem; cursor: pointer;
2025-11-08 16:08:45 -06:00
}
2025-11-08 18:22:49 -06:00
#postListSection { margin-bottom: 1rem; }
#postList {
list-style: none; margin: 0; padding: 0;
2025-11-08 12:59:46 -06:00
}
2025-11-08 13:36:05 -06:00
2025-11-08 18:22:49 -06:00
#postList li {
margin: .75rem 0; padding: .5rem 0;
border-bottom: 1px dashed #222;
2025-11-08 16:08:45 -06:00
transition: color var(--transition);
2025-11-08 13:57:15 -06:00
}
2025-11-08 18:22:49 -06:00
#postList a {
color: var(--fg); text-decoration: none; font-weight: 500;
display: block;
2025-11-08 14:39:49 -06:00
}
2025-11-08 13:57:15 -06:00
2025-11-08 18:22:49 -06:00
#postList a:hover { color: var(--accent); }
#postList small {
display: block; font-size: .8rem; color: #888; margin-top: .25rem;
2025-11-08 14:39:49 -06:00
}
2025-11-08 18:22:49 -06:00
.filter-panel {
background: #0a0a0a; border: 1px solid #222;
border-radius: var(--radius); padding: .75rem;
margin-top: 1rem;
}
.filter-panel summary {
cursor: pointer; font-weight: 600; color: var(--accent);
margin-bottom: .5rem; user-select: none;
}
.filter-controls {
display: flex; flex-direction: column; gap: .75rem;
}
.filter-controls label {
font-size: .85rem; color: var(--accent); margin-bottom: .25rem;
}
.filter-controls select, .filter-controls input {
background: #111; color: var(--fg); border: 1px solid #333;
padding: .5rem; border-radius: var(--radius); font-size: .9rem;
}
.filter-controls select[multiple] {
height: 80px;
}
.content {
2025-11-08 23:25:45 -06:00
margin-top: calc(var(--topbar-h) + var(--subnav-h)); margin-left: 0;
transition: margin-left var(--transition), margin-top var(--transition);
min-height: calc(100vh - var(--topbar-h) - var(--subnav-h));
2025-11-09 14:14:31 +00:00
padding: 0;
2025-11-08 14:39:49 -06:00
}
2025-11-08 13:57:15 -06:00
2025-11-08 18:22:49 -06:00
@media (min-width: 1024px) {
2025-11-08 23:25:45 -06:00
#sidebar { transform: translateX(0); top: calc(var(--topbar-h) + var(--subnav-h)); }
2025-11-08 18:22:49 -06:00
.content { margin-left: 300px; }
2025-11-08 16:08:45 -06:00
}
2025-11-09 14:14:31 +00:00
/* BREATHING HORIZON: Full-Field Viewer */
.viewer {
display: flex;
flex-direction: column;
height: 100%;
transition: background 1s ease;
}
.viewer:hover {
background: radial-gradient(circle at center, #111 0%, #0b0b0b 80%);
}
2025-11-08 18:22:49 -06:00
.viewer > * {
2025-11-09 14:14:31 +00:00
width: 100%;
margin: 0;
padding: 3rem 4vw;
2025-11-08 18:22:49 -06:00
animation: fadeIn .4s ease-out;
2025-11-08 16:08:45 -06:00
}
@keyframes fadeIn {
2025-11-08 18:22:49 -06:00
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
2025-11-08 15:25:41 -06:00
}
2025-11-08 15:06:10 -06:00
2025-11-08 18:22:49 -06:00
.viewer iframe {
2025-11-09 14:14:31 +00:00
flex: 1;
width: 100vw;
min-height: 100vh;
border: none;
border-radius: 0;
margin: 0;
2025-11-08 18:22:49 -06:00
display: block;
2025-11-09 14:14:31 +00:00
}