/*
  HaungChao Global Design System
  ================================
  Fonts:    Bebas Neue (display) + DM Sans (body)
  Palette:  Orange/blue logo + earthy backgrounds
  Version:  2.0
*/

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600&family=Sarabun:wght@300;400;500&display=swap');

:root {
  /* ── Brand colours from logo ── */
  --orange:        #E8850A;
  --orange-dark:   #C46F08;
  --orange-light:  #F5A03A;
  --blue:          #2B6CB0;
  --blue-dark:     #1E4F8C;
  --blue-light:    #4A90D9;

  /* ── Earthy backgrounds (kept from v1) ── */
  --cream:         #F5F0E8;
  --warm-white:    #FDFAF5;
  --sand:          #E8DCC8;
  --tag-bg:        #EDE5D8;
  --border:        #D9CFBC;

  /* ── Text ── */
  --ink:           #1A1A2E;
  --muted:         #7A7060;

  /* ── Accents ── */
  --forest:        #2D6A4F;
  --forest-light:  #40916C;
  --shadow:        rgba(26,26,46,0.10);

  /* ── Typography ── */
  --font-display:  'Bebas Neue', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --font-thai:     'Sarabun', sans-serif;
}

/* ── Reset & base ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.hc-nav {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.hc-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.hc-logo img {
  height: 40px;
  width: auto;
}

/* Text logo fallback (shown when no image) */
.hc-logo-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.hc-logo-en {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1px;
  color: var(--orange);
  line-height: 1;
}

.hc-logo-th {
  font-family: var(--font-thai);
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
}

.hc-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hc-nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.hc-nav-link:hover { color: var(--ink); }

.hc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.hc-btn-primary {
  background: var(--orange);
  color: white;
}
.hc-btn-primary:hover { background: var(--orange-dark); }

.hc-btn-secondary {
  background: var(--blue);
  color: white;
}
.hc-btn-secondary:hover { background: var(--blue-dark); }

.hc-btn-ghost {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--muted);
}
.hc-btn-ghost:hover { border-color: var(--orange); color: var(--ink); }

/* ── TYPOGRAPHY ── */
.hc-display {
  font-family: var(--font-display);
  letter-spacing: 1px;
  line-height: 1.1;
}

h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 600;
}

/* ── FORM ELEMENTS ── */
.hc-input {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.hc-input:focus { border-color: var(--orange); }
.hc-input::placeholder { color: var(--muted); }

/* ── TAGS & BADGES ── */
.hc-tag {
  font-size: 11px;
  padding: 3px 9px;
  background: var(--tag-bg);
  border-radius: 4px;
  color: #6B4C2A;
  font-weight: 400;
}

.hc-badge-promoted {
  background: var(--orange);
  color: white;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 600;
}

.hc-badge-active   { background: #D1FAE5; color: #065F46; }
.hc-badge-pending  { background: #FEF3C7; color: #92400E; }
.hc-badge-unclaimed { background: #FEF3C7; color: #92400E; }

/* ── CARDS ── */
.hc-card {
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.hc-card:hover {
  box-shadow: 0 4px 20px var(--shadow);
  border-color: var(--orange);
}
.hc-card.promoted { border-color: var(--orange); }

/* ── PRICE ── */
.hc-price {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.5px;
  color: var(--orange);
}

/* ── SECTION TITLES ── */
.hc-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── FOOTER ── */
.hc-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 32px 24px;
}
.hc-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.hc-footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--orange);
}
.hc-footer-logo-th {
  font-family: var(--font-thai);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-left: 8px;
}
.hc-footer-links {
  display: flex;
  gap: 20px;
}
.hc-footer-link {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.hc-footer-link:hover { color: white; }
.hc-footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ── UTILITIES ── */
.hc-divider { border: none; border-top: 1px solid var(--border); }
.hc-muted { color: var(--muted); }
.hc-orange { color: var(--orange); }
.hc-blue { color: var(--blue); }

/* ── SKELETON LOADING ── */
.hc-skeleton {
  background: linear-gradient(90deg, var(--sand) 25%, var(--tag-bg) 50%, var(--sand) 75%);
  background-size: 200% 100%;
  animation: hc-shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes hc-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 768px) {
  .hc-nav { height: 56px; padding: 0 16px; }
  .hc-logo img { height: 34px; }
  .hc-footer-inner { flex-direction: column; text-align: center; }
  .hc-footer-links { flex-wrap: wrap; justify-content: center; }
}
