/* ศิริ โฮม 19 — shared styles */

body {
  margin: 0;
  background: #f8fafd;
  font-family: 'Sarabun', sans-serif;
  color: #33415c;
}
input, textarea, select, button { font-family: 'Sarabun', sans-serif; }
a { color: inherit; }
* { box-sizing: border-box; }

@keyframes fadeUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatY   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.5); } 50% { box-shadow: 0 0 0 10px rgba(59,130,246,0); } }
@keyframes glowPulse{ 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes scanline { from { transform: translateY(-100%); } to { transform: translateY(500%); } }
@keyframes orbDrift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, -30px); } }

/* ---------- Layout ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 48px; }
.page-section { padding: 56px 48px; }
.page-section .container { padding: 0; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 48px; background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px); border-bottom: 1px solid rgba(29,78,216,0.12);
}
.navbar .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.navbar .logo {
  width: 40px; height: 40px; background: #1d4ed8; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-family: 'Prompt', sans-serif; font-weight: 700; font-size: 15px;
  box-shadow: 0 4px 14px rgba(29,78,216,0.35);
}
.navbar .brand-name { font-family: 'Prompt', sans-serif; font-weight: 600; font-size: 17px; color: #0f2352; }
.navbar .brand-tag { font-size: 11px; color: #6b7b99; letter-spacing: 0.5px; }
.nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; align-items: center; }
.nav-links a { text-decoration: none; color: #33415c; cursor: pointer; transition: color .2s; }
.nav-links a.active, .nav-links a:hover { color: #1d4ed8; }
.nav-cta {
  background: #1d4ed8; color: #fff; padding: 10px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none;
  transition: transform .2s, box-shadow .2s; display: inline-block;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(59,130,246,0.4); }

/* ---------- Buttons ---------- */
.btn-primary {
  background: linear-gradient(90deg, #1d4ed8, #2563eb); color: #fff;
  padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 16px;
  cursor: pointer; border: none; box-shadow: 0 8px 24px rgba(29,78,216,0.35);
  transition: transform .2s, box-shadow .2s; text-decoration: none; display: inline-block;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(29,78,216,0.45); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px); border: 1px solid rgba(29,78,216,0.2); color: #0f2352;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  cursor: pointer; text-decoration: none; transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: #1877f2; background: #eef4ff; }
.btn-fb {
  text-decoration: none; background: #1877f2; color: #fff; padding: 12px 26px;
  border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer;
  display: inline-block; transition: transform .2s, box-shadow .2s;
}
.btn-fb:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(24,119,242,0.45); }

/* ---------- Cards ---------- */
.card-project {
  background: #fff; border: 1px solid rgba(29,78,216,0.1); border-radius: 14px;
  overflow: hidden; cursor: pointer; transition: transform .25s, box-shadow .25s;
  text-decoration: none; display: block; color: inherit;
}
.card-project:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(59,130,246,0.16); }
.card-project .thumb {
  height: 200px; background: repeating-linear-gradient(45deg, #dbe4f2 0 14px, #e9eff9 14px 28px);
  display: flex; align-items: center; justify-content: center; color: #7387ab;
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; position: relative;
  background-size: cover; background-position: center;
}
.card-project .body { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-project .title { font-family: 'Prompt', sans-serif; font-weight: 600; font-size: 16px; color: #0f2352; }
.card-project .meta { font-size: 13px; color: #6b7b99; margin-top: 4px; }
.card-project .arrow {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #3b82f6;
  color: #3b82f6; display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.cat-badge {
  position: absolute; top: 12px; left: 12px; background: rgba(15,35,82,0.85); color: #fff;
  font-size: 12px; padding: 4px 12px; border-radius: 999px;
}

/* ---------- Section heading ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.section-head .titles { display: flex; align-items: baseline; gap: 14px; }
.section-head h2 { font-family: 'Prompt', sans-serif; font-weight: 600; font-size: 28px; color: #0f2352; margin: 0; }
.section-head .kicker { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #3b82f6; }
.section-head .see-all { color: #1d4ed8; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; }

/* ---------- Forms ---------- */
.field-label { font-size: 14px; font-weight: 600; color: #33415c; margin-bottom: 6px; }
.field-input, .field-select, .field-textarea {
  width: 100%; box-sizing: border-box; padding: 12px 16px; border: 1px solid #d6e0ef;
  border-radius: 10px; font-size: 15px; outline: none; background: #f8fafd;
}
.field-input:focus, .field-select:focus, .field-textarea:focus { border-color: #1d4ed8; }
.alert-success { background: #ecfdf5; border: 1px solid #34d399; color: #065f46; border-radius: 10px; padding: 14px 18px; font-size: 15px; margin-bottom: 16px; }
.alert-error { color: #dc2626; font-size: 14px; margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a1a3e; padding: 20px 48px; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.site-footer .copy { color: #7387ab; font-size: 13px; }
.site-footer a { color: #3d5580; font-size: 12px; text-decoration: none; font-family: 'IBM Plex Mono', monospace; transition: color .2s; }
.site-footer a:hover { color: #93c5fd; }

/* ---------- Admin ---------- */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 28px; background: #fff; border: 1px solid rgba(29,78,216,0.12); border-radius: 999px; padding: 6px; width: fit-content; }
.admin-tabs a { padding: 9px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; color: #33415c; text-decoration: none; transition: background .2s; }
.admin-tabs a.active { background: #1d4ed8; color: #fff; }
.admin-tabs .badge { margin-left: 8px; background: #dc2626; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.admin-row { background: #fff; border: 1px solid rgba(29,78,216,0.1); border-radius: 12px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.admin-row .thumb-sm { width: 64px; height: 48px; border-radius: 8px; background: repeating-linear-gradient(45deg, #dbe4f2 0 10px, #e9eff9 10px 20px); flex: 0 0 auto; background-size: cover; background-position: center; }
.admin-btn { border: 1px solid #d6e0ef; padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; background: #fff; text-decoration: none; display: inline-block; }
.admin-btn.edit { color: #1d4ed8; }
.admin-btn.danger { color: #dc2626; }
.admin-panel { background: #fff; border: 1px solid rgba(29,78,216,0.12); border-radius: 14px; padding: 24px; }
