/* ===========================
   XE GHEP 36 — UI THEME (FONTS + UI)
   =========================== */

/* Fonts (Google) — tối ưu tiếng Việt, hiển thị mượt */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300..900&family=Be+Vietnam+Pro:wght@400;600;800&display=swap');

:root{
  --brand-900:#1C7F49;
  --brand-700:#23985C;
  --brand-600:#2BB76B;
  --brand-500:#33C37C;
  --brand-50:#E9FAF2;

  --ink:#0F172A;     /* text */
  --muted:#6B7280;   /* subtext */
  --line:#E5E7EB;    /* border */
  --paper:#FFFFFF;   /* cards */

  --chip-bg:#F3F4F6;
  --chip-bg-d:#194E36;
  --chip-hover:rgba(255,255,255,.22);

  --shadow:0 10px 30px rgba(0,0,0,.06);
  --radius:14px;
  --container:1200px;

  /* Typography scale */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-heading: "Be Vietnam Pro", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans";
}

*{box-sizing:border-box}
html,body{
  margin:0;padding:0;background:#FAFAFA;color:var(--ink);
  font-family:var(--font-body); font-weight:400; line-height:1.55;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}
img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:inherit}
.container{max-width:var(--container);margin:0 auto;padding:0 clamp(14px,3vw,20px)}

/* ===== HEADER ===== */
.site-header{
  background:linear-gradient(90deg,var(--brand-900),var(--brand-500));
  color:#fff; position:sticky; top:0; z-index:1000; box-shadow:0 2px 6px rgba(0,0,0,.12)
}
.header-inner{min-height:68px; display:flex; align-items:center; justify-content:space-between; gap:12px}
.brand{display:flex; align-items:center; gap:10px}
.brand-img{height:44px; width:auto}

