/* Main CSS for thongbaoso theme
   Cụ thoải mái tách ra base.css / layout.css / components.css... sau này.
*/

/* =========================
   1. Biến & reset
   ========================= */

:root {
  --bg1: #050816;
  --bg2: #050816;
  --accent: #0a84ff;
  --accent-soft: #32d74b;
  --text-main: #f5f5f7;
  --text-muted: #a1a1b3;
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.25);
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.6);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =========================
   2. Khung chung WP + body
   ========================= */

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", system-ui, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, #3b82f6 0, transparent 55%),
    radial-gradient(circle at bottom right, #f97316 0, transparent 55%),
    linear-gradient(160deg, var(--bg1), var(--bg2));
}

/* Container chung của WP (header/footer/content) */
.site-header,
.site-footer,
.site-content {
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Các block “kiểu cũ” dùng class tbs- vẫn giữ lại để tái dùng sau */
.tbs-hero {
  background: linear-gradient(135deg, #f0f4ff, #ffffff);
}

.tbs-card {
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.tbs-sidebar-box {
  border: 1px solid rgba(15, 23, 42, 0.06);
}

/* =========================
   3. Layout iOS glassmorphism
   ========================= */

.app {
  min-height: 100vh;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px;
}

/* HEADER */

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(5, 8, 22, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.logo-dot {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #fff, #0ea5e9);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.8);
}

.logo-text {
  letter-spacing: 0.02em;
}

.logo-badge {
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  color: #0f172a;
  background: #fbbf24;
}

.nav {
  display: flex;
  gap: 14px;
  font-size: 14px;
}

.nav-link {
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-muted);
  transition: 0.15s ease;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #0f172a;
  background: #fbbf24;
}

/* BUTTONS */

.btn {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #1d4ed8);
  color: white;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.8);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.btn-ghost:hover,
.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.8);
}

/* HERO */

.app-main {
  padding-bottom: 40px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 32px;
  margin-top: 16px;
}

.hero-text h1 {
  font-size: clamp(28px, 4vw, 34px);
  margin: 4px 0 12px;
}

.hero-text p {
  color: var(--text-muted);
  max-width: 480px;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

/* HERO WIDGET (glass card) */

.hero-widget {
  padding: 18px 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(26px);
}

.hero-widget h2 {
  margin: 8px 0 16px;
  font-size: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #0f172a;
  background: #a5b4fc;
}

.mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.mini-list li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
}

.mini-title {
  color: var(--text-main);
}

.mini-time {
  color: var(--accent-soft);
}

/* SECTION + CARDS */

.section {
  margin-top: 32px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.section-header h2 {
  margin: 0;
  font-size: 20px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  padding: 16px 16px 18px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(24px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 8px;
}

.card h3 {
  margin: 6px 0 8px;
  font-size: 16px;
}

.card p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* CATEGORY PILLS */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  color: #0f172a;
  font-weight: 500;
}

.pill-promo {
  background: #4ade80;
}

.pill-job {
  background: #facc15;
}

.pill-event {
  background: #60a5fa;
}

.card-time {
  color: var(--text-muted);
}

/* =========================
   4. Responsive
   ========================= */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-widget {
    order: -1;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .container {
    padding-inline: 14px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
