/*
Theme Name: Simple Landing
Theme URI: https://example.com
Author: Claude
Description: Một theme landing page đơn giản với tiêu đề, khung nhập nội dung và footer.
Version: 1.0
Requires at least: 5.0
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simple-landing
*/

:root {
  --ink: #1b1b1b;
  --paper: #faf8f5;
  --accent: #3c6e5e;
  --line: #ddd6cc;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Be Vietnam Pro', serif;
}

main.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.landing-main h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}

.landing-main h1 span {
  color: var(--accent);
  font-style: italic;
}

.landing-subtitle {
  font-family: 'Be Vietnam Pro', Arial, sans-serif;
  color: #6b6b6b;
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.landing-form {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landing-form textarea {
  width: 100%;
  min-height: 140px;
  padding: 16px;
  font-family: 'Be Vietnam Pro', Arial, sans-serif;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
}

.landing-form textarea:focus {
  border-color: var(--accent);
}

.landing-form button {
  align-self: flex-end;
  padding: 10px 24px;
  font-family: 'Be Vietnam Pro', Arial, sans-serif;
  font-size: 0.95rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.landing-form button:hover {
  opacity: 0.85;
}

.landing-footer {
  font-family: 'Be Vietnam Pro', Arial, sans-serif;
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: #8a8a8a;
  border-top: 1px solid var(--line);
}

/* ==========================================================
   Trang nội dung (page.php) — bài viết, table, blockquote...
   ========================================================== */

.content-page {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
  font-family: 'Be Vietnam Pro', Arial, sans-serif;
  line-height: 1.7;
}

.content-page .page-title {
  font-family: 'Be Vietnam Pro', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.5px;
  margin: 0 0 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.content-page h2 {
  font-family: 'Be Vietnam Pro', serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin: 40px 0 16px;
}

.content-page h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 32px 0 12px;
}

.content-page p {
  margin: 0 0 18px;
  color: #333;
}

.content-page a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.content-page a:hover {
  text-decoration-color: var(--accent);
}

.content-page ul,
.content-page ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.content-page li {
  margin-bottom: 8px;
}

.content-page img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 24px 0;
}

.content-page hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* Blockquote */
.content-page blockquote {
  margin: 32px 0;
  padding: 16px 24px;
  border-left: 3px solid var(--accent);
  background: #fff;
  font-family: 'Be Vietnam Pro', serif;
  font-style: italic;
  color: #444;
}

.content-page blockquote p {
  margin: 0 0 8px;
  color: inherit;
}

.content-page blockquote p:last-child {
  margin-bottom: 0;
}

.content-page blockquote cite {
  display: block;
  margin-top: 8px;
  font-family: 'Be Vietnam Pro', Arial, sans-serif;
  font-style: normal;
  font-size: 0.85rem;
  color: #8a8a8a;
}

.content-page blockquote cite::before {
  content: "— ";
}

/* Table */
.content-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.95rem;
  background: #fff;
}

.content-page table caption {
  text-align: left;
  font-size: 0.85rem;
  color: #8a8a8a;
  margin-bottom: 8px;
}

.content-page th,
.content-page td {
  padding: 12px 16px;
  border: 1px solid var(--line);
  text-align: left;
}

.content-page th {
  background: #f1ede4;
  font-weight: 600;
  color: var(--ink);
}

.content-page tbody tr:nth-child(even) td {
  background: #fbfaf7;
}

.content-page tbody tr:hover td {
  background: #f4efe6;
}

/* Cho phép bảng cuộn ngang trên màn hình nhỏ */
.content-page .table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 32px 0;
}

.content-page .table-scroll table {
  margin: 0;
}

/* Code / preformatted */
.content-page code {
  font-family: 'Courier New', monospace;
  background: #f1ede4;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.content-page pre {
  background: #1b1b1b;
  color: #f4f1ea;
  padding: 16px 20px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 24px 0;
}

.content-page pre code {
  background: none;
  padding: 0;
  color: inherit;
}
