/* ============================
   UZHAVAN E-TRADE CENTRE
   Global Styles
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
  --dark-green: #1a3a2a;
  --mid-green: #2d5a3d;
  --accent-green: #3d7a52;
  --light-green: #6aab80;
  --pale-green: #d4eadb;
  --bg-cream: #f5f4ee;
  --bg-white: #ffffff;
  --gold: #e8b84b;
  --gold-light: #f5d48a;
  --text-dark: #1a2420;
  --text-mid: #374a3f;
  --text-muted: #7a9186;
  --border: #e2e8e4;
  --red: #e84b4b;
  --orange: #e87a4b;
  --shadow-sm: 0 1px 3px rgba(26,58,42,0.08);
  --shadow-md: 0 4px 16px rgba(26,58,42,0.12);
  --shadow-lg: 0 8px 32px rgba(26,58,42,0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5 { font-family: 'Outfit', sans-serif; line-height: 1.2; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; }

/* ============================
   NAVBAR
   ============================ */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(245,244,238,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800; font-size: 18px;
  color: var(--dark-green);
  letter-spacing: -0.3px;
}

.nav-logo span { color: var(--accent-green); }

.nav-links {
  display: flex; align-items: center; gap: 8px;
  list-style: none;
}

.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--text-mid);
  padding: 6px 14px; border-radius: 8px;
  transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--dark-green);
  background: var(--pale-green);
}

.nav-links a.active { font-weight: 600; }

.nav-actions {
  display: flex; align-items: center; gap: 12px;
}

.nav-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 8px 16px;
  font-size: 13px; color: var(--text-muted);
  width: 200px; transition: all 0.2s;
}

.nav-search:hover { border-color: var(--accent-green); width: 240px; }
.nav-search input { border: none; outline: none; background: none; font-size: 13px; color: var(--text-dark); width: 100%; }
.nav-search svg { flex-shrink: 0; color: var(--text-muted); }

.nav-icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; color: var(--text-mid);
}

.nav-icon-btn:hover { background: var(--pale-green); border-color: var(--accent-green); color: var(--dark-green); }

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

.btn-primary {
  background: var(--dark-green); color: #fff;
}

.btn-primary:hover { background: var(--mid-green); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-gold {
  background: var(--gold); color: var(--dark-green);
}

.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,184,75,0.4); }

.btn-outline {
  background: transparent; color: var(--dark-green);
  border: 1.5px solid var(--dark-green);
}

.btn-outline:hover { background: var(--dark-green); color: #fff; }

.btn-ghost {
  background: rgba(255,255,255,0.15); color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-ghost:hover { background: rgba(255,255,255,0.25); }

.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ============================
   CARDS
   ============================ */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-dark {
  background: var(--dark-green);
  color: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ============================
   BADGES
   ============================ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
}

.badge-green { background: var(--pale-green); color: var(--mid-green); }
.badge-gold { background: #fef3d5; color: #b38a1a; }
.badge-orange { background: #fce8db; color: #c45e1a; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-live { background: #dcfce7; color: #15803d; }

/* ============================
   STATS TICKER
   ============================ */
.rate-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.rate-dot {
  width: 8px; height: 8px; border-radius: 50%;
  margin-right: 10px; flex-shrink: 0;
}

.rate-name { font-size: 14px; font-weight: 500; }
.rate-price { font-size: 15px; font-weight: 700; font-family: 'Outfit', sans-serif; }

.rate-change {
  font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: 20px;
}

.rate-up { color: #16a34a; background: #dcfce7; }
.rate-down { color: #dc2626; background: #fee2e2; }
.rate-stable { color: #7a9186; background: #f1f5f2; }

/* ============================
   SECTION STYLES
   ============================ */
.section { padding: 64px 32px; }
.section-sm { padding: 40px 32px; }
.container { max-width: 1140px; margin: 0 auto; }

.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; color: var(--dark-green);
  line-height: 1.15;
}

/* ============================
   GRID HELPERS
   ============================ */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--dark-green);
  color: rgba(255,255,255,0.7);
  padding: 56px 32px 32px;
}

.footer-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1.5fr 1.5fr 2fr; gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800; font-size: 18px;
  color: #fff; letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 13px; line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}

.footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 13px; color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: #fff; }

.footer-newsletter { display: flex; gap: 8px; }
.footer-newsletter input {
  flex: 1; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; padding: 10px 14px;
  color: #fff; font-size: 13px; outline: none;
}

.footer-newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter input:focus { border-color: var(--gold); }

.footer-bottom {
  max-width: 1140px; margin: 28px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.35);
}

.footer-social {
  display: flex; gap: 10px;
}

.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}

.footer-social a:hover { background: var(--accent-green); color: #fff; }

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.animate-fade-up { animation: fadeUp 0.6s ease both; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* ============================
   FORM ELEMENTS
   ============================ */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 7px;
}

.form-input, .form-select {
  width: 100%;
  background: var(--bg-cream);
  border: 1.5px solid var(--border);
  border-radius: 10px; padding: 12px 16px;
  font-size: 14px; color: var(--text-dark);
  font-family: inherit; outline: none;
  transition: all 0.2s;
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent-green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(61,122,82,0.1);
}

.form-input::placeholder { color: var(--text-muted); }

/* ============================
   LIVE INDICATOR
   ============================ */
.live-dot {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: #16a34a;
  animation: blink 1.5s ease infinite;
}

/* ============================
   PROGRESS BAR
   ============================ */
.progress-bar {
  height: 6px; border-radius: 3px;
  background: var(--border); overflow: hidden;
}

.progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-green), var(--light-green));
  transition: width 1s ease;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .nav-search { display: none; }
  .section { padding: 40px 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
