/*
Theme Name: LINE LIFF Test
Theme URI: https://example.com/line-liff-test
Author: OpenAI Codex
Author URI: https://openai.com
Description: ธีม WordPress สำหรับทดสอบการเชื่อมต่อ LINE LIFF และการเปิดลิงก์ในแอป LINE
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: line-liff-test
*/

:root {
  --line-green: #06c755;
  --ink: #101828;
  --muted: #475467;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.72);
  --bg-start: #f4fff7;
  --bg-mid: #dcfff0;
  --bg-end: #ecfdf3;
  --border: rgba(16, 24, 40, 0.08);
  --shadow: 0 24px 60px rgba(16, 24, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(6, 199, 85, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(16, 24, 40, 0.08), transparent 24%),
    linear-gradient(135deg, var(--bg-start), var(--bg-mid) 50%, var(--bg-end));
  min-height: 100vh;
}

a {
  color: inherit;
}

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

.site-header {
  padding: 28px 0 12px;
}

.site-branding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
}

.site-tagline {
  margin: 6px 0 0;
  color: var(--muted);
}

.card {
  background: var(--panel-soft);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-copy,
.content-panel,
.article-panel {
  padding: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(6, 199, 85, 0.12);
  color: #058043;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-title {
  margin: 18px 0 12px;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-description,
.panel-description,
.content-panel p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button,
button,
input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  background: var(--line-green);
  color: #fff;
  box-shadow: 0 14px 26px rgba(6, 199, 85, 0.26);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid var(--border);
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.06);
  font-size: 0.92rem;
  font-weight: 700;
}

.status-badge.is-ok {
  color: #067647;
  background: rgba(6, 199, 85, 0.14);
}

.status-badge.is-warn {
  color: #b54708;
  background: rgba(255, 183, 3, 0.18);
}

.header-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(16, 24, 40, 0.08);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}

.header-profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(16, 24, 40, 0.06);
}

.header-profile-copy {
  min-width: 0;
}

.header-profile-name {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
}

.header-profile-status {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.section-stack {
  display: grid;
  gap: 24px;
  padding-bottom: 56px;
}

.blog-hero {
  padding: 32px 32px 28px;
}

.site-footer {
  padding: 0 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

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

.blog-list-item {
  padding: 26px 28px;
}

.blog-list-meta,
.blog-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.blog-list-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.blog-list-title {
  margin: 14px 0 10px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.1;
}

.blog-list-title a {
  text-decoration: none;
}

.blog-list-excerpt {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.post-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(16, 24, 40, 0.06);
}

.post-card-meta,
.article-meta,
.line-comment-date,
.comment-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.post-card-title,
.article-title {
  margin: 0;
  line-height: 1.1;
}

.post-card-title a {
  text-decoration: none;
}

.post-card-excerpt,
.article-content,
.line-comment-content,
.empty-state {
  color: var(--muted);
  line-height: 1.8;
}

.post-card-footer,
.article-like-row,
.line-comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.article-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
}

.article-action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.article-inline-button {
  padding: 10px 16px;
  min-height: 48px;
  font-size: 1rem;
  color: #f43f5e;
}

.article-inline-button span {
  display: inline-flex;
  align-items: center;
}

.post-card-link {
  padding: 10px 16px;
}

.article-panel,
.comment-panel {
  margin-bottom: 24px;
}

.article-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-top: 14px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 14px 0 24px;
}

.article-like-count {
  font-weight: 700;
}

.line-comment-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 14px;
}

.line-comment-item {
  margin: 0;
}

.line-comment-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 24, 40, 0.06);
}

.line-comment-avatar,
.line-comment-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.line-comment-author {
  font-size: 1rem;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
}

.comment-notes,
.logged-in-as {
  color: var(--muted);
}

.hidden {
  display: none;
}

@media (max-width: 900px) {
  .site-shell {
    width: min(100% - 20px, 1120px);
  }

  .hero-copy,
  .content-panel,
  .article-panel {
    padding: 22px;
  }

  .site-branding {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .line-comment-card {
    grid-template-columns: 1fr;
  }

  .article-action-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-action-buttons {
    width: 100%;
    justify-content: flex-end;
  }

  .header-profile {
    width: 100%;
    justify-content: space-between;
  }

  .header-profile-status {
    white-space: normal;
  }
}
