PricingChart.css 6.13 KB
Newer Older
1
.pricing-chart {
fisherdaddy's avatar
fisherdaddy committed
2 3 4 5 6 7 8
  padding: 2.5rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(240,242,245,0.1) 100%);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
9 10 11
}

.chart-title {
fisherdaddy's avatar
fisherdaddy committed
12 13 14 15 16
  font-size: 1.75rem;
  background: linear-gradient(90deg, #4285f4, #7c4dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
17 18 19
}

.chart-subtitle {
fisherdaddy's avatar
fisherdaddy committed
20 21 22
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
23 24 25 26 27 28 29 30 31 32 33 34
}

.legend {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
fisherdaddy's avatar
fisherdaddy committed
35 36 37 38 39 40 41 42 43
  background: rgba(255,255,255,0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.legend-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.input-color {
  background-color: #4285f4;
}

.output-color {
  background-color: #7c4dff;
}

.chart-area {
  display: flex;
62 63 64 65 66
  width: 100%;
  overflow-x: auto;
  padding-bottom: 10px;
  position: relative;
  scroll-behavior: smooth;
67 68 69 70 71 72
}

.y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
fisherdaddy's avatar
fisherdaddy committed
73
  height: 220px;
74 75 76 77 78 79 80 81 82 83 84
  margin-right: 10px;
}

.y-axis-label {
  font-size: 0.75rem;
  text-align: right;
}

.chart-container {
  display: flex;
  align-items: flex-end;
fisherdaddy's avatar
fisherdaddy committed
85 86
  gap: 0.1rem;
  height: 350px;
87
  position: relative;
fisherdaddy's avatar
fisherdaddy committed
88
  padding-bottom: 130px;
89 90
  min-width: min-content;
  flex-grow: 1;
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
}

.grid-lines {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 80px;
  z-index: 1;
}

.grid-line {
  position: absolute;
  left: 0;
  right: 0;
fisherdaddy's avatar
fisherdaddy committed
106
  border-top: 1px dashed rgba(224,224,224,0.3);
107 108 109 110
}

.chart-column {
  position: relative;
111 112
  min-width: 60px;
  max-width: 80px;
113 114 115 116 117 118 119 120 121 122 123 124
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bars-container {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 100%;
  justify-content: center;
125
  flex-grow: 1;
126 127 128
}

.bar {
129
  width: 15px;
130 131
  position: relative;
  border-radius: 4px 4px 0 0;
fisherdaddy's avatar
fisherdaddy committed
132 133 134
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(180deg, rgba(66,133,244,0.9), rgba(66,133,244,0.7));
  box-shadow: 0 4px 12px rgba(66,133,244,0.2);
135 136 137
}

.input-bar {
fisherdaddy's avatar
fisherdaddy committed
138
  background: linear-gradient(180deg, #4285f4, #2b579a);
139 140 141
}

.output-bar {
fisherdaddy's avatar
fisherdaddy committed
142
  background: linear-gradient(180deg, #7c4dff, #4a2b9a);
143 144 145 146 147 148 149 150
  margin-left: 5px;
}

.price-label {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
151
  font-size: 0.65rem;
152 153 154 155 156 157 158 159 160 161 162 163 164 165
  white-space: nowrap;
}

.provider-info {
  position: absolute;
  bottom: -70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.provider-logo {
166
  width: 20px;
167 168
  height: 20px;
  object-fit: contain;
fisherdaddy's avatar
fisherdaddy committed
169 170 171 172 173 174
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: transform 0.3s ease;
}

.provider-logo:hover {
  transform: scale(1.1);
175 176 177
}

.provider-name {
178
  font-size: 12px;
179 180
  transform: translate(-18px, 36px) rotate(-77deg);
  transform-origin: top center;
181 182
  line-height: 14px;
  width: 90px;
183 184 185 186 187
  text-align: right;
  height: 40px;
  word-break: break-all;
  white-space: break-spaces;
  padding-right: 18px;
188
  color: var(--text-secondary);
189 190 191
}

.pricing-charts-container {
192
  padding: 6rem 2rem 2rem;
193 194
  max-width: 1200px;
  margin: 0 auto;
fisherdaddy's avatar
fisherdaddy committed
195 196
  background: var(--bg-primary);
  min-height: 100vh;
197 198 199
}

.update-time {
fisherdaddy's avatar
fisherdaddy committed
200 201 202 203 204
  background: rgba(255,255,255,0.05);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  display: inline-block;
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

.chart-area::after {
  content: '';
  position: sticky;
  top: 0;
  right: 0;
  height: calc(100% - 10px);
  width: 60px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.2));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.chart-area.has-scroll::after {
  opacity: 1;
}

@keyframes scrollHint {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
  100% {
    transform: translateX(0);
  }
}

.scroll-hint-container {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  pointer-events: auto;
  cursor: pointer;
}

.scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  animation: scrollHint 1.5s infinite;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.scroll-hint:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.chart-area::-webkit-scrollbar {
  height: 8px;
  z-index: 10;
}

.chart-area::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.chart-area::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.05);
}

.chart-area::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}
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

.score-bar {
  background: linear-gradient(180deg, #4CAF50 0%, #2E7D32 100%);
  width: 40px;
  margin: 0 10px;
  border-radius: 4px;
  position: relative;
  transition: opacity 0.3s ease;
}

.tab-ranking-charts {
  margin: 2rem 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-buttons {
  display: flex;
  gap: 1px;
  background: #f5f5f5;
  padding: 0.5rem;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid #eee;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  color: #666;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.tab-button:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
}

.tab-button.active {
  background: #fff;
  color: #1a73e8;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tab-content {
  padding: 1rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}