/*
Theme Name: Song Thong Minh Pro Color
Theme URI: https://songthongminh.vn/
Description: Child theme cho website Song Thong Minh - giao dien cong nghe, SEO blog, review san pham.
Author: ChatGPT
Template: twentytwentyfive
Version: 1.3.0
Text Domain: song-thong-minh-pro-color
*/

:root {
  --stm-navy: #0f172a;
  --stm-slate: #334155;
  --stm-muted: #64748b;
  --stm-blue: #0ea5e9;
  --stm-blue-dark: #0284c7;
  --stm-cyan: #22d3ee;
  --stm-green: #10b981;
  --stm-bg: #f5fbff;
  --stm-card: #ffffff;
  --stm-border: #dbeafe;
  --stm-soft: #e0f7ff;
  --stm-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #f3fbff 0%, #ffffff 36%, #f8fbff 100%) !important;
  color: var(--stm-slate) !important;
}

body, button, input, textarea, select {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

.wp-site-blocks {
  background: transparent !important;
}

/* Admin bar spacing */
body.admin-bar .stm-header {
  top: 32px;
}

/* Header */
.stm-header-wrap {
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.stm-header-wrap::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #0ea5e9, #22d3ee, #10b981);
}

.stm-header {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.stm-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--stm-navy) !important;
  text-decoration: none !important;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.6px;
  white-space: nowrap;
}

.stm-brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--stm-blue), var(--stm-green));
  box-shadow: 0 0 0 5px rgba(14,165,233,.16);
  flex: 0 0 auto;
}

.stm-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stm-menu a {
  color: var(--stm-navy) !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 800;
  padding: 10px 13px;
  border-radius: 999px;
  transition: all .2s ease;
}

.stm-menu a:hover {
  background: #e0f7ff;
  color: var(--stm-blue-dark) !important;
  transform: translateY(-1px);
}

/* Home */
.stm-home-hero {
  background: radial-gradient(circle at 20% 10%, rgba(34,211,238,.26), transparent 34%), radial-gradient(circle at 80% 0%, rgba(16,185,129,.18), transparent 30%), linear-gradient(135deg, #effcff, #ffffff 58%, #f0fdf4);
  border-bottom: 1px solid #dbeafe;
}

.stm-home-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 88px 24px 76px;
}

.stm-home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0369a1;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: rgba(255,255,255,.82);
  border: 1px solid #bae6fd;
  border-radius: 999px;
  padding: 8px 14px;
}

.stm-home-title {
  margin: 22px 0 18px;
  max-width: 820px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -2.6px;
  color: var(--stm-navy);
  font-weight: 950;
}

.stm-home-desc {
  max-width: 760px;
  color: #475569;
  font-size: 21px;
  line-height: 1.7;
}

.stm-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.stm-category-pills a {
  color: var(--stm-navy) !important;
  text-decoration: none !important;
  background: #ffffff;
  border: 1px solid #bae6fd;
  box-shadow: 0 10px 30px rgba(14,165,233,.10);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
}

.stm-category-pills a:hover {
  background: linear-gradient(135deg, #e0f2fe, #ecfeff);
  border-color: #38bdf8;
}

.stm-post-list-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px 90px;
}

.stm-section-heading {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  margin: 0 0 28px;
  color: var(--stm-navy);
  letter-spacing: -1px;
  font-weight: 950;
}

