/* Star Citizen Inventory — dark sci-fi theme */ :root { --bg: #0b0e14; --bg-panel: #11151f; --bg-card: #151a26; --border: #232b3d; --text: #d7dce8; --text-dim: #8b93a7; --accent: #38bdf8; --accent-warm: #f59e0b; --danger: #ef4444; --success: #22c55e; --cat-ships: #38bdf8; --cat-ship-items: #a78bfa; --cat-fps-items: #f59e0b; } * { box-sizing: border-box; } body { margin: 0; font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; } /* Header */ .site-header { background: linear-gradient(180deg, #0d1220 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); } .header-inner { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.25rem 1rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; } .brand h1 { margin: 0; font-size: 1.6rem; letter-spacing: 0.12em; font-weight: 800; } .brand h1 span { color: var(--accent); } .subtitle { margin: 0.25rem 0 0; color: var(--text-dim); font-size: 0.85rem; } .header-status { text-align: right; } .status-pill { display: inline-block; padding: 0.3rem 0.9rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; border: 1px solid transparent; } .status-pill.online { color: var(--success); border-color: var(--success); background: rgba(34,197,94,0.08); } .status-pill.offline { color: var(--danger); border-color: var(--danger); background: rgba(239,68,68,0.08); } .status-pill.checking { color: var(--text-dim); border-color: var(--border); } .stats-line { margin-top: 0.4rem; font-size: 0.8rem; color: var(--text-dim); } /* Tabs */ .tabs { max-width: 1200px; margin: 1rem auto 0; padding: 0 1.25rem; display: flex; gap: 0.5rem; flex-wrap: wrap; } .tab { background: var(--bg-panel); color: var(--text-dim); border: 1px solid var(--border); border-radius: 8px 8px 0 0; padding: 0.6rem 1.1rem; font-size: 0.9rem; cursor: pointer; transition: color 0.15s, border-color 0.15s; } .tab-mine { margin-left: auto; } .tab:hover { color: var(--text); } .tab.active { color: var(--accent); border-bottom: 2px solid var(--accent); background: var(--bg-card); } /* Controls */ .controls { max-width: 1200px; margin: 0 auto; padding: 1rem 1.25rem; display: flex; gap: 0.6rem; flex-wrap: wrap; background: var(--bg-card); border: 1px solid var(--border); border-top: none; border-radius: 0 0 8px 8px; } .controls input, .controls select { background: var(--bg-panel); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 0.55rem 0.75rem; font-size: 0.9rem; } #search-input { flex: 2 1 240px; } #manufacturer-select { flex: 1 1 180px; } #type-input { flex: 1 1 160px; } #size-input { flex: 0 1 90px; } .controls input:focus, .controls select:focus { outline: none; border-color: var(--accent); } .btn-secondary { background: var(--bg-panel); color: var(--text-dim); border: 1px solid var(--border); border-radius: 6px; padding: 0.55rem 1rem; font-size: 0.9rem; cursor: pointer; } .btn-secondary:hover:not(:disabled) { color: var(--text); border-color: var(--accent); } .btn-secondary:disabled { opacity: 0.4; cursor: not-allowed; } /* Main */ main { max-width: 1200px; margin: 0 auto; padding: 1.25rem; } .error-banner { background: rgba(239,68,68,0.1); border: 1px solid var(--danger); color: #fca5a5; border-radius: 8px; padding: 0.8rem 1rem; margin-bottom: 1rem; font-size: 0.9rem; } .loading, .empty-state { text-align: center; color: var(--text-dim); padding: 3rem 1rem; font-size: 1rem; } .empty-state .hint { font-size: 0.85rem; opacity: 0.7; } .hidden { display: none !important; } /* Results grid */ .results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.9rem; } .item-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1rem; cursor: pointer; transition: border-color 0.15s, transform 0.1s; display: flex; flex-direction: column; gap: 0.45rem; } .item-card:hover { border-color: var(--accent); transform: translateY(-2px); } .item-card .item-name { font-weight: 700; font-size: 0.98rem; line-height: 1.3; } .item-card .item-manufacturer { color: var(--text-dim); font-size: 0.8rem; } .item-card .item-meta { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; margin-top: auto; } .badge { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.15rem 0.55rem; border-radius: 999px; border: 1px solid; } .badge.cat-ships { color: var(--cat-ships); border-color: var(--cat-ships); } .badge.cat-ship-items { color: var(--cat-ship-items); border-color: var(--cat-ship-items); } .badge.cat-fps-items { color: var(--cat-fps-items); border-color: var(--cat-fps-items); } .badge.size { color: var(--text-dim); border-color: var(--border); } .item-classification { color: var(--text-dim); font-size: 0.78rem; font-family: ui-monospace, monospace; } /* Pagination */ .pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; } #page-info { color: var(--text-dim); font-size: 0.9rem; } /* Footer */ .site-footer { border-top: 1px solid var(--border); margin-top: 2rem; padding: 1.25rem; text-align: center; color: var(--text-dim); font-size: 0.8rem; } .site-footer a { color: var(--accent); text-decoration: none; } .site-footer a:hover { text-decoration: underline; } /* Modal */ .modal-backdrop { position: fixed; inset: 0; background: rgba(5,8,14,0.75); display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 50; } .modal { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px; max-width: 640px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 1.5rem; position: relative; } .modal-close { position: absolute; top: 0.75rem; right: 0.9rem; background: none; border: none; color: var(--text-dim); font-size: 1.6rem; cursor: pointer; line-height: 1; } .modal-close:hover { color: var(--text); } .modal h2 { margin: 0 2rem 0.25rem 0; font-size: 1.25rem; } .modal .modal-sub { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 1rem; } .modal .modal-desc { font-size: 0.92rem; line-height: 1.55; margin-bottom: 1rem; } .modal .tag-row { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; } .spec-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; } .spec-table th, .spec-table td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--border); } .spec-table th { color: var(--text-dim); font-weight: 600; width: 40%; } .spec-table td { font-family: ui-monospace, monospace; } /* Account controls */ .header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; } .account-bar { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; } .account-bar .who { color: var(--accent); font-weight: 700; letter-spacing: 0.04em; } .btn-primary { background: var(--accent); color: #04121c; border: none; border-radius: 6px; padding: 0.55rem 1rem; font-size: 0.9rem; font-weight: 700; cursor: pointer; } .btn-primary:hover:not(:disabled) { filter: brightness(1.1); } .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; } .btn-link { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 0.85rem; text-decoration: underline; padding: 0; } .btn-link:hover { color: var(--accent); } /* Card add button */ .card-add { margin-left: auto; width: 1.6rem; height: 1.6rem; line-height: 1; font-size: 1rem; font-weight: 700; background: var(--bg-panel); color: var(--accent); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; } .card-add:hover { border-color: var(--accent); } /* Personal inventory view */ .inventory-controls { max-width: 1200px; margin: 1rem auto 0; padding: 0 1.25rem; display: flex; gap: 0.6rem; flex-wrap: wrap; } .inventory-controls input, .inventory-controls select { background: var(--bg-panel); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 0.55rem 0.75rem; font-size: 0.9rem; } #inv-search { flex: 2 1 280px; } #inv-category { flex: 1 1 180px; } #inv-sort { flex: 1 1 170px; } .inventory-controls input:focus, .inventory-controls select:focus { outline: none; border-color: var(--accent); } #inventory-view { max-width: 1200px; margin: 0 auto; padding: 1rem 1.25rem 0; } .inv-summary { color: var(--text-dim); font-size: 0.85rem; margin: 0.75rem 0 1rem; } .inv-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; } .inv-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; } .inv-table th, .inv-table td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--border); vertical-align: middle; } .inv-table th { color: var(--text-dim); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; } .inv-table tr:last-child td { border-bottom: none; } .inv-item-name { font-weight: 600; } .inv-item-sub { color: var(--text-dim); font-size: 0.75rem; font-family: ui-monospace, monospace; } .inv-qty { width: 5rem; background: var(--bg-panel); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 0.35rem 0.5rem; } .inv-notes { width: 100%; min-width: 12rem; background: var(--bg-panel); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 0.35rem 0.5rem; } .inv-qty:focus, .inv-notes:focus { outline: none; border-color: var(--accent); } .inv-remove { background: none; border: 1px solid var(--border); color: var(--danger); border-radius: 6px; padding: 0.3rem 0.6rem; font-size: 0.8rem; cursor: pointer; } .inv-remove:hover { border-color: var(--danger); } .unavailable-note { color: var(--accent-warm); font-size: 0.75rem; } /* Auth modal */ .modal-narrow { max-width: 400px; } .auth-form { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1rem; } .auth-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.8rem; color: var(--text-dim); } .auth-form input { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 0.55rem 0.75rem; font-size: 0.95rem; } .auth-form input:focus { outline: none; border-color: var(--accent); } .auth-error { color: #fca5a5; font-size: 0.85rem; min-height: 1.1rem; margin: 0; } .auth-switch { margin-top: 0.9rem; font-size: 0.85rem; color: var(--text-dim); } /* Detail modal add row */ .add-row { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-dim); } .add-row input { width: 5rem; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 0.5rem 0.6rem; } .add-row input:focus { outline: none; border-color: var(--accent); } /* Toast */ .toast { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); background: var(--bg-panel); border: 1px solid var(--accent); color: var(--text); padding: 0.6rem 1.1rem; border-radius: 8px; font-size: 0.9rem; z-index: 100; max-width: calc(100vw - 2rem); } .toast.error { border-color: var(--danger); color: #fca5a5; } @media (max-width: 640px) { .header-inner { flex-direction: column; align-items: flex-start; } .header-status { text-align: left; } .header-right { align-items: flex-start; } .controls input, .controls select { flex: 1 1 100%; } .inventory-controls input, .inventory-controls select { flex: 1 1 100%; } }