/* Hamburger (mobile) */
.hamburger{display:none; width:40px; height:40px; border:1px solid rgba(255,255,255,.28); border-radius:12px; background:transparent; cursor:pointer; align-items:center; justify-content:center}
.hamburger span{display:block;width:22px;height:2px;background:#fff;margin:3px 0;border-radius:2px;transition:.25s}
.hamburger.is-open span:nth-child(1){transform:translateY(5px) rotate(45deg)}
.hamburger.is-open span:nth-child(2){opacity:0}
.hamburger.is-open span:nth-child(3){transform:translateY(-5px) rotate(-45deg)}

/* Nav */
.nav{display:flex}
.nav-list{display:flex;align-items:center;gap:10px;margin:0;padding:0;list-style:none}
.nav-user{color:#E7F8EF;font-size:14px;padding:8px 10px}
.nav-chip{
  display:inline-block; padding:8px 14px; border-radius:10px;
  background:var(--chip-bg-d); color:#fff; transition:background .2s ease, transform .02s
}
.nav-chip:hover{background:var(--chip-hover)}
.nav-chip:active{transform:translateY(1px)}
.chip-primary{background:#fff; color:var(--brand-900); font-weight:700}
.chip-outline{background:transparent; border:1px solid rgba(255,255,255,.6)}

/* ===== FOOTER ===== */
.site-footer{background:#0F172A;color:#C7D2FE;padding:28px 0;margin-top:44px}
.footer-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px}
.footer-brand{display:flex;flex-direction:column;gap:8px}
.footer-brand .brand-img{height:40px}
.footer-nav{display:flex;gap:10px;flex-wrap:wrap}
.footer-nav .nav-chip{background:#1E293B;color:#E2E8F0}
.footer-nav .nav-chip:hover{background:#273447}

/* ===== HERO / HEADINGS ===== */
.hero{
  background:linear-gradient(180deg,var(--brand-50),#F7FFF8);
  padding:56px 0 64px;
}
.hero-title{
  margin:0 0 8px; text-align:center;
  font-family:var(--font-heading); font-size:clamp(26px,4vw,34px); font-weight:800; letter-spacing:.2px;
}
.hero-subtitle{
  margin:0 auto 16px; max-width:720px; text-align:center; color:#3F3F46; font-size:clamp(14px,2vw,16px)
}

/* ===== FORMS ===== */
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:12px;color:var(--muted)}
.field input,.field select{
  height:44px;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:#fff;outline:none
}
.field input:focus,.field select:focus{border-color:#9BE0BE;box-shadow:0 0 0 4px rgba(51,195,124,.15)}

.options{display:flex;gap:14px;align-items:center}
.options .radio{display:flex;gap:8px;align-items:center;font-size:14px}

/* Search/Create box */
.search-box{
  display:grid;grid-template-columns:1fr 1fr auto auto;gap:12px;
  background:#fff;padding:16px;border-radius:16px;box-shadow:var(--shadow);align-items:end
}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:10px 16px;border-radius:999px;border:1px solid transparent;background:#fff;color:var(--brand-900);
  font-weight:700; box-shadow:var(--shadow); cursor:pointer; transition:filter .15s ease, transform .02s
}
.btn.primary{background:#FFD748;color:#0F172A}
.btn.small{padding:8px 12px;font-weight:600}
.btn:active{transform:translateY(1px)}

/* Alerts */
.alert{
  background:#fff;border:1px solid var(--line);border-left:4px solid var(--brand-600);
  border-radius:12px;padding:12px 14px;margin:16px 0;box-shadow:var(--shadow)
}
.alert.error{border-left-color:#EF4444}

/* Tables */
.table{width:100%;border-collapse:collapse;background:#fff;border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}
.table th,.table td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;font-size:14px}
.table thead th{background:#F2FBF7;font-weight:800}
.table tr:last-child td{border-bottom:none}
.table .num{text-align:right}

/* Cards */
.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;box-shadow:var(--shadow)}
.page-section{padding:28px 0}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:6px 0 14px}
.section-title{
  margin:0; font-family:var(--font-heading); font-size:clamp(18px,2.4vw,22px); font-weight:800;
}

/* ===== RIDE GRID (home - latest published) ===== */
.ride-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:16px;
}
.ride-card{
  background:#fff; border:1px solid var(--line); border-radius:16px; overflow:hidden; box-shadow:var(--shadow);
  display:flex; gap:0;
}
.ride-media{
  width:108px; flex:0 0 108px; background:#F5FFF9; display:flex; align-items:center; justify-content:center;
}
.ride-media img{
  width:88px; height:88px; object-fit:cover; border-radius:12px; border:1px solid #e6f4eb;
}
.ride-body{padding:12px; display:flex; flex-direction:column; gap:8px}
.ride-top{display:flex; align-items:center; justify-content:space-between; gap:8px}
.ride-title{
  margin:0; font-family:var(--font-heading); font-size:16px; font-weight:800; letter-spacing:.2px;
}
.ride-driver{font-size:13px; color:var(--muted)}
.ride-meta{display:flex; flex-wrap:wrap; gap:10px; color:#374151; font-size:13px}
.ride-actions{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:4px}
.ride-phone a{color:#0F172A; font-weight:700}
.soldout{color:#9CA3AF; font-weight:700}

/* Badges (status) */
.badge{display:inline-block; padding:4px 8px; border-radius:999px; font-size:12px; font-weight:700}
.badge-scheduled{ background:#DCFCE7; color:#065F46 }
.badge-expired{   background:#FEE2E2; color:#991B1B }
.badge-completed{ background:#E0E7FF; color:#1E3A8A }
.badge-canceled{  background:#F3F4F6; color:#374151 }
.badge-departed{  background:#FEF3C7; color:#92400E }

/* Avatar lớn (Profile) */
.avatar-lg{width:96px;height:96px;object-fit:cover;border-radius:50%;border:3px solid #e8f7ef;box-shadow:var(--shadow)}
.profile-top{display:flex;align-items:center;gap:14px;margin-bottom:12px}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px){
  .ride-grid{grid-template-columns:repeat(3, minmax(0,1fr))}
}
@media (max-width: 900px){
  .hamburger{display:flex}
  .nav{position:fixed;top:68px;left:0;right:0;display:none}
  .nav.is-open{display:block}
  .nav-list{flex-direction:column;align-items:flex-start;background:var(--brand-900);padding:16px 20px;border-bottom-left-radius:16px;border-bottom-right-radius:16px;box-shadow:0 10px 24px rgba(0,0,0,.18)}
  .nav-chip{width:100%;background:var(--chip-bg-d)}
  .nav-user{padding:6px 4px}
  .hero{padding:44px 0 54px}
  .hero-title{font-size:clamp(22px,5vw,28px)}
  .search-box{grid-template-columns:1fr}
  .ride-grid{grid-template-columns:repeat(2, minmax(0,1fr))}
}
@media (max-width: 480px){
  .ride-grid{grid-template-columns:1fr}
}