.stm-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.stm-post-card {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(15,23,42,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.stm-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(15,23,42,.13);
}

.stm-post-card .wp-block-post-featured-image {
  margin: 0 !important;
}

.stm-post-card .wp-block-post-featured-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.stm-post-card-body {
  padding: 22px;
}

.stm-post-card h2,
.stm-post-card .wp-block-post-title {
  margin: 0 0 12px !important;
  font-size: 22px !important;
  line-height: 1.25 !important;
  letter-spacing: -.3px !important;
}

.stm-post-card h2 a,
.stm-post-card .wp-block-post-title a {
  color: var(--stm-navy) !important;
  text-decoration: none !important;
}

.stm-post-card .wp-block-post-excerpt,
.stm-post-card .wp-block-post-excerpt p {
  color: #64748b !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

/* Single post */
.single-post .stm-single-hero {
  background: radial-gradient(circle at 16% 4%, rgba(14,165,233,.24), transparent 32%), radial-gradient(circle at 86% 12%, rgba(16,185,129,.20), transparent 32%), linear-gradient(135deg, #e9faff, #ffffff 58%, #effaf7);
  border-bottom: 1px solid #dbeafe;
  padding: 78px 0 64px;
}

.single-post .stm-single-inner,
.single-post .wp-block-post-content {
  max-width: 980px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.single-post .wp-block-post-title {
  max-width: 980px !important;
  margin: 0 auto 26px !important;
  color: var(--stm-navy) !important;
  font-size: clamp(44px, 5.3vw, 72px) !important;
  font-weight: 950 !important;
  line-height: 1.02 !important;
  letter-spacing: -2.4px !important;
}

.single-post .wp-block-post-title::after {
  content: "";
  display: block;
  width: 96px;
  height: 6px;
  margin-top: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--stm-blue), var(--stm-green));
}

.single-post .stm-featured-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.single-post .stm-featured-wrap .wp-block-post-featured-image {
  margin: 0 !important;
}

.single-post .stm-featured-wrap .wp-block-post-featured-image img,
.single-post .wp-block-post-featured-image img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 22px !important;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.17) !important;
}

.single-post .wp-block-post-content {
  padding-top: 62px !important;
  padding-bottom: 92px !important;
  color: #334155 !important;
  font-size: 20px !important;
  line-height: 1.9 !important;
}

