/* ==========================================================================
   VUAVIECLAM.COM - DESIGN SYSTEM 2.0 (MODERN WEB APP & MOBILE-FIRST)
   Bảo toàn 100% Logo nhận diện & Hệ màu Đỏ (#E31B23) - Vàng Vương Miện (#FFB800)
   ========================================================================== */

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

:root {
  --brand-red: #E31B23;
  --brand-red-dark: #B80D14;
  --brand-red-light: #FFF1F2;
  --brand-gold: #FFB800;
  --brand-gold-dark: #D99B00;
  --brand-gold-light: #FEF9C3;
  --color-slate-900: #0F172A;
  --color-slate-800: #1E293B;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748B;
  --color-slate-400: #94A3B8;
  --color-slate-200: #E2E8F0;
  --color-slate-100: #F1F5F9;
  --color-slate-50: #F8FAFC;
  --color-emerald-600: #10B981;
  --color-emerald-50: #ECFDF5;
  --shadow-soft: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-crown: 0 8px 24px -4px rgba(255, 184, 0, 0.35);
  --shadow-red: 0 6px 20px -2px rgba(227, 27, 35, 0.35);
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--color-slate-50);
  color: var(--color-slate-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ==========================================================================
   TOP BAR & HEADER
   ========================================================================== */
.top-ribbon {
  background-color: var(--color-slate-900);
  color: #ffffff;
  font-size: 11px;
  padding: 6px 0;
}
.top-ribbon .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-ribbon a {
  color: #cbd5e1;
}
.top-ribbon a:hover {
  color: #ffffff;
}

/* MAIN NAVBAR (DESKTOP) */
.main-nav-desktop {
  background: #ffffff;
  border-bottom: 1px solid var(--color-slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-card);
}
.main-nav-desktop .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo-wrap img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.desktop-menu-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-slate-700);
}
.desktop-menu-links a:hover,
.desktop-menu-links a.active {
  color: var(--brand-red);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-post-job {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-post-job:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* ==========================================================================
   MOBILE CURVED HEADER (MOBILE-FIRST)
   ========================================================================== */
.mobile-app-header {
  display: none;
  background: linear-gradient(180deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: #ffffff;
  padding: 14px 16px 20px 16px;
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
  box-shadow: 0 4px 16px rgba(184, 13, 20, 0.25);
  position: relative;
  z-index: 90;
}
.mobile-app-header .mobile-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.mobile-app-header .brand-logo-mobile {
  height: 32px;
  width: auto;
}

/* SMART FLOATING SEARCH */
.floating-search-bar {
  background: #ffffff;
  border-radius: 16px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  color: var(--color-slate-900);
}
.floating-search-bar input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--color-slate-900);
  outline: none;
}
.floating-search-bar input::placeholder {
  color: var(--color-slate-400);
  font-weight: 400;
}
.floating-search-bar button {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: #ffffff;
  border: none;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
}

/* ==========================================================================
   HERO BANNER (DESKTOP)
   ========================================================================== */
.hero-desktop {
  background: linear-gradient(180deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: #ffffff;
  padding: 48px 0 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-desktop h2 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.hero-desktop p {
  font-size: 15px;
  color: #ffe4e6;
  max-width: 650px;
  margin: 0 auto 28px auto;
}
.hero-search-box-desktop {
  background: #ffffff;
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
  display: flex;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
  align-items: center;
  color: var(--color-slate-900);
}
.hero-search-box-desktop .search-col {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-slate-50);
  padding: 10px 14px;
  border-radius: 12px;
  text-align: left;
}
.hero-search-box-desktop select,
.hero-search-box-desktop input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-slate-900);
  outline: none;
}

/* ==========================================================================
   BENTO CATEGORIES & QUICK ACTIONS
   ========================================================================== */
.category-bento-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  background: #ffffff;
  padding: 16px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  margin-top: -24px;
  position: relative;
  z-index: 20;
  border: 1px solid var(--color-slate-200);
}
.bento-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  border-radius: 14px;
  text-align: center;
  transition: all 0.2s ease;
}
.bento-cat-item:hover {
  background: var(--brand-red-light);
}
.bento-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--color-slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 6px;
}
.bento-cat-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-slate-800);
}

/* ==========================================================================
   JOB CARDS 3.0 (CROWN VIP & STANDARD)
   ========================================================================== */
.job-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.job-card-modern {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--color-slate-200);
  box-shadow: var(--shadow-soft);
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.job-card-modern:hover {
  border-color: var(--brand-red);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.1);
}

/* VIP Crown Variant */
.job-card-modern.vip-diamond {
  background: linear-gradient(135deg, #FFFDF5 0%, #FFFFFF 100%);
  border: 2px solid var(--brand-gold);
  box-shadow: var(--shadow-crown);
}
.vip-ribbon-tag {
  position: absolute;
  top: -10px;
  right: 14px;
  background: linear-gradient(90deg, #F59E0B 0%, var(--brand-gold) 100%);
  color: #78350F;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.job-logo-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: var(--brand-red);
  flex-shrink: 0;
  border: 1px solid var(--color-slate-200);
}

.job-title-text {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-slate-900);
  line-height: 1.3;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.job-company-text {
  font-size: 11px;
  color: var(--color-slate-500);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-salary-badge {
  font-size: 13px;
  font-weight: 900;
  color: var(--brand-red);
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION (5 TABS)
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-slate-200);
  padding: 8px 16px;
  z-index: 999;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}
.nav-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 600;
  color: var(--color-slate-500);
}
.nav-tab-item.active {
  color: var(--brand-red);
  font-weight: 800;
}
.nav-center-crown-btn {
  margin-top: -24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nav-center-crown-circle {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-red);
  border: 3px solid #ffffff;
}

/* ==========================================================================
   MEGA FOOTER (DESKTOP)
   ========================================================================== */
.mega-footer {
  background: var(--color-slate-900);
  color: #ffffff;
  padding: 56px 0 32px 0;
  margin-top: 60px;
  font-size: 12px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: #94a3b8;
}
.footer-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .job-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-bento-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 72px; /* Space for Mobile Bottom Nav */
  }
  .top-ribbon,
  .main-nav-desktop,
  .hero-desktop {
    display: none;
  }
  .mobile-app-header {
    display: block;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .job-cards-grid {
    grid-template-columns: 1fr;
  }
  .category-bento-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 12px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

