/* ===== CSS VARIABLES ===== */
:root {
  --primary-color: #ff4c4c;
  --secondary-color: #128C76;
  --dark-bg: #333;
  --header-bg: #383838;
  --light-bg: #F8F9FA;
  --white: #fff;
  --text-dark: #333;
  --text-muted: #6c757d;
  --border-color: #E5E5E5;
  --shadow-light: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-medium: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-card: 0 1rem 2rem rgba(0, 0, 0, 0.05);
  --border-radius: 8px;
  --border-radius-sm: 6px;
  --transition: all 0.3s ease;
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: Arial, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.75;
}

/* ===== UTILITY CLASSES ===== */
.section-padding {
  padding: 5rem 0;
}

.section-padding-sm {
  padding: 3rem 0;
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-light-gray {
  background-color: var(--light-bg);
}

.bg-dark {
  background-color: var(--dark-bg);
  color: var(--white);
}

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: block;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
  margin-right: 10px;
  vertical-align: middle;
}

/* ===== HEADER ===== */
.navbar {
  background-color: var(--header-bg) !important;
  box-shadow: var(--shadow-light);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./img/hero-bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  text-align: center;
  margin-top: 76px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ===== BUTTONS ===== */
.btn-primary-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}

.btn-primary-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  border: 2px solid var(--primary-color);
  color: var(--white);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
  text-decoration: none;
}

/* ===== CARDS ===== */
.card-custom {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
}

.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.card-dark {
  background: var(--dark-bg);
  color: var(--white);
}

/* ===== MARKET CARDS ===== */
.market-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.market-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.market-item:last-child {
  border-bottom: none;
}

.market-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  margin-right: 1rem;
}

.market-info h6 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.market-info small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.market-values {
  text-align: right;
}

.market-price {
  font-weight: 600;
  font-size: 0.9rem;
}

.market-change {
  font-size: 0.8rem;
  font-weight: 500;
}

.market-change.positive {
  color: #28a745;
}

.market-change.negative {
  color: #dc3545;
}

/* ===== NEWS CARDS ===== */
.news-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  overflow: hidden;
  height: 100%;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  text-decoration: none;
  color: inherit;
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card-body {
  padding: 1.5rem;
}

.news-date {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.news-card h5 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.news-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* ===== CRYPTO CARDS ===== */
.crypto-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  text-align: center;
  height: 100%;
}

.crypto-card h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.crypto-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.crypto-stat {
  text-align: center;
}

.crypto-stat .value {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.crypto-stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== COMMUNITY CARDS ===== */
.community-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  overflow: hidden;
  height: 100%;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.community-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  text-decoration: none;
  color: inherit;
}

.community-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.community-card-body {
  padding: 1.5rem;
}

.community-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.community-card h6 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
}

.form-control {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem;
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 76, 76, 0.25);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

/* ===== CONTACT INFO ===== */
.contact-info {
  background: var(--light-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-right: 1rem;
  width: 20px;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.footer a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 1rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--text-muted);
}

/* ===== SCROLL TO TOP ===== */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius-sm);
  width: 50px;
  height: 50px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1000;
}

.scroll-to-top:hover {
  background-color: var(--secondary-color);
}

/* ===== COOKIE POPUP ===== */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 3px solid var(--primary-color);
  box-shadow: var(--shadow-medium);
  padding: 1.5rem;
  z-index: 1040;
  display: none;
}

.cookie-popup.show {
  display: block;
}

.cookie-popup p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.cookie-popup .btn {
  margin-right: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .card-custom {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .market-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  .market-values {
    text-align: left;
    margin-top: 0.5rem;
  }
  
  .crypto-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .community-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .btn-primary-outline,
  .btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .card-custom {
    padding: 1rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 1.5rem;
  }
}

/* ===== SECONDARY PAGES HERO ===== */
.secondary-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('./img/secondary-hero-bg.webp');
  background-size: cover;
  background-position: center;
  padding: 8rem 0 4rem;
  color: var(--white);
  text-align: center;
  margin-top: 76px;
}

.secondary-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.secondary-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== CHART PLACEHOLDER ===== */
.chart-placeholder {
  background: var(--light-bg);
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.chart-placeholder i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.chart-placeholder p {
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}
