Files
mont_vendor_maps/static/css/index.css
T

801 lines
19 KiB
CSS

:root {
--bg: #eef4ff;
--bg2: #dde9ff;
--panel: #ffffff;
--text: #15203b;
--muted: #526079;
--line: #c8d7f7;
--brand: #1f4ea3;
--brand-2: #3578ef;
--accent: #0f7b56;
--radius: 18px;
--shadow: 0 20px 55px rgba(16, 43, 95, .14);
}
* { box-sizing: border-box; }
body {
margin: 0;
min-height: 100vh;
font-family: Manrope, sans-serif;
color: var(--text);
background:
radial-gradient(1200px 700px at -10% -10%, #c8dbff 0%, transparent 55%),
radial-gradient(900px 500px at 110% -20%, #d8f4ec 0%, transparent 50%),
linear-gradient(160deg, var(--bg) 0%, var(--bg2) 100%);
}
body.scope-ib {
background:
radial-gradient(1200px 700px at -10% -10%, #b8f3cf 0%, transparent 58%),
radial-gradient(900px 500px at 110% -20%, #b2efd6 0%, transparent 52%),
linear-gradient(160deg, #daf8e8 0%, #bdeecf 100%);
}
body.scope-ib .hero {
background:
linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,0) 45%),
linear-gradient(125deg, #1f7a4a 0%, #2f9c61 55%, #47b879 100%);
}
body.scope-ib .hero::after {
background-color: rgba(10, 74, 45, .42);
}
body.scope-ib .hero::before {
background:
linear-gradient(to top, rgba(255,255,255,.9) 0 2px, rgba(255,255,255,0) 2px),
rgba(10, 61, 38, .40);
}
body.scope-ib .mode-btn.active {
background: linear-gradient(140deg, #1d8d54, #2fac6d);
box-shadow: 0 8px 18px rgba(24, 124, 72, .35);
}
.wrap {
width: min(1400px, calc(100% - 32px));
margin: 18px auto 28px;
padding-top: 68px;
}
.brand-strip {
position: fixed;
top: 14px;
left: 16px;
z-index: 200;
}
.hero {
background:
linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,0) 45%),
linear-gradient(125deg, #173d83 0%, #2c63ca 55%, #3f83ff 100%);
color: #f5f8ff;
border-radius: calc(var(--radius) + 4px);
padding: 26px;
box-shadow: var(--shadow);
position: relative;
overflow: hidden;
}
.hero-layout {
display: grid;
grid-template-columns: 1fr;
gap: 0;
align-items: center;
position: relative;
z-index: 1;
}
.hero::after {
content: "";
position: absolute;
inset: auto -4% 0 -4%;
height: 62%;
background-color: rgba(17, 46, 102, .38);
clip-path: polygon(0 100%, 0 84%, 9% 52%, 17% 70%, 28% 42%, 39% 73%, 50% 32%, 61% 66%, 73% 38%, 84% 69%, 93% 47%, 100% 60%, 100% 100%);
}
.hero::before {
content: "";
position: absolute;
inset: auto -3% 0 -3%;
height: 50%;
background:
linear-gradient(to top, rgba(255,255,255,.9) 0 2px, rgba(255,255,255,0) 2px),
rgba(9, 31, 76, .32);
clip-path: polygon(0 100%, 0 90%, 8% 67%, 16% 82%, 25% 58%, 35% 85%, 47% 50%, 58% 80%, 69% 55%, 80% 79%, 91% 62%, 100% 74%, 100% 100%);
}
.hero h1 {
margin: 0 0 8px;
font-family: "Space Grotesk", sans-serif;
font-size: clamp(26px, 4.8vw, 48px);
letter-spacing: .3px;
line-height: 1.02;
background: linear-gradient(115deg, #ffffff 25%, #b8d8ff 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.brand-logo {
width: clamp(119px, 16.8vw, 196px);
padding: 0;
border: 0;
background: transparent;
box-shadow: none;
}
.brand-logo img {
width: 100%;
height: auto;
display: block;
object-fit: contain;
filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .14));
}
.hero p {
margin: 0;
max-width: 860px;
color: rgba(245,248,255,.92);
font-size: 16px;
}
.board {
margin-top: 18px;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}
.mode-switch-row {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 10px;
margin-top: 12px;
}
.mode-switch {
display: inline-flex;
gap: 6px;
padding: 6px;
border-radius: 14px;
background: #ffffff;
border: 1px solid #d9e6ff;
box-shadow: 0 8px 24px rgba(26, 58, 118, .08);
}
.polygon-btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 9px 16px;
border-radius: 10px;
margin-left: auto;
font-size: 13px;
font-weight: 800;
letter-spacing: .2px;
color: #fff;
background: linear-gradient(140deg, #e05c1f, #e08c39);
box-shadow: 0 8px 18px rgba(200, 80, 20, .28);
text-decoration: none;
transition: .18s ease;
white-space: nowrap;
}
.polygon-btn::after {
content: "↗";
font-size: 12px;
opacity: .85;
}
.polygon-btn:hover {
background: linear-gradient(140deg, #c94f15, #d4782e);
box-shadow: 0 10px 22px rgba(200, 80, 20, .38);
transform: translateY(-1px);
}
.mode-btn {
border: 0;
border-radius: 10px;
padding: 9px 14px;
font-size: 13px;
font-weight: 800;
letter-spacing: .2px;
color: #2a4e8d;
background: transparent;
cursor: pointer;
transition: .18s ease;
}
.mode-btn:hover { background: #eef4ff; }
.mode-btn.active {
color: #fff;
background: linear-gradient(140deg, #1f4ea3, #3978e0);
box-shadow: 0 8px 18px rgba(38, 86, 176, .28);
}
.card {
background: var(--panel);
border: 1px solid #dfebff;
border-radius: var(--radius);
box-shadow: 0 10px 30px rgba(24, 56, 116, .08);
padding: 14px;
min-height: 320px;
}
.card h2 {
margin: 0 0 10px;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 1.1px;
color: #234782;
font-weight: 800;
display: flex;
align-items: center;
gap: 7px;
}
.card h2::before {
content: "";
display: inline-block;
width: 3px;
height: 14px;
border-radius: 2px;
background: linear-gradient(180deg, #3978e0, #1f4ea3);
flex-shrink: 0;
}
.search {
width: 100%;
border: 1px solid #cfe0ff;
border-radius: 12px;
padding: 11px 12px;
font-size: 14px;
margin-bottom: 10px;
outline: none;
transition: .2s ease;
}
.search:focus {
border-color: #5b91f6;
box-shadow: 0 0 0 4px rgba(91,145,246,.14);
}
.chip-grid {
display: flex;
flex-wrap: wrap;
gap: 8px;
max-height: 380px;
overflow: auto;
padding-right: 4px;
}
.chip {
border: 1px solid #ccdbf7;
border-radius: 999px;
padding: 8px 12px;
background: #f7faff;
color: #22427a;
font-size: 13px;
cursor: pointer;
user-select: none;
transition: .18s ease;
}
.chip:hover {
transform: translateY(-1px);
border-color: #98b9ef;
background: #f0f6ff;
}
.chip.active {
background: linear-gradient(140deg, #1f4ea3, #3978e0);
border-color: transparent;
color: #fff;
box-shadow: 0 6px 16px rgba(34,83,172,.25);
}
.chip.dim {
opacity: .45;
}
.footer-bar {
margin-top: 14px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
color: var(--muted);
font-size: 13px;
}
button.action {
border: 0;
border-radius: 10px;
background: linear-gradient(140deg, #0d7e59, #0a6648);
color: #fff;
padding: 9px 18px;
font-weight: 800;
font-size: 13px;
font-family: Manrope, sans-serif;
cursor: pointer;
transition: .18s ease;
letter-spacing: .2px;
}
button.action:hover {
transform: translateY(-1px);
box-shadow: 0 8px 18px rgba(10, 100, 70, .30);
background: linear-gradient(140deg, #0e8d64, #0c7551);
}
.result {
margin-top: 16px;
background: #fff;
border-radius: var(--radius);
border: 1px solid #dfebff;
box-shadow: 0 10px 30px rgba(24, 56, 116, .07);
padding: 14px;
}
.result-head {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 14px;
gap: 12px;
padding-bottom: 12px;
border-bottom: 1px solid #e2ecff;
}
.result-head h3 {
margin: 0;
font-size: 16px;
color: #1f3f77;
font-weight: 800;
letter-spacing: .2px;
}
.active-filters {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 0 0 12px;
padding: 9px;
border-radius: 12px;
border: 1px solid #c9dafd;
background: linear-gradient(145deg, #e8f0ff, #dbe8ff);
box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}
.active-filter {
display: inline-flex;
align-items: center;
gap: 7px;
border-radius: 999px;
padding: 6px 8px 6px 10px;
border: 1px solid #cfe0ff;
background: linear-gradient(145deg, #f8fbff, #edf4ff);
color: #21457f;
font-size: 12px;
font-weight: 700;
}
.active-filter .kind {
opacity: .7;
font-weight: 600;
letter-spacing: .2px;
}
.active-filter .remove {
display: inline-grid;
place-items: center;
width: 20px;
height: 20px;
border: 0;
border-radius: 999px;
background: #dbe9ff;
color: #1f4a8f;
font-size: 14px;
line-height: 1;
cursor: pointer;
padding: 0;
transition: .16s ease;
}
.active-filter .remove:hover {
background: #c4dbff;
transform: scale(1.05);
}
.rows {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
gap: 12px;
}
.row-card {
border: 1px solid var(--line);
background: linear-gradient(180deg, #ffffff, #f5f9ff);
border-radius: 12px;
padding: 10px;
position: relative;
overflow: hidden;
transition: .2s ease;
}
.row-card::before {
content: "";
position: absolute;
top: 0; left: 0; right: 0;
height: 2px;
background: linear-gradient(90deg, #3978e0 0%, #7bb4ff 60%, transparent 100%);
}
.row-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 28px rgba(24, 56, 116, .13);
border-color: #c4d8ff;
}
.row-card strong {
color: #1a3e79;
font-size: 13px;
font-weight: 800;
display: block;
padding-bottom: 8px;
margin-bottom: 8px;
border-bottom: 1px solid #e8f0ff;
letter-spacing: .1px;
}
.tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
font-size: 12px;
border-radius: 999px;
background: linear-gradient(135deg, #f0f6ff, #e4efff);
color: #1e4a8d;
padding: 4px 10px;
border: 1px solid #c8dcff;
font-weight: 600;
transition: .16s ease;
}
.tag:hover {
background: linear-gradient(135deg, #e4efff, #d4e6ff);
}
a.tag {
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 5px;
}
a.tag::after {
content: "↗";
font-size: 11px;
opacity: .8;
}
a.tag:hover {
background: linear-gradient(135deg, #daeaff, #c8ddff);
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(30, 74, 141, .12);
}
.credit {
position: fixed;
right: 16px;
bottom: 10px;
text-align: right;
line-height: 1.1;
z-index: 5;
}
.credit .name {
font-family: Caveat, cursive;
font-size: 14px;
color: #1c3f7c;
}
.credit a {
font-size: 7px;
color: #2f5fae;
text-decoration: none;
font-weight: 700;
}
@media (max-width: 980px) {
.brand-logo { max-width: 160px; }
.board { grid-template-columns: 1fr; }
.hero { padding: 20px; }
.credit { right: 8px; bottom: 6px; }
.credit .name { font-size: 8px; }
.credit a { font-size: 6px; }
}
@media (max-width: 768px) {
.wrap {
width: calc(100% - 16px);
margin: 10px auto 18px;
}
.brand-strip {
margin-bottom: 8px;
}
.brand-logo {
width: clamp(132px, 42vw, 190px);
}
.hero {
padding: 16px 14px 20px;
border-radius: 16px;
}
.hero h1 {
font-size: clamp(22px, 7vw, 32px);
line-height: 1.06;
}
.hero p {
font-size: 14px;
}
.mode-switch-row {
flex-direction: column;
align-items: stretch;
}
.mode-switch {
width: 100%;
display: grid;
grid-template-columns: 1fr 1fr;
}
.polygon-btn {
width: 100%;
justify-content: center;
box-sizing: border-box;
}
.mode-btn {
width: 100%;
min-height: 42px;
}
.card {
min-height: 0;
padding: 12px;
}
.chip-grid {
max-height: 260px;
}
.chip {
font-size: 12px;
padding: 8px 10px;
}
.footer-bar {
flex-direction: column;
align-items: stretch;
gap: 8px;
background: rgba(255, 255, 255, .78);
border: 1px solid #dbe7ff;
border-radius: 12px;
padding: 10px;
}
button.action {
width: 100%;
min-height: 42px;
}
.result {
margin-top: 12px;
padding: 12px;
}
.active-filters {
margin-bottom: 10px;
}
.active-filter {
width: 100%;
justify-content: space-between;
}
.result-head h3 {
font-size: 15px;
}
.rows {
grid-template-columns: 1fr;
gap: 10px;
}
.credit {
right: 8px;
bottom: 8px;
background: rgba(255, 255, 255, .86);
border: 1px solid #dbe6ff;
border-radius: 10px;
padding: 4px 6px;
}
}
@media (max-width: 420px) {
.hero::before,
.hero::after {
opacity: .72;
}
.search {
padding: 10px 11px;
}
.tag {
font-size: 11px;
}
}
/* Custom scrollbar */
.chip-grid {
scrollbar-width: thin;
scrollbar-color: #c5d8f7 transparent;
}
.chip-grid::-webkit-scrollbar { width: 5px; }
.chip-grid::-webkit-scrollbar-track { background: transparent; }
.chip-grid::-webkit-scrollbar-thumb { background: #c5d8f7; border-radius: 4px; }
.chip-grid::-webkit-scrollbar-thumb:hover { background: #a8c4f0; }
/* Stat pills */
.stat-pill {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 10px;
background: rgba(30, 74, 141, .06);
border: 1px solid #d0e0ff;
border-radius: 999px;
font-size: 12px;
color: #2a4e8d;
font-weight: 600;
}
.stat-pill b {
color: #1a3e79;
font-weight: 800;
}
/* Footer stats row */
#stats {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
/* Entrance animations */
@keyframes fadeUp {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.hero { animation: fadeUp .35s ease both; }
.board { animation: fadeUp .45s ease .06s both; }
.footer-bar { animation: fadeUp .45s ease .09s both; }
.result { animation: fadeUp .45s ease .12s both; }
/* Chip count badge */
.card-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
}
.card-header h2 { margin: 0; }
.count-badge {
font-size: 11px;
font-weight: 700;
color: #3978e0;
background: #e8f0ff;
border: 1px solid #cddeff;
border-radius: 999px;
padding: 2px 8px;
min-width: 28px;
text-align: center;
}
/* ── Vendor tooltip popup ── */
.vendor-tooltip {
position: fixed;
z-index: 9999;
width: 280px;
background: #fff;
border-radius: 16px;
box-shadow: 0 20px 60px rgba(16,43,95,.22), 0 4px 16px rgba(16,43,95,.12);
border: 1px solid #dae6ff;
padding: 0;
pointer-events: none;
opacity: 0;
transform: translateY(6px) scale(.97);
transition: opacity .18s ease, transform .18s ease;
overflow: hidden;
}
.vendor-tooltip.visible {
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: auto;
}
.vtt-logo {
width: 100%;
height: 160px;
background: #f5f8ff;
border-bottom: 1px solid #e8f0ff;
display: flex;
align-items: center;
justify-content: center;
padding: 12px 20px;
}
.vtt-logo img {
max-width: 100%;
max-height: 136px;
object-fit: contain;
}
.vtt-logo-placeholder {
font-size: 22px;
font-weight: 800;
color: #3978e0;
letter-spacing: .5px;
}
.vtt-body {
padding: 12px 14px 14px;
}
.vtt-name {
font-size: 13px;
font-weight: 800;
color: #1a3e79;
margin: 0 0 6px;
}
.vtt-desc {
font-size: 12px;
color: #4a5d7a;
line-height: 1.55;
margin: 0 0 10px;
display: -webkit-box;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;
overflow: hidden;
}
.vtt-links {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.vtt-link {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 11px;
font-weight: 700;
padding: 4px 9px;
border-radius: 999px;
text-decoration: none;
transition: .15s ease;
}
.vtt-link.mont {
background: linear-gradient(135deg, #1f4ea3, #3978e0);
color: #fff;
}
.vtt-link.site {
background: #eef4ff;
color: #2a5aaa;
border: 1px solid #d0e0ff;
}
.vtt-link:hover { opacity: .85; }
/* Vendor info bar in results */
.vendor-info-bar {
display: flex;
align-items: flex-start;
gap: 18px;
background: linear-gradient(135deg, #f0f5ff 0%, #e8f0ff 100%);
border: 1px solid #c8d8f5;
border-radius: 16px;
padding: 16px 20px;
margin-bottom: 18px;
}
.vendor-info-bar + .vendor-info-bar { margin-top: -8px; }
.vib-logo {
flex-shrink: 0;
width: 240px;
height: 140px;
background: #fff;
border-radius: 12px;
border: 1px solid #dae6ff;
display: flex;
align-items: center;
justify-content: center;
padding: 14px 18px;
}
.vib-logo img { max-width: 100%; max-height: 112px; object-fit: contain; }
.vib-logo-text { font-size: 36px; font-weight: 800; color: #3978e0; }
.vib-info { flex: 1; min-width: 0; }
.vib-name { font-size: 15px; font-weight: 800; color: #1a3e79; margin: 0 0 5px; }
.vib-desc { font-size: 13px; color: #4a5d7a; line-height: 1.55; margin: 0 0 10px; }
.vib-links { display: flex; gap: 8px; flex-wrap: wrap; }
.vib-link {
display: inline-flex;
align-items: center;
font-size: 12px;
font-weight: 700;
padding: 4px 12px;
border-radius: 999px;
text-decoration: none;
transition: .15s ease;
}
.vib-link.mont { background: linear-gradient(135deg, #1f4ea3, #3978e0); color: #fff; }
.vib-link.site { background: #fff; color: #2a5aaa; border: 1px solid #c8d8f5; }
.vib-link:hover { opacity: .82; transform: translateY(-1px); }