@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;900&display=swap');

:root {
  --bg: #0b0d13;
  --text: #e5e7eb;
  --muted: #b7bec9;
  --accent: #2ed0ff;
  --card: #1b1f28;
  --pink: #ff3db8;
  --purple: #b74fff;
  --green: #10b981;
  --red: #ef4444;
  --border: #2a2d36;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Raleway', sans-serif;
  background: rgb(21, 23, 29);
  color: #fff;
  overflow-x: hidden;
  line-height: 1.5;
  background-image:
    linear-gradient(rgba(45, 62, 62, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 62, 62, 0.15) 1px, transparent 1px);
  background-size: 25px 25px;
  animation: driftGrid 60s ease-in-out infinite;
}

@keyframes driftGrid {
  0% { background-position: 0 0, 0 0; }
  50% { background-position: 20px 40px, 40px 20px; }
  100% { background-position: 0 0, 0 0; }
}

/* Navbar Styles - Inheriting from main site */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(13, 13, 18, 0.95);
  color: white;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-cont {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  width: 40px;
  height: 43px;
}

.brand-name {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 75px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: #06b6d4;
}

.btn-outline {
  background: none;
  color: white;
  border: 1px solid white;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: #06b6d4;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.nav-2 {
  margin-top: 8px;
  padding: 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: rgb(41, 44, 53);
  position: sticky;
  top: 60px;
  z-index: 1000;
}

.nav-2-links a {
  color: #06b6d4;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-2-links a:hover {
  background-color: rgba(6, 182, 212, 0.1);
  transform: translateY(-2px);
}

/* Accent lines and animations */
.wrap {
  max-width: 1120px;
  margin: 30px auto;
  padding: 32px 20px 64px;
  position: relative;
  text-align: center;
  z-index: 0;
}

.accent-line {
  position: absolute;
  height: 4px;
  border-radius: 2px;
  animation: pulse 3s infinite ease-out;
}

.accent-line.a {
  width: 42px;
  top: 14px;
  left: 14px;
  background: var(--pink);
}

.accent-line.b {
  width: 72px;
  top: 34px;
  left: 0;
  background: var(--purple);
}

.accent-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  top: 86px;
  left: 20px;
  animation: blink 1.8s infinite ease-in-out;
}

.accent-line.right, .accent-dot.right {
  left: auto;
  right: 0;
}

.accent-bottom {
  position: relative;
  left: 50%;
  bottom: 1px;
  width: 860px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--pink), transparent);
  transform: translateX(-50%);
  animation: fadeSlide 4s infinite ease-in-out;
}

@keyframes pulse {
  0% { opacity: 0.5; transform: scaleX(0.9); transform-origin: left; }
  50% { opacity: 1; transform: scaleX(1.3); }
  100% { opacity: 0.5; transform: scaleX(0.9); transform-origin: right; }
}

@keyframes blink {
  0%, 100% { opacity: .4; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes fadeSlide {
  0%, 100% { opacity: .4; transform: translateX(-50%) scaleX(.7); }
  50% { opacity: 1; transform: translateX(-50%) scaleX(1); }
}

/* Typography */
.title {
  font-size: 56px;
  line-height: 56px;
  letter-spacing: 0;
  margin: 6px 0 16px;
  white-space: nowrap;
}

.title .strong {
  font-weight: 900;
  color: var(--accent);
}

.title .light {
  font-weight: 400;
  color: var(--text);
}

/* News Hero Section */
.news-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 130px 60px;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(139, 69, 19, 0.1));
  margin-bottom: 40px;
}

.hero-news-content {
  flex: 1;
  max-width: 600px;
}

