/*
Theme Name: Kitu Dep
Theme URI: https://kitudacbiet.ink/kitu-dep
Author: Kitu Dep
Author URI: https://kitudacbiet.ink/
Description: Theme cong cu ki tu dac biet tieng Viet: doi font chu Unicode, kho ki hieu bam de sao chep, tao ten dep cho game, dem ki tu, kem blog. Dung cung WordPress.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kitu-dep
Tags: tools, unicode, symbols, blog, responsive, blue, orange
*/

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #222;
  background: #fff;
  font-size: 15px;
  line-height: 1.6;
}
a { color: #0b5ed7; text-decoration: none; }
a:hover { color: #ff7a1a; }
h1, h2, h3, h4 { color: #0b3d91; margin: 0 0 12px; line-height: 1.35; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 15px; }
.section { padding: 48px 0; }
.section-alt { background: #f5f8fd; }
.section-title { text-align: center; font-size: 28px; text-transform: uppercase; margin-bottom: 6px; }
.section-sub { text-align: center; color: #666; margin: 0 0 28px; }
.btn {
  display: inline-block; background: #ff7a1a; color: #fff; border: none;
  padding: 10px 22px; border-radius: 6px; font-weight: 700; cursor: pointer; font-size: 15px;
}
.btn:hover { background: #e56a00; color: #fff; }
.btn-small { padding: 6px 14px; font-size: 14px; }
input[type="text"], input[type="search"], textarea, select {
  width: 100%; padding: 11px 12px; border: 1px solid #ccc; border-radius: 6px;
  font-size: 15px; font-family: inherit; background: #fff;
}
input:focus, textarea:focus, select:focus { outline: 2px solid #0b5ed7; border-color: #0b5ed7; }
label { font-weight: 700; display: block; margin-bottom: 6px; }
.no-results { text-align: center; color: #777; padding: 24px 0; grid-column: 1 / -1; }

/* ============ Header ============ */
.site-header { background: #fff; border-bottom: 1px solid #e8e8e8; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; gap: 10px; color: #0b3d91; font-size: 24px; font-weight: 800; line-height: 1.1; }
.logo:hover { color: #0b3d91; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 10px; flex: 0 0 42px;
  background: linear-gradient(135deg, #0b5ed7, #ff7a1a);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.logo small { display: block; font-size: 11px; color: #ff7a1a; font-weight: 600; letter-spacing: 1px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.main-nav a { display: block; padding: 9px 12px; color: #0b3d91; font-weight: 700; font-size: 14px; border-radius: 6px; }
.main-nav a:hover { background: #eef3fb; color: #ff7a1a; }

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, #0b3d91 0%, #0b5ed7 55%, #ff7a1a 130%);
  color: #fff; text-align: center; padding: 64px 0 56px;
}
.hero h1 { color: #fff; font-size: 34px; margin-bottom: 10px; }
.hero-sub { font-size: 17px; opacity: .92; margin: 0 auto 26px; max-width: 640px; }
.hero-box { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 22px; }
.hero-box input { flex: 1; }
.sample-list { max-width: 560px; margin: 0 auto; text-align: left; }
.sample-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px; padding: 10px 14px; margin-bottom: 8px;
}
.sample-text { font-size: 18px; word-break: break-word; }

/* ============ Hộp công cụ ============ */
.tool-box {
  background: #fff; border: 1px solid #e5e5e5; border-radius: 10px;
  padding: 22px; max-width: 860px; margin: 0 auto;
}
.section-alt .tool-box { border-color: #dbe4f0; }

/* ============ Đổi font ============ */
.font-list { max-width: 860px; margin: 20px auto 0; display: flex; flex-direction: column; gap: 10px; }
.font-row {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid #e5e5e5; border-radius: 8px; padding: 12px 14px; background: #fff;
}
.font-info { flex: 0 0 170px; }
.font-info strong { display: block; color: #0b3d91; font-size: 15px; }
.font-info span { font-size: 12px; color: #888; }
.font-out { flex: 1; font-size: 18px; word-break: break-word; }

/* ============ Kho kí hiệu ============ */
.tabs { text-align: center; margin: 0 auto 20px; max-width: 860px; }
.tab-btn {
  background: #fff; border: 1px solid #0b5ed7; color: #0b5ed7; padding: 7px 14px;
  margin: 0 3px 8px; border-radius: 20px; cursor: pointer; font-weight: 700; font-size: 13px;
}
.tab-btn.active, .tab-btn:hover { background: #0b5ed7; color: #fff; }
.symbol-grid {
  max-width: 860px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px;
}
.symbol-btn {
  font-size: 26px; line-height: 1.4; padding: 8px 0; background: #fff;
  border: 1px solid #e5e5e5; border-radius: 8px; cursor: pointer;
}
.symbol-btn:hover { border-color: #ff7a1a; background: #fff4ea; transform: scale(1.08); }

/* ============ Tạo tên đẹp ============ */
.name-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 16px 0; }
.name-options label { font-weight: 600; font-size: 14px; }
.name-preview-wrap { text-align: center; border-top: 1px dashed #ddd; padding-top: 18px; margin-top: 6px; }
.name-preview-label { color: #777; font-size: 14px; margin-bottom: 4px; }
.name-preview { font-size: 28px; font-weight: 700; color: #0b3d91; margin-bottom: 14px; word-break: break-word; }
.suggest-label { margin: 18px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: #eef3fb; border: 1px solid #cdd9ec; color: #0b3d91;
  padding: 7px 14px; border-radius: 20px; cursor: pointer; font-weight: 700; font-size: 14px;
}
.chip:hover { background: #0b5ed7; color: #fff; border-color: #0b5ed7; }

/* ============ Đếm kí tự ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.stat { background: #eef3fb; border-radius: 8px; padding: 14px 8px; text-align: center; }
.stat strong { display: block; font-size: 26px; color: #0b5ed7; }
.stat span { font-size: 13px; color: #555; }

/* ============ Hướng dẫn ============ */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 960px; margin: 0 auto; }
.guide-card { border: 1px solid #e5e5e5; border-radius: 10px; padding: 20px; background: #fff; }
.guide-card h3 { font-size: 18px; }
.guide-card p { margin: 0; color: #555; }

/* ============ Footer ============ */
.site-footer { background: #16233a; color: #c9d4e6; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding: 40px 0 24px; }
.site-footer h4 { color: #fff; text-transform: uppercase; font-size: 15px; }
.site-footer a { color: #c9d4e6; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #2c3e5e; padding: 16px 0; text-align: center; font-size: 13px; color: #8fa1bd; }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: #222; color: #fff; padding: 11px 20px; border-radius: 8px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  z-index: 100; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 760px) {
  .hero h1 { font-size: 26px; }
  .hero-box { flex-direction: column; }
  .font-row { flex-wrap: wrap; }
  .font-info { flex: 1 1 100%; }
  .font-out { flex: 1 1 100%; }
  .name-options, .guide-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .main-nav { margin-left: 0; width: 100%; }
}

/* ============ Blog ============ */
.tour-meta { font-size: 13px; color: #666; margin: 2px 0; }
.tour-meta b { color: #333; }
.post-content p { margin: 0 0 14px; color: #333; }
.post-content h2, .post-content h3 { margin-top: 22px; }
.post-content ul, .post-content ol { margin: 0 0 14px 20px; }
.post-content li { margin-bottom: 6px; }
.pagination { text-align: center; margin: 28px 0; }
.pagination .page-numbers { display: inline-block; padding: 8px 13px; border: 1px solid #ddd; border-radius: 4px; margin: 0 2px; }
.pagination .current { background: #0b5ed7; color: #fff; border-color: #0b5ed7; }
