/* === Real-Time Trading Section Styles === */

/* === REAL-TIME TRADING SECTION (REDESIGNED) === */
.real-time-trading {
  position: relative;
  padding: 100px 7%;
  background: radial-gradient(circle at top left, #0d1117, #020617);
  color: #f1f5f9;
  font-family: "Inter", "Segoe UI", sans-serif;
  border-top: 3px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* Animated gradient glow overlay */
.real-time-trading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(16, 185, 129, 0.08), rgba(59, 130, 246, 0.08));
  mix-blend-mode: overlay;
  animation: hueShift 8s infinite linear;
  z-index: 0;
}

@keyframes hueShift {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}

.trading-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.trading-header h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #06b6d4, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trading-header p {
  font-size: 1.2rem;
  color: #9ca3af;
  font-weight: 500;
  margin-top: 10px;
}


/* === LIVE TICKER (Optimized Smooth Scroll) === */
.live-ticker {
  overflow: hidden;
  white-space: nowrap;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 15px 0;
  position: relative;
  z-index: 2;
}

.ticker-list {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 50px;
  will-change: transform;
}

.ticker-list li {
  color: #22d3ee;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1rem;
  text-shadow: 0 0 6px rgba(34, 211, 238, 0.4);
  transition: color 0.3s ease;
}

/* === TRADING DATA CARDS === */
.trading-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
  position: relative;
  z-index: 2;
}

.crypto-card,
.more-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 30px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  transition: all 0.4s ease;
  cursor: pointer;
}

.crypto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(6, 182, 212, 0.25);
  border-color: rgba(6, 182, 212, 0.4);
}

.crypto-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.crypto-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f1f5f9;
}

.price {
  font-size: 1.2rem;
  color: #06b6d4;
  font-weight: 700;
}

.positive { color: #22c55e; }
.negative { color: #ef4444; }

/* Trade button */
.trade-btn {
  margin-top: 18px;
  padding: 10px 22px;
  border: none;
  background: #06b6d4;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.trade-btn:hover {
  background: linear-gradient(135deg, #0ea5e9, #a855f7);
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.4);
}

/* === Responsive Styles === */

@media (min-width: 1025px) and (max-width: 1499px) { 
  .trading-header h1 { 
    font-size: 2.5rem; 
  } 
  
  .trading-header p { 
    font-size: 1.2rem; 
  } 
  
  .crypto-card { 
    padding: 20px; 
  } 
}


@media (min-width: 768px) and (max-width: 1024px) { 
  .trading-header h1 { 
    font-size: 2rem; 
  } 
  
  .trading-header p { 
    font-size: 1rem; 
  } 
  
  .crypto-header h3, .more-card .crypto-header h3 { 
    font-size: 1rem; 
  } 
  
  .crypto-card p, .price { 
    font-size: 0.9rem; 
  } 
  
  .trade-btn { 
    font-size: 0.8rem; 
    padding: 8px 16px;
  } 
  
  .trading-data { 
    grid-template-columns: repeat(2, 1fr); 
  } 
}


@media (min-width: 576px) and (max-width: 767px) { 
  .trading-header h1 { 
    font-size: 1.8rem; 
  } 
  
  .trading-header p { 
    font-size: 0.95rem; 
  } 
  
  .crypto-header h3, .more-card .crypto-header h3 { 
    font-size: 1rem; 
  } 
  
  .crypto-card p, .price { 
    font-size: 0.85rem; 
  } 
  
  .trade-btn { 
    font-size: 0.7rem;
    padding: 8px 16px; 
  } 
  
  .trading-data { 
    grid-template-columns: repeat(2, 1fr); 
  } 
}

@media (max-width: 575px) { 
  .trading-header h1 { 
    font-size: 1.5rem; 
  } 
  
  .trading-header p { 
    font-size: 0.9rem; 
  } 
  
  .crypto-header h3, .more-card .crypto-header h3 { 
    font-size: 1rem; 
  } 
  
  .crypto-card p, .price { 
    font-size: 0.8rem; 
  } 
  
  .trade-btn { 
    font-size: 0.7rem; 
    padding: 8px 16px; 
  } 
  
  .trading-data { 
    grid-template-columns: repeat(2, 1fr); 
  } 
}


@media (max-width: 375px) { 
  .trading-header p { 
    font-size: 0.85rem; 
  } 
  
  .trading-data { 
    grid-template-columns: repeat(1, 1fr); 
  } 
}