/* ========================================
   FRONT PAGE STYLES
   ======================================== */

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a5078 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-section h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* Entry Cards Section */
.entry-cards-section {
  padding: 4rem 0;
  background: white;
}

.entry-cards-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.entry-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.entry-card {
  padding: 2rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.entry-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 24px rgba(26, 58, 82, 0.15);
  transform: translateY(-5px);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.entry-card h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.entry-card p {
  margin-bottom: 1.5rem;
  color: var(--text-gray);
  flex-grow: 1;
}

.card-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-link:hover {
  color: var(--accent-color);
}

/* Learning Roadmap */
.learning-roadmap-section {
  padding: 4rem 0;
  background: var(--bg-light);
}

.learning-roadmap-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.section-intro {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.roadmap-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.roadmap-step {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 250px;
  border-left: 4px solid var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.roadmap-step h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.roadmap-step p {
  margin-bottom: 0;
  color: var(--text-gray);
  font-size: 0.95rem;
}

.roadmap-arrow {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: bold;
  display: none;
}

/* Latest Articles */
.latest-articles-section {
  padding: 4rem 0;
  background: white;
}

.latest-articles-section h2 {
  margin-bottom: 3rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.article-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.article-thumbnail {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-light);
}

.article-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-thumbnail img {
  transform: scale(1.05);
}

.article-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 0.75rem;
}

.article-excerpt {
  color: var(--text-gray);
  margin-bottom: 1rem;
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: var(--accent-color);
}

.view-all-link {
  text-align: center;
}

/* Popular Topics */
.popular-topics-section {
  padding: 4rem 0;
  background: var(--bg-light);
}

.popular-topics-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

.topic-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.topic-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(26, 58, 82, 0.15);
}

.topic-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.topic-count {
  color: var(--text-gray);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Disclaimer Section */
.footer-disclaimer-section {
  padding: 3rem 0;
  background: white;
  border-top: 2px solid var(--border-color);
}

/* Top Cryptocurrencies Charts Section */
.top-crypto-charts-section {
  padding: 4rem 0;
  background: white;
}

.top-crypto-charts-section h2 {
  margin-bottom: 0.5rem;
}

.top-crypto-charts-section .section-intro {
  margin-bottom: 2rem;
}

/* Chart Controls */
.chart-controls-wrapper {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.chart-selector,
.chart-interval {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 200px;
}

.chart-selector label,
.chart-interval label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.chart-selector select,
.chart-interval select {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.chart-selector select:focus,
.chart-interval select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.1);
}

/* Chart Container */
.frontpage-chart-container {
  width: 100%;
  height: 600px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
  background: white;
}

#frontpage-tradingview-chart {
  width: 100%;
  height: 100%;
}

.crypto-charts-note {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 8px;
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.crypto-charts-note p {
  margin: 0;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 0;
  background: var(--bg-light);
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.faq-item {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(26, 58, 82, 0.15);
  transform: translateY(-2px);
}

.faq-item h3 {
  margin-top: 0;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .roadmap-steps {
    flex-direction: column;
  }

  .roadmap-arrow {
    display: block;
    transform: rotate(90deg);
    margin: -1rem 0;
  }

  .roadmap-step {
    width: 100%;
    max-width: 100%;
  }

  .entry-cards {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .topics-grid {
    grid-template-columns: 1fr;
  }

  .crypto-charts-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .chart-controls-wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  .chart-selector,
  .chart-interval {
    min-width: 100%;
  }

  .frontpage-chart-container {
    height: 450px;
    margin-bottom: 1.5rem;
  }

  .crypto-charts-note {
    padding: 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .crypto-chart-item h4 {
    font-size: 0.9rem;
    padding: 0.75rem;
  }

  .tradingview-widget-container {
    padding: 0.5rem;
  }

  .crypto-charts-note {
    padding: 1rem;
    font-size: 0.8rem;
  }
}
