Spaces:
Running
Running
File size: 20,364 Bytes
796bc59 f3747d2 796bc59 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 | /* ββββββββββββββββββββββββββββββββββββββββββ
PriceMyCar β Main Stylesheet
Font: Sora (UI) + DM Mono (numbers)
ββββββββββββββββββββββββββββββββββββββββββ */
:root {
--blue: #2563EB;
--blue-light: #EFF6FF;
--blue-dark: #1E40AF;
--green: #16A34A;
--red: #DC2626;
--yellow: #D97706;
--bg: #F8FAFC;
--surface: #FFFFFF;
--border: #E2E8F0;
--text: #1E293B;
--muted: #64748B;
--radius: 12px;
--shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.04);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { font-family: 'Sora', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
/* ββ NAV ββ */
.navbar {
display: flex; align-items: center; justify-content: space-between;
padding: 0 40px; height: 64px; background: #fff;
border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; color: var(--text); font-size: 1rem; }
.nav-logo { width: 30px; height: 30px; background: var(--blue); border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .9rem; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .875rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.btn-primary { background: var(--blue); color: #fff; padding: 8px 20px; border-radius: 8px; font-size: .875rem; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: background .2s; }
.btn-primary:hover { background: var(--blue-dark); }
/* ββ HERO ββ */
.hero { padding: 80px 40px 60px; max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 60px; }
.hero-text { flex: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-light); color: var(--blue); padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: 2.75rem; font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.hero h1 span { color: var(--blue); }
.hero p { color: var(--muted); margin-bottom: 28px; font-size: 1rem; max-width: 420px; }
.hero-btns { display: flex; gap: 12px; }
.btn-outline { background: #fff; color: var(--text); padding: 10px 22px; border-radius: 8px; font-size: .875rem; font-weight: 600; text-decoration: none; border: 1.5px solid var(--border); transition: border-color .2s; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.hero-img { flex: 0 0 340px; }
.hero-img svg { width: 100%; }
/* ββ WHY SECTION ββ */
.why-section { background: var(--blue-light); padding: 80px 40px; text-align: center; }
.section-heading { font-size: 1.75rem; font-weight: 700; margin-bottom: 8px; }
.section-sub { color: var(--muted); margin-bottom: 48px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; }
.card { background: #fff; border-radius: var(--radius); padding: 28px; text-align: left; box-shadow: var(--shadow); }
.card-icon { font-size: 1.5rem; margin-bottom: 12px; }
.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: .875rem; color: var(--muted); }
/* ββ HOW IT WORKS ββ */
.how-section { padding: 80px 40px; text-align: center; }
.steps-grid { display: flex; gap: 0; max-width: 700px; margin: 40px auto 0; position: relative; }
.steps-grid::before { content: ''; position: absolute; top: 24px; left: 48px; right: 48px; height: 2px; background: var(--border); z-index: 0; }
.step { flex: 1; text-align: center; position: relative; z-index: 1; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; margin: 0 auto 16px; font-size: 1rem; }
.step h3 { font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: .8rem; color: var(--muted); }
/* ββ PREDICT PAGE ββ */
.predict-page { padding: 48px 40px; max-width: 1100px; margin: 0 auto; }
.predict-page h1 { font-size: 1.875rem; font-weight: 700; margin-bottom: 6px; }
.page-sub { color: var(--muted); margin-bottom: 32px; }
.predict-container { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.form-section { background: #fff; border-radius: var(--radius); padding: 28px; margin-bottom: 20px; border: 1px solid var(--border); }
.section-title { font-weight: 600; font-size: 1rem; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.section-icon { font-size: 1.1rem; }
.badge-new { background: var(--blue); color: #fff; font-size: .65rem; padding: 2px 8px; border-radius: 10px; font-weight: 700; }
.section-desc { font-size: .8rem; color: var(--muted); margin-bottom: 20px; line-height: 1.5; padding: 10px 14px; background: var(--blue-light); border-radius: 8px; }
.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-row.two-col > * { flex: 1; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.form-group input, .form-group select {
padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px;
font-family: 'Sora', sans-serif; font-size: .875rem; color: var(--text);
background: #fff; transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--blue); }
.form-group small { font-size: .72rem; color: var(--muted); margin-top: 4px; }
.condition-section { border: 1.5px solid var(--blue); background: #FAFCFF; }
.penalty-preview { margin-top: 20px; padding: 14px; background: #fff; border-radius: 8px; border: 1px solid var(--border); }
.penalty-bar-wrap { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .8rem; font-weight: 500; }
.penalty-pct { color: var(--red); font-family: 'DM Mono', monospace; font-weight: 700; }
.penalty-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.penalty-fill { height: 100%; background: var(--red); border-radius: 4px; transition: width .4s; }
.btn-predict { width: 100%; padding: 16px; background: var(--blue); color: #fff; font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 600; border: none; border-radius: 10px; cursor: pointer; transition: background .2s; }
.btn-predict:hover { background: var(--blue-dark); }
/* sidebar */
.predict-sidebar { position: sticky; top: 80px; }
.sidebar-card { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); margin-bottom: 16px; }
.sidebar-card h3 { font-size: .9rem; font-weight: 600; margin-bottom: 14px; }
.progress-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.progress-bar { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--blue); border-radius: 4px; transition: width .4s; }
.progress-wrap span { font-size: .8rem; font-weight: 700; color: var(--blue); font-family: 'DM Mono', monospace; min-width: 36px; }
.completeness-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.completeness-list li { font-size: .8rem; padding-left: 20px; position: relative; color: var(--muted); }
.completeness-list li::before { content: 'β'; position: absolute; left: 0; color: var(--muted); }
.completeness-list li.done { color: var(--green); }
.completeness-list li.done::before { content: 'β'; color: var(--green); }
.how-card p { font-size: .8rem; color: var(--muted); }
/* ββ RESULT PAGE ββ */
.result-page { padding: 48px 40px; max-width: 1100px; margin: 0 auto; }
.back-link { font-size: .8rem; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 20px; }
.back-link:hover { color: var(--blue); }
.result-page h1 { font-size: 1.875rem; font-weight: 700; margin-bottom: 4px; }
.result-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; margin-top: 28px; }
.price-card { background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--border); margin-bottom: 20px; }
.confidence-badge { display: inline-flex; align-items: center; gap: 6px; background: #D1FAE5; color: var(--green); padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 600; margin-bottom: 20px; }
.confidence-badge::before { content: 'β'; font-size: .6rem; }
.price-label { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.price-main { font-size: 2.5rem; font-weight: 700; color: var(--text); font-family: 'DM Mono', monospace; }
.price-adjustment { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.base-label { font-size: .8rem; color: var(--muted); }
.penalty-tag { background: #FEF2F2; color: var(--red); padding: 2px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.price-range { font-size: .8rem; color: var(--muted); margin-top: 12px; font-family: 'DM Mono', monospace; }
.chart-card { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.chart-card h3 { font-size: .9rem; font-weight: 600; margin-bottom: 20px; }
.bar-chart { display: flex; align-items: flex-end; gap: 20px; height: 120px; }
.bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar { width: 100%; background: #CBD5E1; border-radius: 4px 4px 0 0; transition: height .5s; }
.bar.highlight { background: var(--blue); }
.bar-group span { font-size: .7rem; color: var(--muted); text-align: center; }
.factors-card { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); margin-bottom: 16px; }
.factors-card h3 { font-size: .9rem; font-weight: 600; margin-bottom: 14px; }
.factor { padding: 12px 14px; border-radius: 8px; margin-bottom: 10px; font-size: .8rem; }
.factor.positive { background: #F0FDF4; border-left: 3px solid var(--green); }
.factor.negative { background: #FFF7ED; border-left: 3px solid var(--yellow); }
.factor-label { font-weight: 600; margin-bottom: 4px; font-size: .75rem; }
.breakdown-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.breakdown-table th { text-align: left; padding: 6px 8px; border-bottom: 1.5px solid var(--border); color: var(--muted); font-weight: 600; }
.breakdown-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); }
.breakdown-table .total-row td { border-top: 1.5px solid var(--border); border-bottom: none; }
.penalty-neg { color: var(--red); font-family: 'DM Mono', monospace; font-weight: 600; }
.penalty-pos { color: var(--green); font-family: 'DM Mono', monospace; font-weight: 600; }
/* ββ DATA INSIGHTS PAGE ββ */
.insights-page { padding: 48px 40px; max-width: 1100px; margin: 0 auto; }
.insights-page h1 { font-size: 1.875rem; font-weight: 700; margin-bottom: 6px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 20px 24px; border: 1px solid var(--border); }
.stat-label { font-size: .75rem; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.stat-value { font-size: 1.75rem; font-weight: 700; font-family: 'DM Mono', monospace; }
.charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.chart-wrap { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.chart-wrap h3 { font-size: .9rem; font-weight: 600; margin-bottom: 16px; }
/* ββ MODEL INFO PAGE ββ */
.model-page { padding: 48px 40px 80px; max-width: 900px; margin: 0 auto; text-align: center; }
.model-page h1 { font-size: 2rem; font-weight: 700; margin-bottom: 10px; }
.pipeline { display: flex; gap: 0; margin: 48px 0 64px; position: relative; }
.pipeline::before { content: ''; position: absolute; top: 28px; left: 64px; right: 64px; height: 2px; background: var(--border); }
.pipe-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.pipe-icon { width: 56px; height: 56px; border-radius: var(--radius); background: #fff; border: 1.5px solid var(--border); display: grid; place-items: center; margin: 0 auto 12px; font-size: 1.3rem; }
.pipe-step.active .pipe-icon { background: var(--blue); border-color: var(--blue); }
.pipe-step h4 { font-size: .8rem; font-weight: 600; margin-bottom: 4px; }
.pipe-step p { font-size: .73rem; color: var(--muted); }
.algo-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; text-align: left; }
.algo-section h2, .metrics-section h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
.algo-section p { font-size: .875rem; color: var(--muted); margin-bottom: 12px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.feature-list li { display: block; position: relative; padding-left: 24px; font-size: .875rem; text-align: left; line-height: 1.5; }
.feature-list li::before { content: 'β'; color: var(--green); font-weight: 700; position: absolute; left: 0; top: 1px; }
.metric-row { background: #fff; border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.metric-name { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.metric-desc { font-size: .78rem; color: var(--muted); }
.metric-val { font-size: 1.25rem; font-weight: 700; font-family: 'DM Mono', monospace; color: var(--blue); }
/* ββ ABOUT PAGE ββ */
.about-page { padding: 64px 40px 80px; max-width: 900px; margin: 0 auto; text-align: center; }
.about-page h1 { font-size: 2rem; font-weight: 700; margin-bottom: 10px; }
.about-body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 48px 0; text-align: left; }
.about-left h2, .dataset-card h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.about-left p { font-size: .875rem; color: var(--muted); line-height: 1.7; }
.dataset-card { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); height: fit-content; }
.dataset-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .875rem; }
.dataset-row:last-child { border: none; }
.dataset-row span:last-child { font-weight: 600; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); text-align: center; }
.team-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--blue-light); display: grid; place-items: center; margin: 0 auto 12px; font-size: 1.5rem; }
.team-card h4 { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.team-card span { font-size: .78rem; color: var(--blue); }
/* ββ FOOTER ββ */
.footer { background: #fff; border-top: 1px solid var(--border); padding: 48px 40px 24px; }
.footer-inner { display: flex; gap: 64px; max-width: 1100px; margin: 0 auto 32px; }
.footer-brand { flex: 2; }
.footer-brand p { font-size: .8rem; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.footer-col h4 { font-size: .8rem; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: .8rem; color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--blue); }
.footer-copy { text-align: center; font-size: .75rem; color: var(--muted); max-width: 1100px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--border); }
/* ββ ALERT ββ */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: .875rem; display: flex; gap: 12px; align-items: flex-start; text-align: left; }
.alert-error { background: #FEF2F2; color: var(--red); border: 1px solid #FECACA; }
.alert-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.alert-warning h4 { font-weight: 600; margin-bottom: 4px; font-size: .9rem; color: #78350F; }
.alert-warning p { font-size: .82rem; color: #92400E; margin: 0; line-height: 1.4; }
.alert-icon { font-size: 1.25rem; }
/* ββ MODELS CARD (PREDICT PAGE SIDEBAR) ββ */
.models-details { font-size: .8rem; color: var(--muted); cursor: pointer; }
.models-details summary { font-weight: 600; color: var(--blue); margin-bottom: 6px; outline: none; }
.supported-models-list { font-size: .75rem; line-height: 1.5; color: var(--text); background: var(--bg); padding: 12px; border-radius: 6px; border: 1px solid var(--border); margin-top: 6px; max-height: 200px; overflow-y: auto; text-align: left; }
/* ββ ANALYSIS CARD (RESULT PAGE) ββ */
.analysis-card { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); margin-top: 20px; text-align: left; }
.analysis-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.analysis-section { margin-bottom: 20px; }
.analysis-section:last-child { margin-bottom: 0; }
.analysis-section h4 { font-size: .85rem; font-weight: 600; margin-bottom: 8px; color: var(--blue); }
.analysis-section p { font-size: .8rem; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.deviation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.dev-item { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px; position: relative; }
.dev-item strong { display: block; font-size: .78rem; font-weight: 600; color: var(--text); margin-bottom: 4px; padding-left: 24px; }
.dev-icon { position: absolute; left: 12px; top: 12px; font-size: .95rem; }
.dev-item p { font-size: .72rem; color: var(--muted); line-height: 1.4; margin: 0; padding-left: 24px; }
/* ββ RESPONSIVE DESIGN (MEDIA QUERIES) ββ */
@media (max-width: 992px) {
.predict-container {
grid-template-columns: 1fr;
}
.result-grid {
grid-template-columns: 1fr;
}
.predict-sidebar {
position: static;
}
}
@media (max-width: 768px) {
html { font-size: 15px; }
.navbar {
padding: 12px 20px;
height: auto;
flex-direction: column;
gap: 12px;
}
.nav-links {
gap: 16px;
flex-wrap: wrap;
justify-content: center;
}
.hero {
flex-direction: column-reverse;
padding: 40px 20px;
gap: 32px;
text-align: center;
}
.hero h1 {
font-size: 2.2rem;
}
.hero p {
margin: 0 auto 24px;
}
.hero-btns {
justify-content: center;
}
.hero-img {
flex: 0 0 auto;
width: 200px;
}
.why-section, .how-section, .predict-page, .result-page, .insights-page, .model-page, .about-page {
padding: 40px 20px;
}
.cards-grid {
grid-template-columns: 1fr;
gap: 20px;
}
.steps-grid {
flex-direction: column;
gap: 32px;
}
.steps-grid::before {
display: none;
}
.form-row {
flex-direction: column;
gap: 16px;
}
.form-row.two-col > * {
flex: none;
width: 100%;
}
.charts-row {
grid-template-columns: 1fr;
}
.deviation-grid {
grid-template-columns: 1fr;
}
.stats-row {
grid-template-columns: 1fr;
gap: 16px;
}
.about-body {
grid-template-columns: 1fr;
gap: 32px;
}
.team-grid {
grid-template-columns: repeat(2, 1fr);
gap: 16px;
}
.footer-inner {
flex-direction: column;
gap: 32px;
text-align: center;
}
.footer-brand {
text-align: center;
}
}
@media (max-width: 480px) {
.team-grid {
grid-template-columns: 1fr;
}
.hero-btns {
flex-direction: column;
width: 100%;
}
.btn-primary, .btn-outline {
text-align: center;
width: 100%;
}
}
|