/* DXAS Trading - Main Styles */

:root {
  /* DXAS Brand Colors */
  --color-dxas-cream: #f5f1e8;
  --color-dxas-green: #1e4d2b;
  --color-dxas-gold: #c9a961;
  --color-dxas-dark: #2d3436;
  --color-dxas-gray: #636e72;

  --primary: var(--color-dxas-green);
  --primary-foreground: #ffffff;
  --secondary: var(--color-dxas-gold);
  --secondary-foreground: #ffffff;
  --background: var(--color-dxas-cream);
  --foreground: var(--color-dxas-dark);
  --muted: #e0ddd3;
  --muted-foreground: var(--color-dxas-gray);
  --border: #e0ddd3;
  
  --radius: 0.5rem;
}

/* Base Styles */
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1280px;
  }
}

/* Utility Classes (Mimicking Tailwind) */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.p-4 { padding: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.text-white { color: #ffffff; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.hidden { display: none; }
.block { display: block; }

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  border: 1px solid var(--border);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--muted);
}

/* Navigation */
header {
  background-color: rgba(245, 241, 232, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2rem;
}

nav a {
  font-weight: 500;
  color: var(--color-dxas-dark);
  transition: color 0.2s;
}

nav a:hover, nav a.active {
  color: var(--color-dxas-green);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--background);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }

  nav ul.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }
}

/* Footer */
footer {
  background-color: var(--color-dxas-green);
  color: #ffffff;
  padding: 4rem 0 2rem;
}

footer a {
  color: #e0ddd3;
}

footer a:hover {
  color: #ffffff;
}

/* Slider/Carousel */
.slider-container {
  overflow: hidden;
  position: relative;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .slide {
    min-width: 33.333%;
  }
}

/* Language Switcher */
.lang-btn {
  background: none;
  border: 1px solid var(--color-dxas-green);
  color: var(--color-dxas-green);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  cursor: pointer;
}

.lang-btn:hover {
  background-color: var(--color-dxas-green);
  color: #ffffff;
}
