/*
Theme Name: VHTG Clean
Theme URI: https://vanhanhtinhgon.com
Author: VHTG
Description: Theme tối giản, sạch, tối ưu giao diện bài viết cho Vận Hành Tinh Gọn.
Version: 1.0.0
Text Domain: vhtg-clean
*/

:root {
  --vhtg-bg: #f4faf6;
  --vhtg-surface: #ffffff;
  --vhtg-text: #102a24;
  --vhtg-muted: #64746f;
  --vhtg-green: #064e3b;
  --vhtg-green-2: #0f766e;
  --vhtg-gold: #fbbf24;
  --vhtg-amber: #d97706;
  --vhtg-border: rgba(6, 78, 59, .12);
  --vhtg-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, .12), transparent 28rem),
    linear-gradient(180deg, #eefaf2 0%, var(--vhtg-bg) 36%, #ffffff 100%);
  color: var(--vhtg-text);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--vhtg-green-2);
  text-decoration: none;
  font-weight: 700;
}

a:hover {
  color: var(--vhtg-amber);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.vhtg-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 78, 59, .94);
  color: #fff;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-branding {
  min-width: 0;
}

.site-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.03em;
}

.site-title a {
  color: #fff;
}

.site-description {
  margin: 5px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 650;
  max-width: 620px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.main-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  font-size: 13px;
  font-weight: 800;
}

.main-navigation a:hover {
  color: #102033;
  background: linear-gradient(135deg, var(--vhtg-gold), var(--vhtg-amber));
}

.hero-band {
  background:
    radial-gradient(circle at 82% 12%, rgba(251,191,36,.24), transparent 24rem),
    linear-gradient(135deg, #064e3b 0%, #0d1e2e 72%);
  color: #fff;
  padding: 54px 0 46px;
}

.hero-title {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -.055em;
}

.hero-sub {
  max-width: 720px;
  margin: 16px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 17px;
  font-weight: 650;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
  padding: 34px 0 54px;
}

.content-main,
.content-card,
.widget {
  background: var(--vhtg-surface);
  border: 1px solid var(--vhtg-border);
  border-radius: 22px;
  box-shadow: var(--vhtg-shadow);
}

.content-main {
  overflow: hidden;
}

.post-card {
  padding: clamp(24px, 4vw, 52px);
}

.entry-header {
  margin-bottom: 24px;
}

.entry-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -.045em;
  color: var(--vhtg-green);
  font-weight: 900;
}

.entry-meta,
.entry-footer {
  color: var(--vhtg-muted);
  font-size: 13px;
  font-weight: 650;
}

.entry-content {
  font-size: 17px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--vhtg-green);
  line-height: 1.25;
  letter-spacing: -.025em;
}

.entry-content h2 {
  margin: 42px 0 14px;
  font-size: 30px;
}

.entry-content h3 {
  margin: 30px 0 10px;
  font-size: 23px;
}

.entry-content p {
  margin: 0 0 18px;
}

.entry-content ul,
.entry-content ol {
  margin: 16px 0 22px;
  padding-left: 24px;
}

.entry-content li {
  margin-bottom: 9px;
}

.entry-content blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 5px solid var(--vhtg-gold);
  background: #fff8e6;
  border-radius: 14px;
  color: #4b5563;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  overflow: hidden;
  border-radius: 14px;
}

.entry-content th,
.entry-content td {
  padding: 12px;
  border: 1px solid var(--vhtg-border);
}

.entry-content th {
  background: #ecfdf5;
  color: var(--vhtg-green);
  text-align: left;
}

.post-list {
  display: grid;
  gap: 18px;
}

.archive-item {
  padding: 26px;
}

.archive-item h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.2;
}

.read-more {
  display: inline-flex;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #102033;
  background: linear-gradient(135deg, var(--vhtg-gold), var(--vhtg-amber));
  font-weight: 900;
}

.sidebar {
  display: grid;
  gap: 18px;
}

.widget {
  padding: 22px;
}

.widget-title,
.widget h2,
.widget h3 {
  margin: 0 0 14px;
  color: var(--vhtg-green);
  font-size: 18px;
  font-weight: 900;
}

.widget ul {
  padding-left: 18px;
  margin: 0;
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
  width: 100%;
  border: 1px solid rgba(15,118,110,.22);
  background: #fff;
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  outline: none;
}

.search-field:focus,
input:focus,
textarea:focus {
  border-color: var(--vhtg-green-2);
  box-shadow: 0 0 0 3px rgba(15,118,110,.10);
}

button,
input[type="submit"],
.search-submit {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 900;
  color: #102033;
  background: linear-gradient(135deg, var(--vhtg-gold), var(--vhtg-amber));
  cursor: pointer;
}

.comments-area {
  padding: clamp(22px, 4vw, 38px);
  border-top: 1px solid var(--vhtg-border);
  background: #fbfefc;
}

.comments-title,
.comment-reply-title {
  margin: 0 0 16px;
  color: var(--vhtg-green);
  font-size: 24px;
  font-weight: 900;
}

.comment-list {
  padding-left: 0;
  list-style: none;
}

.comment-body {
  margin-bottom: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--vhtg-border);
  border-radius: 14px;
}

.site-footer {
  padding: 32px 0;
  color: rgba(255,255,255,.70);
  background: #0d1e2e;
  text-align: center;
  font-size: 13px;
  font-weight: 650;
}

.not-found {
  padding: 60px 0;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .site-description {
    white-space: normal;
  }

  .main-navigation ul {
    justify-content: flex-start;
  }

  .content-layout {
    grid-template-columns: 1fr;
    padding-top: 22px;
  }
}

@media (max-width: 600px) {
  .vhtg-wrap {
    width: min(100% - 24px, 1120px);
  }

  .hero-band {
    padding: 34px 0 30px;
  }

  .post-card {
    padding: 22px 16px;
  }

  .content-main,
  .content-card,
  .widget {
    border-radius: 16px;
  }

  .entry-content {
    font-size: 16px;
  }
}
