/* CSS Variables */
:root {
  --primary-color: #1c3fba;
  --accent-color: #ff4c4c;
  --dark-bg: #333;
  --header-bg: #292834;
  --light-bg: #f8f9fa;
  --white: #fff;
  --text-dark: #333;
  --text-muted: #6c757d;
  --border-light: #e5e5e5;
  --shadow-light: 0 1rem 2rem rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 1.5rem 3rem rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --transition: all 0.3s ease;
}

/* Base 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);
}

/* Typography */
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.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

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

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

/* Header */
.navbar {
  background-color: var(--header-bg) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

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

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  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 {
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--white);
  position: relative;
}

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

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

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: #0f7a68;
  border-color: #0f7a68;
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

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

.btn-accent {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--white);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

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

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

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

.card-body {
  padding: 2rem;
}

.market-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.market-card:hover {
  box-shadow: var(--shadow-hover);
}

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

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

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

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

.market-index-details h6 {
  margin: 0;
  font-weight: 600;
}

.market-index-details small {
  color: var(--text-muted);
}

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

.market-index-price {
  font-weight: 600;
  margin: 0;
}

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

.positive { color: #28a745; }
.negative { color: #dc3545; }

/* Sections */
.section {
  padding: 5rem 0;
}

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

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

/* News Cards */
.news-card {
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

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

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

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

/* Tips Section */
.tip-item {
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.tip-item:hover {
  box-shadow: var(--shadow-hover);
}

/* Chart Section */
.chart-container {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-light);
}

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

/* Community Articles */
.community-article {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  margin-bottom: 1.5rem;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

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

.community-article img {
  width: 200px;
  height: 190px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-right: 1.5rem;
}

.community-article-content h5 {
  margin-bottom: 0.5rem;
}

.community-article-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* 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: #ccc;
  text-decoration: none;
  transition: var(--transition);
}

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

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

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-hover);
  padding: 1.5rem;
  z-index: 9999;
  display: none;
}

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

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1000;
}

.scroll-top:hover {
  background-color: #0f7a68;
  transform: translateY(-3px);
}

.scroll-top.show {
  display: flex;
}

/* Form Styles */
.form-control {
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 12px 15px;
  transition: var(--transition);
}

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

.form-error {
  border-color: var(--accent-color) !important;
}

.error-message {
  color: var(--accent-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Contact Section */
.contact-info {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
}

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

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

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

/* Map Container */
.map-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .community-article {
    flex-direction: column;
    text-align: center;
  }
  
  .community-article img {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .cookie-popup {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.bg-light-custom { background-color: var(--light-bg) !important; }

.mb-6 { margin-bottom: 4rem !important; }
.py-6 { padding-top: 4rem !important; padding-bottom: 4rem !important; }

.rounded-lg { border-radius: var(--border-radius-lg) !important; }
.shadow-custom { box-shadow: var(--shadow-light) !important; }
