/* Crypto Hero */
.crypto-hero {
  background: linear-gradient(rgba(29, 32, 36, 0.8), rgba(29, 32, 36, 0.8)),
    url("../../images/hero-bg10.jpg") center/cover no-repeat;
  height: 100vh;
  min-height: 500px;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
  position: relative;
  margin-top: 80px;
}

.crypto-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.crypto-hero .lead {
  font-size: 1.5rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Market Overview */
/* Market Overview */
.market-overview {
  background-color: var(--light-color);
  padding: 80px 0;
}

.tradingview-widget-container {
  height: 100vh;
  min-height: 500px;
  margin-bottom: 40px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  position: relative;
}

.tradingview-widget-copyright {
  font-size: 13px;
  line-height: 32px;
  text-align: center;
  vertical-align: middle;
  font-family: Arial, sans-serif;
  color: #9db2bd;
  margin-top: 10px;
}

.tradingview-widget-copyright .blue-text {
  color: #2962ff;
}

.market-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.stat-card {
  background-color: var(--white);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(57, 125, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  color: var(--accent-color);
  font-size: 24px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
}

/* Features */
/* Features Section */
.crypto-features {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.feature-card.active {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--accent-color);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(57, 125, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--accent-color);
  font-size: 32px;
  transition: all 0.3s ease;
}

.feature-card.active .feature-icon {
  background-color: var(--accent-color);
  color: white;
}

.feature-stats {
  margin-top: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

.feature-card.active .feature-stats {
  max-height: 100px;
  opacity: 1;
  padding-top: 15px;
}

.feature-stats span {
  display: inline-block;
  margin: 0 5px;
}

/* Supported Assets */
.supported-assets {
  background-color: var(--light-color);
  padding: 80px 0;
}

.assets-tabs {
  margin-top: 40px;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 25px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.asset-card {
  background-color: var(--white);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
}

.asset-card:hover {
  transform: translateY(-5px);
}

.asset-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
}

.asset-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.asset-name {
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.asset-name span {
  color: var(--text-light);
  font-size: 0.9rem;
}

.asset-price {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.asset-change {
  font-size: 0.9rem;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.asset-change.positive {
  color: #16c784;
  background-color: rgba(22, 199, 132, 0.1);
}

.asset-change.negative {
  color: #ea3943;
  background-color: rgba(234, 57, 67, 0.1);
}

.asset-volume,
.asset-market-cap {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 5px;
}

/* Trading Platforms */
.trading-platforms {
  padding: 80px 0;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.platform-card {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.platform-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.platform-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(57, 125, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--accent-color);
  font-size: 32px;
}

.platform-card h3 {
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.platform-stats {
  margin-top: 20px;
  font-size: 0.9rem;
}

.platform-stats div {
  margin: 5px 0;
}

/* Security */
.crypto-security {
  background-color: var(--light-color);
  padding: 80px 0;
}

.security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.security-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  transition: var(--transition);
}

.security-card:hover {
  transform: translateY(-5px);
}

.security-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(57, 125, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  color: var(--accent-color);
  font-size: 24px;
  flex-shrink: 0;
}

.security-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.security-stats {
  margin-top: 15px;
  font-size: 0.9rem;
}

/* CTA */
.crypto-cta {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  color: white;
  text-align: center;
  padding: 80px 0;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .crypto-hero h1 {
    font-size: 2.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .crypto-hero {
    height: 60vh;
  }

  .crypto-hero h1 {
    font-size: 2.2rem;
  }

  .crypto-hero .lead {
    font-size: 1.2rem;
  }

  .tradingview-widget-container {
    height: 400px;
  }
}

@media (max-width: 576px) {
  .crypto-hero {
    height: 50vh;
    min-height: 400px;
  }

  .tab-buttons {
    flex-direction: column;
  }

  .tab-btn {
    width: 100%;
    margin-bottom: 10px;
  }
}

.btn-outline {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
}

/* TradingView Widget Container */
.tradingview-widget-container {
  height: 100vh !important;
  min-height: 500px;
  position: relative;
}

/* Force height on dynamically generated elements */
[id^="tradingview_"] {
  height: 100vh !important;
}

.feature-stats {
  display: none;
}

.feature-card.active .feature-stats {
  display: block;
}

.positive {
  color: green;
}

.negative {
  color: red;
}
