:root { --bg-base: #09090b; --bg-sidebar: #101012; --bg-surface: #18181b; --bg-surface-hover: #27272a; --accent: #8b5cf6; --accent-glow: rgba(139, 92, 246, 0.3); --accent-gradient: linear-gradient(135deg, #8b5cf6, #6366f1); --text-primary: #f4f4f5; --text-secondary: #a1a1aa; --text-tertiary: #52525b; --border: #27272a; --border-hover: #3f3f46; --radius-md: 8px; --radius-lg: 16px; --radius-full: 9999px; --sidebar-width-collapsed: 72px; --sidebar-width-expanded: 240px; --header-height: 70px; } * { box-sizing: border-box; outline: none; scrollbar-width: thin; scrollbar-color: var(--border) transparent; } body { margin: 0; padding: 0; background-color: var(--bg-base); color: var(--text-primary); font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; height: 100vh; display: flex; overflow: hidden; } .sidebar { width: var(--sidebar-width-collapsed); background: var(--bg-sidebar); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 1.5rem 0.75rem; gap: 0.5rem; transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); z-index: 50; flex-shrink: 0; } .sidebar:hover { width: var(--sidebar-width-expanded); } .main-wrapper { flex: 1; display: flex; flex-direction: column; height: 100%; position: relative; min-width: 0; } .brand-logo { height: 48px; display: flex; align-items: center; padding: 0 0.5rem; margin-bottom: 2rem; overflow: hidden; color: var(--text-primary); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.5px; cursor: default; } .brand-icon { min-width: 32px; height: 32px; background: var(--accent-gradient); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; margin-right: 1rem; box-shadow: 0 0 15px var(--accent-glow); color: white; } .nav-button { display: flex; align-items: center; padding: 0.85rem; border-radius: var(--radius-md); color: var(--text-secondary); background: transparent; border: 1px solid transparent; cursor: pointer; transition: all 0.2s; white-space: nowrap; overflow: hidden; position: relative; } .nav-button:hover { background: var(--bg-surface); color: var(--text-primary); } .nav-button.active { background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), transparent); border-left: 3px solid var(--accent); color: var(--accent); } .nav-button svg { min-width: 24px; width: 24px; height: 24px; margin-right: 1rem; } a, a:visited, a:hover, a:active { text-decoration: none; } .nav-button span { opacity: 0; transform: translateX(-10px); transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); } .sidebar:hover .nav-button span { opacity: 1; transform: translateX(0); } .top-header { height: var(--header-height); display: flex; align-items: center; justify-content: center; padding: 0 2rem; position: sticky; top: 0; z-index: 40; } .search-box { display: contents; } #search-input { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 0.5rem 1rem; color: var(--text-primary); width: 350px; transition: 0.2s; font-size: 0.9rem; } #search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); } .content-view { flex: 1; overflow-y: auto; padding: 0 2rem 2rem 2rem; } .page { max-width: 1600px; margin: 0 auto; animation: fadeIn 0.3s ease-out; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } #source-list { display: flex; gap: 1rem; padding-bottom: 1rem; scrollbar-width: none; align-items: center; flex-direction: row; scroll-behavior: smooth; overflow-x: auto; -webkit-overflow-scrolling: touch; } #source-list::-webkit-scrollbar { height: 6px; } #source-list::-webkit-scrollbar-track { background: transparent; } #source-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; } #source-list::-webkit-scrollbar-thumb:hover { background: var(--border-hover); } .source-button { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; min-width: 200px; width: auto; height: auto; cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden; text-align: left; flex-shrink: 0; } .source-button:hover { background: var(--bg-surface-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); color: var(--text-primary); } .source-button.active { border-color: var(--accent); background: linear-gradient(to right, rgba(139, 92, 246, 0.05), transparent); color: var(--text-primary); } .source-button img, .source-button .brand-icon { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; flex-shrink: 0; } .source-text-wrapper { display: flex; flex-direction: column; justify-content: center; overflow: hidden; line-height: 1.3; } .source-name { font-weight: 600; color: var(--text-primary); font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .source-url { font-size: 0.75rem; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .gallery-masonry { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; } .gallery-masonry:not(.books-only) { grid-auto-rows: 8px; } .image-entry:not([data-type="book"]) { margin-bottom: 0; border-radius: var(--radius-md); overflow: hidden; position: relative; background: var(--bg-surface); break-inside: avoid; transition: transform 0.2s; cursor: zoom-in; display: block; width: 100%; } .image-entry:not([data-type="book"]):hover { transform: scale(1.02); z-index: 2; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); } .image-entry img { width: 100%; height: auto; display: block; aspect-ratio: auto; } .image-entry img.loaded { opacity: 1; transition: opacity 0.3s ease-in; min-height: unset; } .image-buttons { position: absolute; bottom: 0; left: 0; width: 100%; padding: 2rem 1rem 1rem 1rem; background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent); display: flex; justify-content: flex-end; gap: 0.5rem; opacity: 0; transition: 0.2s; top: auto; right: auto; flex-direction: row; } .image-entry:hover .image-buttons { opacity: 1; } .image-buttons button { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: white; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); cursor: pointer; transition: 0.2s; padding: 0; } .image-buttons button:hover { background: var(--accent); border-color: var(--accent); } .image-buttons button svg { width: 16px; height: 16px; } .settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; } .settings-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; } .settings-card h3 { margin-top: 0; font-size: 1.1rem; margin-bottom: 1rem; color: var(--text-primary); } fieldset { border: none; padding: 0; margin: 0; } label { display: flex; align-items: center; gap: 1rem; padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer; margin-bottom: 0.5rem; transition: 0.2s; } label:hover { background: var(--bg-surface-hover); } input[type="radio"] { accent-color: var(--accent); margin-top: 4px; width: 1.2em; height: 1.2em; } .hidden { display: none !important; } .loading-state { text-align: center; padding: 4rem; color: var(--text-tertiary); display: flex; flex-direction: column; align-items: center; gap: 1rem; } #tag-info-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; } #tag-info-modal.hidden { display: none; } #tag-info-modal>div { background: var(--bg-surface); border: 1px solid var(--border); padding: 2rem; border-radius: var(--radius-lg); width: 90%; max-width: 500px; position: relative; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); max-height: 80vh; overflow-y: auto; } #tag-info-close-button { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--text-tertiary); cursor: pointer; font-size: 1.5rem; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; } .tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1rem; } #tag-info-content span { background: var(--bg-surface-hover); border: 1px solid var(--border); color: var(--text-secondary); padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; } .toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--bg-sidebar); border: 1px solid var(--border); border-left: 4px solid var(--accent); padding: 1rem 1.5rem; border-radius: var(--radius-md); color: var(--text-primary); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); z-index: 1000; transform: translateY(20px); opacity: 0; pointer-events: none; transition: 0.3s; max-width: calc(100vw - 4rem); } .toast:not(.hidden) { transform: translateY(0); opacity: 1; pointer-events: all; } #message-bar:not(.hidden) { transform: translateY(0); opacity: 1; pointer-events: all; } #gallery-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; padding: 4rem 1rem; break-inside: avoid; column-span: all; grid-column: 1 / -1; } #gallery-placeholder p { max-width: 300px; text-align: center; white-space: normal; margin: 0; } @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .image-entry.newly-added { animation: fadeInUp 0.4s ease-out; } .hamburger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-primary); font-size: 1.8rem; font-weight: bold; cursor: pointer; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); transition: background 0.2s, border-color 0.2s; align-items: center; justify-content: center; z-index: 999; } .hamburger:hover { background: var(--bg-surface-hover); border-color: var(--accent); } @media (min-width: 1400px) { .gallery-masonry { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } } @media (min-width: 1024px) and (max-width: 1399px) { .gallery-masonry { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } } @media (min-width: 768px) and (max-width: 1023px) { .content-view { padding: 0 1.5rem 2rem 1.5rem; } .top-header { padding: 0 1.5rem; } .gallery-masonry { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } #search-input { width: 280px; } .source-button { min-width: 180px; } .settings-grid { grid-template-columns: 1fr; } } @media (max-width: 767px) { html { font-size: 16px; } body { zoom: 1; } .content-view { overflow-x: hidden !important; padding: 0 1rem 2rem 1rem; } .top-header { height: 70px; padding: 0 1rem; justify-content: flex-start; } .hamburger { display: flex; position: static; transform: none; margin-right: auto; } #search-input { width: 100%; max-width: none; font-size: 1rem; padding: 0.6rem 1rem; } .sidebar { position: fixed; left: -100%; top: 0; width: 280px; height: 100%; background: var(--bg-sidebar); transition: left 0.3s ease; z-index: 300; padding: 1.5rem 1rem; box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5); } .sidebar.active { left: 0; } .sidebar:hover { width: 280px; } .main-wrapper { margin-left: 0 !important; width: 100%; } .sidebar .nav-button span { opacity: 1 !important; transform: translateX(0) !important; } .sidebar nav { gap: 0.75rem !important; } .nav-button { padding: 1rem 1.25rem !important; font-size: 1rem !important; } .nav-button span { font-size: 1rem !important; } .nav-button svg { width: 24px !important; height: 24px !important; stroke-width: 2 !important; margin-right: 0.75rem !important; } .gallery-masonry { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; } .image-entry:not([data-type="book"]):hover { transform: none; } .image-buttons { opacity: 0.8; padding: 1.5rem 0.75rem 0.75rem 0.75rem; } .image-buttons button { width: 36px; height: 36px; } .image-buttons button svg { width: 18px; height: 18px; } #source-list { gap: 0.75rem; padding-bottom: 0.75rem; } .source-button { min-width: 160px; padding: 0.6rem 0.85rem; gap: 0.75rem; } .source-button img, .source-button .brand-icon { width: 28px; height: 28px; } .source-name { font-size: 0.9rem; } .source-url { font-size: 0.7rem; } .source-button:hover { transform: none; } .toast { bottom: 1rem; right: 1rem; left: 1rem; max-width: none; padding: 0.85rem 1rem; font-size: 0.9rem; } .loading-state { padding: 2rem 1rem; } #tag-info-modal>div { padding: 1.5rem; width: 95%; } .settings-grid { grid-template-columns: 1fr; gap: 1rem; } .settings-card { padding: 1.25rem; } h1, h2, h3 { font-size: 1.25rem; } } @media (max-width: 480px) { .gallery-masonry { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.6rem; } .source-button { min-width: 140px; padding: 0.5rem 0.75rem; } .source-name { font-size: 0.85rem; } }