.single-post .wp-block-post-content > * {
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.single-post .wp-block-post-content h2 {
  max-width: 930px !important;
  color: var(--stm-navy) !important;
  font-size: clamp(30px, 3.2vw, 43px) !important;
  font-weight: 950 !important;
  line-height: 1.18 !important;
  letter-spacing: -1.1px !important;
  margin-top: 72px !important;
  margin-bottom: 22px !important;
  padding: 18px 24px 18px 26px !important;
  border-left: 7px solid var(--stm-blue) !important;
  border-radius: 18px !important;
  background: linear-gradient(90deg, rgba(224,247,255,.95), rgba(255,255,255,.50));
  box-shadow: 0 12px 36px rgba(14,165,233,.10);
}

.single-post .wp-block-post-content h3 {
  color: #075985 !important;
  font-size: clamp(25px, 2.4vw, 32px) !important;
  font-weight: 900 !important;
  line-height: 1.28 !important;
  margin-top: 42px !important;
  margin-bottom: 14px !important;
}

.single-post .wp-block-post-content p {
  margin-bottom: 24px !important;
}

.single-post .wp-block-post-content ul,
.single-post .wp-block-post-content ol {
  margin-bottom: 28px !important;
}

.single-post .wp-block-post-content li {
  margin-bottom: 10px !important;
}

.single-post .wp-block-post-content a {
  color: var(--stm-blue-dark) !important;
  font-weight: 800;
}

.single-post .wp-block-post-content strong {
  color: var(--stm-navy) !important;
  font-weight: 900 !important;
}

.single-post .wp-block-quote,
.single-post blockquote {
  border-left: 6px solid var(--stm-blue) !important;
  background: linear-gradient(135deg, #f0f9ff, #ffffff);
  padding: 24px 28px !important;
  border-radius: 18px;
  color: var(--stm-navy);
}

.wp-block-post-author,
.wp-block-post-author-name,
.wp-block-post-date,
.wp-block-post-terms,
.single-post .taxonomy-category,
.single-post .taxonomy-post_tag {
  display: none !important;
}

/* Archive/category */
.archive .wp-site-blocks,
.blog .wp-site-blocks,
.search .wp-site-blocks {
  background: linear-gradient(180deg, #f0fbff 0%, #ffffff 40%, #f8fbff 100%) !important;
}

/* Footer */
.stm-footer-wrap {
  border-top: 1px solid #dbeafe;
  background: #f8fbff;
}

.stm-footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #64748b;
  font-size: 15px;
}

.stm-footer strong {
  color: var(--stm-navy);
}

@media (max-width: 900px) {
  .stm-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .stm-menu {
    justify-content: flex-start;
  }
  .stm-post-grid {
    grid-template-columns: 1fr;
  }
  .single-post .stm-single-hero {
    padding: 50px 0 44px;
  }
}

@media (max-width: 768px) {
  body.admin-bar .stm-header {
    top: 46px;
  }
  .stm-brand {
    font-size: 20px;
  }
  .stm-menu a {
    font-size: 14px;
    padding: 8px 10px;
  }
  .single-post .wp-block-post-title {
    font-size: 38px !important;
    letter-spacing: -1.3px !important;
  }
  .single-post .wp-block-post-content {
    font-size: 18px !important;
    line-height: 1.8 !important;
  }
  .single-post .wp-block-post-content h2 {
    font-size: 29px !important;
    padding: 16px 18px !important;
  }
  .single-post .wp-block-post-content h3 {
    font-size: 24px !important;
  }
  .stm-footer {
    flex-direction: column;
  }
}


/* ===== PRO COLOR BALANCED OVERRIDES ===== */
:root {
  --stm-navy: #0b1224;
  --stm-ink: #111827;
  --stm-slate: #334155;
  --stm-muted: #667085;
  --stm-blue: #0ea5e9;
  --stm-blue-dark: #0369a1;
  --stm-cyan: #22d3ee;
  --stm-green: #10b981;
  --stm-orange: #f97316;
  --stm-soft-blue: #e0f2fe;
  --stm-soft-cyan: #ecfeff;
  --stm-page: #f6fbff;
}

body {
  background: linear-gradient(180deg, #f0fbff 0%, #ffffff 24%, #f7fbff 100%) !important;
  color: #334155 !important;
}

.stm-header-wrap {
  background: rgba(255,255,255,.96) !important;
  border-bottom: 1px solid #dbeafe !important;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .05);
}

.stm-header-wrap::before {
  height: 5px !important;
  background: linear-gradient(90deg, #0284c7 0%, #06b6d4 42%, #10b981 100%) !important;
}

.stm-brand {
  font-size: 21px !important;
  color: #0b1224 !important;
}

.stm-brand-dot {
  width: 15px !important;
  height: 15px !important;
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 55%, #10b981 100%) !important;
  box-shadow: 0 0 0 5px rgba(14,165,233,.15), 0 7px 16px rgba(14,165,233,.28) !important;
}

.stm-menu a {
  color: #0f172a !important;
  border: 1px solid transparent;
  background: transparent;
}

.stm-menu a:hover {
  background: linear-gradient(135deg, #e0f2fe, #ecfeff) !important;
  border-color: #bae6fd !important;
  color: #0369a1 !important;
}

.single-post .stm-single-hero {
  background:
    radial-gradient(circle at 10% 10%, rgba(14,165,233,.22), transparent 28%),
    radial-gradient(circle at 88% 15%, rgba(16,185,129,.18), transparent 30%),
    linear-gradient(135deg, #eafaff 0%, #f8feff 52%, #eefdf5 100%) !important;
  border-bottom: 1px solid #dbeafe !important;
  padding: 52px 0 58px !important;
}

.single-post .stm-single-inner {
  max-width: 1060px !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
}

.single-post .stm-single-inner::before {
  content: "Review thiết bị thông minh";
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  box-shadow: 0 10px 26px rgba(14,165,233,.10);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.single-post .wp-block-post-title {
  max-width: 1060px !important;
  font-size: clamp(42px, 4.5vw, 58px) !important;
  line-height: 1.08 !important;
  letter-spacing: -1.8px !important;
  margin-bottom: 24px !important;
  color: #0b1224 !important;
}

.single-post .wp-block-post-title::after {
  width: 112px !important;
  height: 6px !important;
  margin-top: 22px !important;
  background: linear-gradient(90deg, #0ea5e9, #10b981) !important;
  box-shadow: 0 8px 20px rgba(14,165,233,.22);
}

.single-post .stm-featured-wrap {
  max-width: 1060px !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
}

.single-post .stm-featured-wrap .wp-block-post-featured-image img,
.single-post .wp-block-post-featured-image img {
  border-radius: 22px !important;
  border: 1px solid rgba(186,230,253,.75) !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16), 0 0 0 8px rgba(255,255,255,.45) !important;
}

.single-post .wp-block-post-content {
  max-width: 980px !important;
  margin-top: 54px !important;
  margin-bottom: 92px !important;
  padding: 44px 54px 72px !important;
  background: rgba(255,255,255,.92) !important;
  border: 1px solid #e0f2fe !important;
  border-radius: 28px !important;
  box-shadow: 0 20px 60px rgba(15,23,42,.06) !important;
  color: #334155 !important;
  font-size: 19px !important;
  line-height: 1.9 !important;
}

.single-post .wp-block-post-content > * {
  max-width: 860px !important;
}

.single-post .wp-block-post-content p {
  color: #475569 !important;
  margin-bottom: 23px !important;
}

.single-post .wp-block-post-content h2 {
  max-width: 900px !important;
  font-size: clamp(29px, 3vw, 38px) !important;
  line-height: 1.22 !important;
  letter-spacing: -0.8px !important;
  color: #0b1224 !important;
  margin-top: 66px !important;
  margin-bottom: 22px !important;
  padding: 18px 24px 18px 24px !important;
  border-left: 7px solid #0ea5e9 !important;
  border-radius: 18px !important;
  background: linear-gradient(90deg, #e0f7ff 0%, #ffffff 88%) !important;
  box-shadow: 0 12px 32px rgba(14,165,233,.10) !important;
}

.single-post .wp-block-post-content h3 {
  color: #075985 !important;
  font-size: clamp(24px, 2.3vw, 30px) !important;
  font-weight: 900 !important;
}

.single-post .wp-block-post-content a {
  color: #0284c7 !important;
  font-weight: 800 !important;
}

.single-post .wp-block-post-content strong {
  color: #0f172a !important;
}

.single-post .wp-block-post-content ul,
.single-post .wp-block-post-content ol {
  background: #f8fcff;
  border: 1px solid #e0f2fe;
  border-radius: 16px;
  padding: 22px 26px 22px 46px !important;
}

.stm-home-hero {
  background:
    radial-gradient(circle at 18% 12%, rgba(14,165,233,.24), transparent 30%),
    radial-gradient(circle at 78% 12%, rgba(16,185,129,.18), transparent 28%),
    linear-gradient(135deg, #eafaff 0%, #ffffff 55%, #effdf5 100%) !important;
}

.stm-home-title {
  color: #0b1224 !important;
  font-size: clamp(42px, 5vw, 64px) !important;
}

@media (max-width: 768px) {
  .single-post .stm-single-hero {
    padding: 36px 0 38px !important;
  }

  .single-post .stm-single-inner,
  .single-post .stm-featured-wrap {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .single-post .wp-block-post-title {
    font-size: 34px !important;
    letter-spacing: -1px !important;
  }

  .single-post .wp-block-post-content {
    max-width: calc(100% - 28px) !important;
    padding: 28px 20px 44px !important;
    font-size: 17px !important;
    border-radius: 20px !important;
  }

  .single-post .wp-block-post-content h2 {
    font-size: 27px !important;
    padding: 15px 17px !important;
  }
}
