/* Material Symbols Icon Font */ .material-symbols-outlined { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr; } /* ============================================ Theme Variables ============================================ */ :root { /* Light theme (default) */ --bg-primary: #dddddd; --bg-secondary: #e8e8e8; --bg-input: #f5f5f5; --bg-input-focus: #ffffff; --text-primary: #212529; --text-secondary: #6c757d; --border-color: #d0d0d0; --border-color-light: #cccccc; --border-color-hover: #999999; --link-color: #212529; --score-positive-bg: rgb(90, 140, 90); --score-positive-text: white; --score-negative-bg: rgb(140, 50, 50); --score-negative-text: white; --mark-bg: rgba(255, 193, 7, 0.3); --shadow-light: rgba(0, 0, 0, 0.05); --shadow-medium: rgba(0, 0, 0, 0.1); } /* Dark theme via media query */ @media (prefers-color-scheme: dark) { :root:not([data-bs-theme="light"]):not(.light-theme) { --bg-primary: #1a1a1a; --bg-secondary: #2a2a2a; --bg-input: #1a1a1a; --bg-input-focus: #2a2a2a; --text-primary: #e0e0e0; --text-secondary: #a0a0a0; --border-color: #3a3a3a; --border-color-light: #555555; --border-color-hover: #777777; --link-color: #e0e0e0; --score-positive-bg: rgb(100, 140, 80); --score-positive-text: white; --score-negative-bg: rgb(120, 45, 45); --score-negative-text: white; --mark-bg: rgba(255, 193, 7, 0.4); --shadow-light: rgba(255, 255, 255, 0.1); } } /* Explicit dark theme */ html[data-bs-theme="dark"], html.dark-theme { --bg-primary: #1a1a1a; --bg-secondary: #2a2a2a; --bg-input: #1a1a1a; --bg-input-focus: #2a2a2a; --text-primary: #e0e0e0; --text-secondary: #a0a0a0; --border-color: #3a3a3a; --border-color-light: #555555; --border-color-hover: #777777; --link-color: #e0e0e0; --score-positive-bg: rgb(100, 140, 80); --score-positive-text: white; --score-negative-bg: rgb(120, 45, 45); --score-negative-text: white; --mark-bg: rgba(255, 193, 7, 0.4); --shadow-light: rgba(255, 255, 255, 0.1); } /* Explicit light theme */ html[data-bs-theme="light"], html.light-theme { --bg-primary: #dddddd; --bg-secondary: #e8e8e8; --bg-input: #f5f5f5; --bg-input-focus: #ffffff; --text-primary: #212529; --text-secondary: #6c757d; --border-color: #d0d0d0; --border-color-light: #cccccc; --border-color-hover: #999999; --link-color: #212529; --score-positive-bg: rgb(34, 139, 34); --score-positive-text: white; --mark-bg: rgba(255, 193, 7, 0.3); --shadow-light: rgba(0, 0, 0, 0.05); } /* ============================================ Base Styles ============================================ */ html { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; min-width: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; background-color: var(--bg-primary); color: var(--text-primary); } body { max-width: 100%; background-color: var(--bg-primary); color: var(--text-primary); transition: background-color 0.3s ease, color 0.3s ease; margin: 0; padding: 0; } a { color: var(--link-color); transition: color 0.2s ease; } a:visited { color: var(--link-color); } /* ============================================ Layout ============================================ */ .container { max-width: 1200px; margin: 0 auto; padding: 20px; background-color: var(--bg-primary); color: var(--text-primary); min-height: 100vh; } .header { margin-bottom: 30px; } .header-controls { display: flex; gap: 12px; align-items: center; } @media (max-width: 768px) { .header-controls { gap: 8px; } } /* ============================================ Responsive Visibility ============================================ */ .desktop-only { display: inline-flex; } .mobile-only { display: none; } @media (max-width: 768px) { .desktop-only { display: none !important; } .mobile-only { display: block; } } /* ============================================ Mobile Menu ============================================ */ .mobile-menu-wrapper { position: relative; } .mobile-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background-color: var(--bg-secondary); border: 1px solid var(--border-color-light); border-radius: 8px; box-shadow: 0 4px 12px var(--shadow-medium); min-width: 180px; z-index: 100; overflow: hidden; } .dropdown-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: none; background: transparent; color: var(--text-primary); font-size: 14px; cursor: pointer; transition: background-color 0.2s ease; text-align: left; } .dropdown-item:hover { background-color: var(--bg-input); } .dropdown-item:active { background-color: var(--border-color-light); } .dropdown-item:disabled { opacity: 0.6; cursor: not-allowed; } .dropdown-item .material-symbols-outlined { font-size: 20px; color: var(--text-secondary); } /* ============================================ Search Input ============================================ */ .search-input { flex: 1; max-width: 500px; padding: 10px 12px; font-size: 14px; border: 1px solid var(--border-color-light); border-radius: 4px; background-color: var(--bg-input); color: var(--text-primary); transition: all 0.2s ease; font-family: inherit; } .search-input:focus { outline: none; border-color: var(--border-color-hover); background-color: var(--bg-input-focus); box-shadow: 0 0 0 2px var(--shadow-light); } .search-input::placeholder { color: var(--text-secondary); } /* ============================================ Filter Container & Tags ============================================ */ .filter-container { flex: 1; max-width: 500px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--border-color-light); border-radius: 4px; background-color: var(--bg-input); transition: all 0.2s ease; } .filter-container:focus-within { border-color: var(--border-color-hover); background-color: var(--bg-input-focus); box-shadow: 0 0 0 2px var(--shadow-light); } .filter-container .search-input { flex: 1; border: none; padding: 4px 0; background: transparent; box-shadow: none; } .filter-container .search-input:focus { outline: none; box-shadow: none; } .filter-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 10px; background-color: var(--border-color-light); border-radius: 4px; font-size: 12px; font-weight: 500; color: var(--text-primary); flex-shrink: 0; } .filter-tag-clear { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; padding: 0; border: none; background-color: var(--text-secondary); border-radius: 50%; cursor: pointer; transition: all 0.2s ease; color: var(--bg-input); } .filter-tag-clear:hover { background-color: var(--text-primary); } .filter-tag-clear .material-symbols-outlined { font-size: 10px; } /* ============================================ Icon Buttons (Theme & Sort Toggle) ============================================ */ .icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border-color-light); border-radius: 4px; background-color: var(--bg-input); color: var(--text-primary); cursor: pointer; transition: all 0.2s ease; font-size: 18px; padding: 0; flex-shrink: 0; } .icon-button:hover { background-color: var(--bg-secondary); border-color: var(--border-color-hover); } .icon-button:active { transform: scale(0.95); } /* Legacy class names for compatibility */ .sort-toggle, .theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border-color-light); border-radius: 4px; background-color: var(--bg-input); color: var(--text-primary); cursor: pointer; transition: all 0.2s ease; font-size: 18px; padding: 0; flex-shrink: 0; } .sort-toggle:hover, .theme-toggle:hover { background-color: var(--bg-secondary); border-color: var(--border-color-hover); } .sort-toggle:active, .theme-toggle:active { transform: scale(0.95); } /* ============================================ Cards Grid ============================================ */ .cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 20px; margin-top: 20px; } /* ============================================ List View ============================================ */ .list-view { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; } .deal-row { background-color: var(--bg-secondary); border: 1px solid var(--border-color-light); border-radius: 6px; padding: 10px 14px; display: flex; align-items: center; gap: 12px; transition: all 0.2s ease; } .deal-row .card-header { display: contents; } .deal-row:hover { background-color: var(--bg-input); border-color: var(--border-color-hover); } .deal-row .card-meta { margin-bottom: 0; flex-shrink: 0; order: 2; } .deal-row .title-with-link { flex: 1; order: 1; } .deal-row .deal-title { font-size: 14px; } .deal-row .row-stats { order: 3; } .deal-row .score-bubble { min-width: 36px; height: 24px; font-size: 10px; order: 4; } .row-stats { display: flex; gap: 12px; flex-shrink: 0; } .stat-compact { font-size: 11px; color: var(--text-secondary); white-space: nowrap; } @media (max-width: 768px) { .deal-row { flex-wrap: wrap; } .row-stats { width: 100%; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-color); } } .deal-card { background-color: var(--bg-secondary); border: 1.5px solid #aaaaaa; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; transition: all 0.2s ease; min-height: auto; } .deal-card:hover { box-shadow: 0 4px 8px var(--shadow-medium); border-color: var(--border-color-hover); } /* ============================================ Card Header ============================================ */ .card-header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; justify-content: space-between; } .title-with-link { display: flex; align-items: flex-start; gap: 6px; flex: 1; } .deal-title { color: var(--link-color); text-decoration: none; font-weight: 500; font-size: 15px; line-height: 1.4; flex: 1; transition: color 0.2s ease; } .deal-title:visited { color: var(--link-color); } .deal-title:hover { text-decoration: underline; } .card-link { display: inline-flex; align-items: center; justify-content: center; color: var(--link-color); text-decoration: none; transition: all 0.2s ease; flex-shrink: 0; } .card-link:hover { opacity: 0.7; } .card-link .material-symbols-outlined { font-size: 18px; } /* ============================================ Score Bubble ============================================ */ .score-bubble { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 28px; border-radius: 4px; font-weight: 700; font-size: 11px; flex-shrink: 0; transition: all 0.2s ease; padding: 0 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); border: none; } .score-bubble.positive { background-color: var(--score-positive-bg); color: var(--score-positive-text); box-shadow: 0 1px 3px rgba(34, 139, 34, 0.2); } .score-bubble.negative { background-color: var(--score-negative-bg); color: var(--score-negative-text); box-shadow: 0 1px 3px rgba(247, 118, 142, 0.2); } .score-bubble.neutral { background-color: var(--text-secondary); color: var(--bg-primary); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); } /* ============================================ Card Meta & Details ============================================ */ .card-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13px; margin-bottom: 12px; } .dealer-name { display: inline-block; width: fit-content; max-width: 100%; font-weight: 600; font-size: 9px; padding: 2px 6px; border-radius: 4px; border: 2px solid currentColor; background-color: transparent; transition: all 0.2s ease; letter-spacing: 0.3px; } .card-details { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-color); } .details-stats { display: flex; gap: 16px; margin-bottom: 12px; } .stat { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); } .stat .material-symbols-outlined { font-size: 18px; } .stat-value { font-weight: 500; } .card-timestamp { color: var(--text-secondary); font-size: 12px; margin-top: 8px; } /* ============================================ Mark Highlighting ============================================ */ mark { background-color: var(--mark-bg); color: inherit; font-weight: 600; border-radius: 2px; } /* ============================================ Mobile Responsive ============================================ */ @media (max-width: 768px) { .cards-grid { grid-template-columns: 1fr; } .container { padding: 12px; } .search-input { max-width: 100%; } } /* ============================================ Loading & Spinner ============================================ */ @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .spinning { animation: spin 1s linear infinite; } .loading-container { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; color: var(--text-secondary); } .loading-container p { margin-top: 16px; font-size: 14px; } .loading-spinner { font-size: 48px; } .icon-button:disabled { opacity: 0.6; cursor: not-allowed; } .icon-button:disabled:hover { background-color: var(--bg-input); border-color: var(--border-color-light); }