/* ========================================
   มูวทีเถอะ - Shared Stylesheet
   ใช้กับทุกหน้า SEO landing
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold: #FFD700;
  --gold-light: #FFF3B0;
  --gold-dark: #B8860B;
  --purple-deep: #1A0033;
  --purple-mid: #4A148C;
  --purple-light: #6A1B9A;
  --pink-accent: #E91E63;
  --text-light: rgba(255, 255, 255, 0.9);
  --text-muted: rgba(255, 255, 255, 0.7);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Prompt', 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0D0020;
  color: #fff;
  overflow-x: hidden;
  line-height: 1.8;
  min-height: 100vh;
}

/* ===== Animated Background ===== */
.bg-gradient {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at top, #4A148C 0%, #1A0033 50%, #0D0020 100%);
  z-index: -3;
}

.bg-stars {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  opacity: 0;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 8px #fff, 0 0 16px var(--gold); }
}

.nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
  animation: float 25s ease-in-out infinite;
}

.nebula-1 {
  width: 500px; height: 500px;
  top: -150px; left: -200px;
  background: radial-gradient(circle, #E91E63, transparent);
}

.nebula-2 {
  width: 600px; height: 600px;
  top: 40%; right: -250px;
  background: radial-gradient(circle, #FFD700, transparent);
  animation-delay: -8s;
  opacity: 0.25;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, -40px); }
}

/* ===== Container ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */
nav {
  position: sticky;
  top: 0;
  padding: 14px 0;
  background: rgba(13, 0, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.brand-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.5);
}

.brand-text {
  font-weight: 800;
  font-size: 19px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

.nav-btn {
  background: linear-gradient(135deg, var(--gold), #FFA500);
  color: var(--purple-deep);
  padding: 9px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.35);
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.55);
}

/* ===== Hero Section ===== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 6px 20px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 50px;
  background: rgba(255, 215, 0, 0.05);
}

h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #FFF3B0 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 32px;
}

/* ===== Content Sections ===== */
section {
  padding: 50px 0;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold);
}

h3 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  margin: 40px 0 16px;
  color: var(--gold-light);
}

h4 {
  font-size: 19px;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--gold);
}

p {
  margin-bottom: 18px;
  color: var(--text-light);
  font-size: 16px;
}

.content-section p,
.content-section li {
  font-size: 16px;
  line-height: 1.85;
}

.content-section ul,
.content-section ol {
  margin: 0 0 24px 24px;
  color: var(--text-light);
}

.content-section li {
  margin-bottom: 10px;
}

.content-section strong {
  color: var(--gold-light);
}

/* ===== Cards ===== */
.card {
  background: linear-gradient(135deg, rgba(74, 20, 140, 0.3), rgba(26, 0, 51, 0.5));
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.card-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

/* ===== Highlight Box ===== */
.highlight {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(106, 27, 154, 0.15));
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 28px 0;
  position: relative;
}

.highlight::before {
  content: '✨';
  position: absolute;
  top: -12px; left: 24px;
  background: var(--purple-deep);
  padding: 0 8px;
  font-size: 20px;
}

/* ===== CTA Section ===== */
.cta-section {
  margin: 60px 0;
  padding: 50px 30px;
  background: linear-gradient(135deg, rgba(74, 20, 140, 0.5), rgba(106, 27, 154, 0.3));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.15), transparent 60%);
  pointer-events: none;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), #FFA500);
  color: var(--purple-deep);
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  transition: all 0.3s;
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.45);
  position: relative;
  margin: 4px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255, 215, 0, 0.65);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  border: 2px solid rgba(255, 215, 0, 0.5);
  transition: all 0.3s;
  margin: 4px;
}

.btn-outline:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--gold);
}

/* ===== Tables ===== */
.table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

th {
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold);
  font-weight: 700;
}

/* ===== Related Pages ===== */
.related-pages {
  margin: 60px 0 30px;
}

.related-pages h3 {
  text-align: center;
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.related-link {
  display: block;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
}

.related-link:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.related-link strong {
  display: block;
  color: var(--gold);
  margin-bottom: 4px;
}

.related-link span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== AdSense Placeholder ===== */
.ad-slot {
  margin: 32px auto;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 215, 0, 0.2);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  max-width: 728px;
}

/* ===== Footer ===== */
footer {
  padding: 50px 0 30px;
  border-top: 1px solid rgba(255, 215, 0, 0.15);
  text-align: center;
  background: rgba(13, 0, 32, 0.5);
  margin-top: 60px;
}

.footer-links {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0 16px;
}

.footer-links a {
  color: var(--gold);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover { text-decoration: underline; }

.copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .nav-links { gap: 12px; }
  .nav-links a:not(.nav-btn) { display: none; }
  .hero { padding: 50px 0 40px; }
  section { padding: 30px 0; }
  .card { padding: 22px; }
  .cta-section { padding: 36px 22px; }
  .container { padding: 0 18px; }
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Sprint W — Site Header + Nav (refined v2)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 26px;
  background: linear-gradient(180deg, rgba(26, 0, 51, 0.95), rgba(15, 5, 40, 0.85));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

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

.site-header .back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 50%;
  color: var(--gold);
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  transition: all 0.2s;
}

.site-header .back-btn:hover {
  background: rgba(255, 215, 0, 0.25);
  transform: translateX(-2px);
}

.site-header .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.5px;
  transition: transform 0.2s;
}
.site-header .logo:hover { transform: scale(1.02); }

.site-header .logo::before {
  content: '';
  display: inline-block;
  width: 34px;
  height: 34px;
  background-image: url('/icon-192.png');
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.site-header .main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-header .main-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 50px;
  transition: all 0.2s;
}

.site-header .main-nav a:hover {
  background: rgba(255, 215, 0, 0.14);
  color: var(--gold);
}

.site-header .main-nav .cta-download {
  margin-left: 8px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: var(--purple-deep) !important;
  font-weight: 800;
  padding: 10px 20px;
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.35);
}

.site-header .main-nav .cta-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 215, 0, 0.5);
  background: linear-gradient(135deg, #FFD700, #FF9000) !important;
  color: var(--purple-deep) !important;
}

@media (max-width: 700px) {
  .site-header { padding: 10px 14px; }
  .site-header .logo { font-size: 15px; gap: 6px; }
  .site-header .logo::before { width: 28px; height: 28px; }
  .site-header .main-nav a { padding: 7px 10px; font-size: 11.5px; }
  .site-header .main-nav .cta-download { padding: 8px 12px; }
  .site-header .main-nav .hide-mobile { display: none; }
}

/* === Collapse unfilled AdSense slots (global) === */
.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.adsbygoogle:not([data-ad-status]) { min-height: 0 !important; }
.ad-container:not(:has(ins[data-ad-status="filled"])) {
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}