.breaking-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #2ed0ff);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: pulseBadge 2s infinite ease-in-out;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(239, 68, 68, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(239, 68, 68, 0.5); }
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-summary {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.hero-meta span {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

/* Price Ticker */
.price-ticker {
  background: var(--card);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.ticker-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-item:last-child {
  border-bottom: none;
}

.crypto-name {
  font-weight: bold;
  font-size: 16px;
}

.crypto-price {
  font-size: 18px;
  font-weight: bold;
}

.crypto-price.up {
  color: var(--green);
}

.crypto-price.down {
  color: var(--red);
}

.crypto-change {
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: bold;
}

.crypto-change:contains('+') {
  background: rgba(16, 185, 129, 0.2);
  color: var(--green);
}

/* Market Overview */
.market-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.stat-card {
  background: linear-gradient(135deg, var(--purple), var(--accent));
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(46, 208, 255, 0.1), transparent);
  transition: left 0.5s;
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgb(46, 210, 255);
}

.stat-card:hover::before {
  left: 100%;
}

.stat-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.stat-card h3 {
  color: var(--card);
  margin-bottom: 10px;
  font-size: 14px;
  text-transform: uppercase;
}

.stat-value {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--card);
}

.stat-change {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.stat-change.up {
  background: rgba(16, 185, 129, 0.2);
  color: var(--card);
}

.stat-change.down {
  background: rgba(239, 68, 68, 0.2);
  color: var(--red);
}

.stat-change.neutral {
  background: rgba(107, 114, 128, 0.2);
  color: var(--card);
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.article-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.article-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.article-image {
  height: 200px;
  background: linear-gradient(135deg, var(--purple), var(--accent));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-card.featured .article-image {
  height: 300px;
}

.category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.8);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.article-content {
  padding: 25px;
}

.article-content h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
  color: var(--text);
}

.article-content p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.time, .read-time {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 8px;
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 30px 0;
  flex-wrap: wrap;
}

.tab-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-color: transparent;
  color: white;
  box-shadow: 0 5px 15px rgba(46, 208, 255, 0.3);
}

/* News List */
.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px;
  padding: 25px;
  background: var(--card);
  border-radius: 12px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  cursor: pointer;
}

.news-item:hover {
  transform: translateX(10px);
  border-left-color: var(--accent);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.news-time {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  height: fit-content;
}

.news-content h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--text);
}

.news-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.news-price {
  display: flex;
  align-items: center;
}

.price-change {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.price-change.up {
  background: rgba(16, 185, 129, 0.2);
  color: var(--green);
}

.price-change.down {
  background: rgba(239, 68, 68, 0.2);
  color: var(--red);
}

.price-change.neutral {
  background: rgba(107, 114, 128, 0.2);
  color: var(--muted);
}

/* Trending Section */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.trending-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card);
  padding: 25px;
  border-radius: 16px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.trending-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 61, 184, 0.1), transparent);
  transition: left 0.5s;
}

.trending-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(255, 61, 184, 0.2);
}

.trending-card:hover::before {
  left: 100%;
}

.trending-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
}

.trending-content h4 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--text);
}

.trending-content p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.trending-mentions {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

/* Newsletter Section */
.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 15px;
  margin: 30px 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form input {
  flex: 1;
  padding: 15px 20px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--card);
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

.newsletter-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 208, 255, 0.1);
}

.btn-newsletter {
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(46, 208, 255, 0.3);
}

.btn-newsletter:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 208, 255, 0.4);
}

.newsletter-features {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.feature-icon {
  font-size: 18px;
}

/* Ad Banner */
.ad-banner {
  background: linear-gradient(135deg, #1e40af, #7c3aed);
  padding: 40px 20px;
  margin: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ad-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ad-content {
  position: relative;
  z-index: 1;
}

.ad-content h3 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
}

.ad-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.ad-btn {
  background: white;
  color: #1e40af;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ad-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: rgba(13, 13, 18, 0.95);
    padding: 20px 0;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 15px;
    border-bottom: 1px solid #555;
  }

  .btn-outline {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-2 {
    display: none;
  }

  .news-hero {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
  }

  .hero-title {
    font-size: 32px;
  }

  .title {
    font-size: clamp(30px, 8vw, 56px);
    white-space: normal;
  }

  .market-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-card.featured {
    grid-template-columns: 1fr;
  }

  .category-tabs {
    gap: 8px;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .news-item {
    grid-template-columns: 60px 1fr;
    gap: 15px;
  }

  .news-price {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 10px;
  }

  .trending-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-features {
    flex-direction: column;
    gap: 15px;
  }

  .wrap {
    padding: 24px 16px 48px;
  }

  .accent-bottom {
    width: 90vw;
  }
}

@media (max-width: 480px) {
  .market-stats {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    flex-direction: column;
    gap: 10px;
  }

  .price-ticker {
    margin-top: 30px;
  }
}