:root { /* Font Variables */ --font-body: Palatino, 'Palatino Linotype', 'Palatino LT STD', 'Book Antiqua', Georgia, serif; /* System/UI Heading Font (Hardcoded) */ --font-heading-system: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Dynamic Heading Font (User Selectable) - default to system */ --font-heading: var(--font-heading-system); --font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; /* Monospace Font - Courier New first as requested */ --font-mono: 'Courier New', Courier, monospace; line-height: 1.5; font-size: 18px; /* Light Mode Defaults */ --bg-color: #ffffff; --text-color: rgba(0, 0, 0, 0.87); --sidebar-bg: #ccc; --link-color: #0000ee; --border-color: #999; --accent-color: #007bff; color-scheme: light dark; } /* Dark Mode Overrides */ .theme-dark { --bg-color: #1a1a1a; --text-color: #e0e0e0; --sidebar-bg: #2d2d2d; --link-color: #8ab4f8; --border-color: #444; --accent-color: #0056b3; } * { box-sizing: border-box; } body { margin: 0; font-family: var(--font-body); background-color: var(--bg-color); color: var(--text-color); height: 100vh; width: 100%; max-width: 100vw; overflow: hidden; /* Restore explicit hidden for app-shell feel */ } html { overflow-x: hidden; max-width: 100vw; } #app { height: 100%; width: 100%; } .layout { display: flex; height: 100%; width: 100%; overflow-x: hidden; position: relative; } /* Sidebar - matching v2 glass variant */ .sidebar { width: 11rem; background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-right: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-direction: column; height: 100%; overflow: hidden; z-index: 100; padding: 1.5rem; padding-top: 5rem; } .theme-dark .sidebar { background: rgba(0, 0, 0, 0.2); border-right-color: rgba(255, 255, 255, 0.05); } /* Sidebar Header Removed */ .sidebar-search { margin-top: 1rem; margin-bottom: 1rem; } .sidebar-search input { width: 100%; border-radius: 20px; background: rgba(0, 0, 0, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-color); padding: 0.5rem 1rem; font-size: 0.9rem; } .sidebar-scroll { flex: 1; overflow-y: auto; margin: 0 -1.5rem; padding: 0 1.5rem; } .sidebar-section h3 { font-family: var(--font-heading); font-size: 0.7rem; /* Slightly smaller */ text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.5; margin-top: 2rem; margin-bottom: 0.5rem; font-weight: 700; display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; } .sidebar-section h3:hover { opacity: 0.8; } .sidebar-section .caret { font-size: 0.6rem; transition: transform 0.2s ease; transform: rotate(90deg); /* Expanded by default in CSS, but we'll set collapsed in HTML */ } .sidebar-section.collapsed .caret { transform: rotate(0deg); } .sidebar-section.collapsed ul { display: none; } .sidebar-section ul { list-style: none; padding: 0; margin: 0; } .sidebar-section li a { display: block; padding: 0.3rem 0.8rem; margin: 0.1rem 0; border-radius: 8px; transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease; font-weight: 500; font-size: 0.85rem; /* Explicitly smaller sidebar links */ /* Explicit smaller size */ text-decoration: none; color: var(--text-color); opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-heading); } .sidebar-section li a:hover { background: rgba(255, 255, 255, 0.1); opacity: 1; transform: translateX(4px); } .sidebar-section li.active a { background: rgba(255, 255, 255, 0.25); opacity: 1; font-weight: 700; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); } .sidebar-footer { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-direction: column; gap: 0.5rem; } .sidebar-footer a { opacity: 0.6; padding: 0.5rem 0.8rem; border-radius: 8px; text-decoration: none; color: var(--text-color); font-size: 0.9rem; font-family: var(--font-heading); } .sidebar-footer a:hover { background: rgba(255, 255, 255, 0.05); opacity: 1; } /* Quick controls block in sidebar footer */ .sidebar-quick-controls { display: flex; flex-direction: column; gap: 0; margin-bottom: 0.5rem; } .sidebar-controls-row { display: flex; align-items: center; gap: 0.1rem; } .sidebar-controls-rule { border: none; border-top: 1px solid rgba(128, 128, 128, 0.2); margin: 0.35rem 0; } .sidebar-icon-btn { background: none; border: none; cursor: pointer; font-size: 1rem; padding: 0.3rem 0.4rem; border-radius: 5px; color: var(--text-color); opacity: 0.4; transition: opacity 0.15s, background 0.15s; font-family: inherit; text-transform: none; font-weight: 400; height: auto; line-height: 1; display: inline-flex; align-items: center; justify-content: center; } .sidebar-icon-btn:hover { opacity: 0.85; background: rgba(128, 128, 128, 0.12); border: none; } .sidebar-icon-btn.active { opacity: 1; background: rgba(128, 128, 128, 0.18); } /* Dark mode sidebar has a grey background with dark text. Explicitly set dark ink so icons are legible. */ .theme-dark .sidebar-icon-btn { color: rgba(0, 0, 0, 0.75); background: none; border: none; } .theme-dark .sidebar-icon-btn:hover { background: rgba(0, 0, 0, 0.1); border: none; } .theme-dark .sidebar-icon-btn.active { background: rgba(0, 0, 0, 0.15); } /* Main Content area - always fills full width (sidebar overlays) */ .main-content { width: 100%; height: 100%; min-width: 0; overflow-y: auto; background-color: var(--bg-color); padding: 1.5rem 2rem; transition: padding 0.3s ease; } @media (max-width: 1024px) { .main-content { padding: 1rem; padding-top: 4rem; /* Space for the toggle button */ } } .main-content>* { max-width: 35em; margin-left: auto; margin-right: auto; } /* Sidebar Toggle (Neko Emoji) */ .sidebar-toggle { position: fixed; top: 1rem; left: 1rem; z-index: 1001; background: none; border: none; width: 3rem; height: 3rem; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); } .sidebar-toggle:hover { transform: scale(1.1); } .sidebar-toggle:active { transform: scale(0.95); } /* Mobile Sidebar & Backdrop */ .sidebar-backdrop { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 999; } @media (max-width: 1024px) { .sidebar-visible .sidebar-backdrop { display: block; } .sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 1000; transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: none; } .sidebar-visible .sidebar { transform: translateX(0); box-shadow: 10px 0 20px rgba(0, 0, 0, 0.1); } } /* CONTENT CENTERING PARAMETER: * The sidebar overlays content (position: fixed) and never shifts the main content area. * Content is always centered in the full viewport width. * To revert to sidebar-shifts-content: remove the @media (min-width: 1025px) fixed rules below * and restore "flex: 1; min-width: 0" on .main-content only. */ @media (min-width: 1025px) { .sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 1000; transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .sidebar-visible .sidebar { transform: translateX(0); box-shadow: 10px 0 20px rgba(0, 0, 0, 0.1); } .sidebar-hidden .sidebar { transform: translateX(-100%); } } /* Layout State */ .sidebar-hidden .sidebar { display: flex; } .sidebar-visible .sidebar { display: flex; } input[type="text"], input[type="url"], input[type="search"], select { padding: 0.4rem 0.8rem; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-color); color: var(--text-color); font-family: inherit; font-size: 0.9rem; } input:focus, select:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2); } .logo { font-size: 2.5rem; margin: 0 0 1.5rem 0; cursor: pointer; text-align: center; user-select: none; } .sidebar .logo { margin-bottom: 1.5rem; } /* Feed Items Styles (from v2) */ .item-list { list-style: none; padding: 0; margin: 0; } .feed-item { padding: 1rem 0.5rem; margin-top: 2rem; border-bottom: none; border-radius: 8px; transition: background-color 0.2s ease, opacity 0.3s ease; } .feed-item.read { opacity: 0.5; } .feed-item.read .item-title { font-weight: normal; color: var(--text-color); opacity: 0.8; } .item-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; } .item-title { font-family: var(--font-heading); font-size: 1.8rem; font-weight: bold; text-decoration: none; color: var(--link-color); display: block; flex: 1; cursor: pointer; } .item-title:hover { text-decoration: underline; } .star-btn { background: none; border: none; cursor: pointer; font-size: 1.25rem; padding: 0 0 0 0.5rem; vertical-align: middle; transition: color 0.2s; line-height: 1; } .star-btn.is-starred { color: blue; } .star-btn.is-unstarred { color: var(--text-color); opacity: 0.3; } .dateline { margin-top: 0; font-weight: normal; font-size: 0.75em; color: #ccc; margin-bottom: 1rem; } .dateline a { color: #ccc; text-decoration: none; } .item-description { color: var(--text-color); line-height: 1.5; font-size: 1rem; margin-top: 1rem; overflow-wrap: break-word; word-break: break-word; } .item-description a { text-decoration: none; color: var(--link-color); } .item-description img, .item-description video, .item-description pre { max-width: 100%; height: auto; display: block; margin: 1rem 0; } .item-description pre { white-space: pre-wrap; word-wrap: break-word; overflow-x: auto; background: rgba(0, 0, 0, 0.05); padding: 1em; border-radius: 4px; } .scrape-btn { background: var(--bg-color); border: 1px solid var(--border-color, #ccc); color: blue; cursor: pointer; font-family: var(--font-heading); font-weight: bold; font-size: 0.8rem; padding: 2px 6px; margin-left: 0.5rem; } /* Themes */ .theme-dark { --bg-color: #000000; --text-color: #ffffff; --sidebar-bg: #000000; --link-color: #5ac8fa; --border-color: #333333; --accent-color: #2188ff; --sidebar-text-color: rgba(0, 0, 0, 0.87); } /* Dark mode: sidebar uses grey background with dark text */ .theme-dark .sidebar { background: rgba(180, 180, 180, 0.85); border-right-color: rgba(0, 0, 0, 0.15); } .theme-dark .sidebar-section li a, .theme-dark .sidebar-section h3, .theme-dark .sidebar-footer a { color: rgba(0, 0, 0, 0.87); } .theme-dark .sidebar-section li.active a { background: rgba(0, 0, 0, 0.15); } .theme-dark .sidebar-section li a:hover { background: rgba(0, 0, 0, 0.08); } /* Dark mode: sidebar-toggle button should have no background */ .theme-dark .sidebar-toggle { background: none; } /* Dark mode: sidebar search input should use light background */ .theme-dark .sidebar-search input { background: rgba(255, 255, 255, 0.7); color: rgba(0, 0, 0, 0.87); border-color: rgba(0, 0, 0, 0.2); } .font-serif { --font-body: Georgia, 'Times New Roman', Times, serif; font-family: var(--font-body); } .font-sans { --font-body: var(--font-heading-system); /* Use system sans for body if selected */ font-family: var(--font-body); } .font-mono { --font-body: var(--font-mono); font-family: var(--font-body); } /* Heading Font Overrides */ .heading-font-default { --font-heading: var(--font-heading-system); } .heading-font-serif { --font-heading: Georgia, 'Times New Roman', Times, serif; } .heading-font-mono { --font-heading: var(--font-mono); } .heading-font-sans { --font-heading: var(--font-sans); } /* Dark Mode Settings Fix */ .theme-dark .settings-view, .theme-dark .settings-view h2, .theme-dark .settings-view h3, .theme-dark .settings-group label, .theme-dark .data-group label { color: var(--text-color) !important; } /* Settings View */ .settings-view { padding-top: 2rem; font-family: var(--font-heading); color: var(--text-color); } .settings-view h2 { font-size: 2rem; font-weight: 700; margin-bottom: 2rem; letter-spacing: -0.02em; } .settings-grid { display: flex; flex-direction: column; gap: 2rem; margin-bottom: 2rem; } .settings-section { margin: 0; padding: 0; border: none; } .settings-section h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; margin-top: 0; margin-bottom: 1rem; border: none; padding-bottom: 0; color: var(--text-color); } .settings-group label, .data-group label { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 0.5rem; opacity: 0.6; font-family: var(--font-heading); } .theme-options { display: flex; gap: 0.5rem; } button, .button { border-radius: 6px; border: 1px solid var(--border-color); padding: 0.5rem 1rem; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; font-family: var(--font-heading); background-color: var(--bg-color); cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; color: var(--text-color); text-decoration: none; display: inline-block; text-align: center; height: 2.2rem; line-height: 1.1; box-sizing: border-box; } button:hover, .button:hover { border-color: var(--text-color); background: rgba(0, 0, 0, 0.05); } .theme-dark button, .theme-dark .button { background-color: transparent; color: var(--text-color); border-color: var(--border-color); } .theme-dark button:hover, .theme-dark .button:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--text-color); } button.active, .theme-dark button.active { background-color: var(--text-color); color: var(--bg-color); border-color: var(--text-color); } .add-feed-form { display: flex; gap: 0.5rem; width: 100%; } .add-feed-form input { flex: 1; height: 2.2rem; } .button-group { display: flex; gap: 0.5rem; align-items: center; } /* Manage Feeds - List View */ .manage-feed-list { display: flex; flex-direction: column; padding: 0; list-style: none; border-top: 1px solid var(--border-color); width: 100%; } .manage-feed-item { display: flex; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border-color); background: transparent; gap: 1rem; width: 100%; border-radius: 0; } .feed-info { flex: 1; min-width: 0; } .feed-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-heading); } .feed-url { font-size: 0.85rem; opacity: 0.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-heading); } .feed-actions { display: flex; gap: 0.5rem; align-items: center; } .feed-tag-input { width: 120px; padding: 0.4rem; height: 2.2rem; } .delete-feed-btn { color: var(--error-color, #d32f2f) !important; border-color: var(--error-color, #d32f2f) !important; } .delete-feed-btn:hover { background-color: rgba(211, 47, 47, 0.1) !important; } .manage-feeds-section { width: 100%; margin-top: 2rem; } @media (max-width: 768px) { .manage-feed-item { flex-direction: column; align-items: flex-start; } .feed-actions { width: 100%; margin-top: 0.5rem; } .feed-tag-input { flex: 1; } }