/* CSS Variables */
:root {
  --primary-color: #128C76;
  --primary-dark: #0f7a68;
  --bg-white: #fff;
  --bg-light: #F8F9FA;
  --bg-dark: #333;
  --header-bg: #283428;
  --footer-bg: #333;
  --text-dark: #333;
  --text-light: #666;
  --text-muted: #999;
  --border-color: #E5E5E5;
  --shadow-light: 0 0.5rem 1rem rgba(0,0,0,.05);
  --shadow-medium: 0 1rem 2rem rgba(0,0,0,.1);
  --border-radius: 8px;
  --border-radius-sm: 6px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.75;
  color: var(--text-dark);
  background-color: var(--bg-white);
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Roboto", serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

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

/* Section Labels */
.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;
}

.navbar-brand {
  font-family: "Roboto", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-white) !important;
}

.navbar-nav .nav-link {
  color: var(--bg-white) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.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.8), rgba(0,0,0,0.8)), url('./img/hero-bg.webp');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
}

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

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

/* Buttons */
.btn-primary {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Cards */
.card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  overflow: hidden;
}

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

.card-body {
  padding: 1.5rem;
}

/* Market Cards */
.market-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

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

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

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

.index-info {
  display: flex;
  align-items: center;
}

.index-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.2rem;
  color: white;
}

.index-icon.bg-blue { background-color: #4285f4; }
.index-icon.bg-green { background-color: var(--primary-color); }
.index-icon.bg-orange { background-color: #ff9800; }
.index-icon.bg-red { background-color: #f44336; }
.index-icon.bg-purple { background-color: #9c27b0; }

.index-details h6 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

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

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

.index-price {
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

.index-change {
  font-size: 0.875rem;
  font-weight: 500;
}

.text-success { color: #28a745 !important; }
.text-danger { color: #dc3545 !important; }

/* Charts */
.chart-container {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
  margin-bottom: 2rem;
}

.chart-container img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-sm);
}

/* News Cards */
.news-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  height: 100%;
}

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

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

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

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

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

.tip-item {
  text-align: center;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.tip-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

/* Community Section */
.community-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

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

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

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

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

.footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  padding: 1.5rem;
  z-index: 9999;
  max-width: 400px;
  margin: 0 auto;
}

.cookie-popup.hidden {
  display: none;
}

/* Scroll to Top */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Form Styles */
.form-control {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease;
}

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

.form-control.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  display: block;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .cookie-popup {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* Background Sections */
.bg-light-section {
  background-color: var(--bg-light);
}

.bg-dark-section {
  background-color: #283428;
  color: white;
}

.bg-dark-section h2,
.bg-dark-section h3 {
  color: white;
}

.bg-dark-section .section-label {
  color: var(--primary-color);
}

/* Page Headers */
.page-header {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.6)), url('./img/page-bg.webp');
  background-size: cover;
  background-position: center;
  padding: 10rem 0 6rem;
  color: white;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* Contact Page Styles */
.contact-info {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-light);
  height: 100%;
}

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

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: white;
  font-size: 1.2rem;
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* Thank You Page */
.thank-you-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--shadow-medium);
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: white;
  font-size: 2rem;
}
