/* ========================================
   Category Page Styles
   ======================================== */

/* Hero Section */
.category-hero {
  margin-top: 64px;
  background: #f9f9fb;
  height: 427px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 55px 0;
}

.category-hero-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.category-hero-content {
  text-align: center;
  padding: 0 48px;
  position: relative;
  z-index: 1;
}

.category-hero-title {
  font-size: 90px;
  font-weight: 400;
  line-height: 70px;
  color: var(--primary-color);
  margin-bottom: 17px;
  letter-spacing: 0.12px;
  display: block;
}

.category-hero-badge {
  display: flex;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
  gap: 8px;
  background: linear-gradient(to right, rgba(108, 178, 247, 0.1), rgba(43, 127, 255, 0.1));
  border: 1px solid rgba(21, 94, 240, 0.5);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 24px;
}

.category-hero-badge img {
  width: 16px;
  height: 16px;
}

.category-hero-badge span {
  font-size: 14px;
  color: #155ef0;
  line-height: 20px;
}

.category-hero-desc {
  font-size: 20px;
  color: #8c8c8c;
  line-height: 26px;
}

.category-hero-decoration {
  position: absolute;
  pointer-events: none;
}

.category-hero-decoration.hero-left {
  left: calc(50% - 680px);
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
}

.category-hero-decoration.hero-right {
  right: calc(50% - 680px);
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
}

.category-hero-decoration img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.category-hero-title-img {
  height: 70px;
  width: auto;
  margin-bottom: 17px;
}

/* Crypto Ticker */
.crypto-ticker-category {
  background: #0f5fff;
  height: 36px;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content-category {
  display: flex;
  animation: ticker 30s linear infinite;
}

.ticker-item-category {
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  line-height: 36px;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Main Content */
.category-content {
  width: 1360px;
  margin: 0 auto;
  padding: 50px 0 80px;
}

@media (max-width: 1400px) {
  .category-content {
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Category Cards Grid */
.category-cards {
  display: flex;
  gap: 20px;
}

.category-card {
  flex: 1;
  background: white;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  min-height: 378px;
}

.category-card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.category-card-title {
  font-size: 24px;
  font-weight: 500;
  color: #000;
  text-align: center;
  line-height: 28px;
}

.category-card-desc {
  flex: 1;
  font-size: 14px;
  color: #4a5565;
  text-align: center;
  line-height: 20px;
}

.category-card-btn {
  width: 100%;
  padding: 11px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  line-height: 24px;
  white-space: nowrap;
  background: white;
  color: #000;
  border: 1px solid #000;
}

.category-card-btn:hover {
  background: #155ef0;
  color: white;
  border-color: #155ef0;
}

.category-card-btn.primary {
  background: #155ef0;
  color: white;
  border: none;
}

.category-card-btn.primary:hover {
  background: #1350d0;
}

/* Responsive */
@media (max-width: 1200px) {
  .category-cards {
    flex-wrap: wrap;
  }
  
  .category-card {
    min-width: calc(33.333% - 14px);
  }
  
  .category-hero-title {
    font-size: 60px;
    line-height: 50px;
  }
}

@media (max-width: 900px) {
  .category-card {
    min-width: calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  /* ===== Mobile Hero Section ===== */
  .category-hero {
    margin-top: 96px;
    height: auto;
    padding: 16px;
    background: transparent;
  }
  
  .category-hero-inner {
    background: #f2f2f2;
    border-radius: 0;
    padding: 20px 16px;
    height: 192px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
  
  .category-hero-content {
    padding: 0;
    position: relative;
    z-index: 1;
  }
  
  .category-hero-title-img {
    height: 28px;
    margin-bottom: 10px;
  }
  
  .category-hero-badge {
    padding: 4px 7px;
    gap: 3px;
    margin-bottom: 12px;
  }
  
  .category-hero-badge img {
    width: 6px;
    height: 6px;
  }
  
  .category-hero-badge span {
    font-size: 10px;
    line-height: 12px;
  }
  
  .category-hero-desc {
    font-size: 10px;
    line-height: 14px;
    max-width: 140px;
    margin: 0 auto;
    color: #364153;
  }
  
  .category-hero-decoration {
    display: block;
    position: absolute;
    pointer-events: none;
  }
  
  .category-hero-decoration.hero-left {
    left: 10px;
    top: auto;
    bottom: 20px;
    transform: none;
    width: 80px;
  }
  
  .category-hero-decoration.hero-right {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
  }
  
  .category-hero-decoration img {
    width: 100%;
    height: auto;
  }
  
  /* ===== Mobile Ticker ===== */
  .crypto-ticker-category {
    height: 30px;
  }
  
  .ticker-item-category {
    padding: 0 20px;
    font-size: 12px;
    line-height: 30px;
  }
  
  /* ===== Mobile Main Content ===== */
  .category-content {
    padding: 20px 16px;
  }
  
  .category-cards {
    flex-direction: column;
    gap: 20px;
  }
  
  .category-card {
    min-width: 100%;
    min-height: auto;
    padding: 16px;
    gap: 16px;
    border-radius: 16px;
  }
  
  .category-card-icon {
    width: 64px;
    height: 64px;
  }
  
  .category-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #101828;
  }
  
  .category-card-desc {
    font-size: 12px;
    line-height: 16px;
    color: #364153;
  }
  
  .category-card-desc p {
    margin: 0 0 8px;
  }
  
  .category-card-desc p:last-child {
    margin-bottom: 0;
  }
  
  .category-card-btn {
    height: 40px;
    padding: 0 32px;
    font-size: 14px;
    line-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
