/* ==========================================================================
   Kodlnw.com - Siamese Cat & Pastel Orange Theme Stylesheet
   ออกแบบสไตล์ ส้ม-ขาวพาสเทล ตัวหนังสือคมชัด มาสคอตแมววิเชียรมาศ & อุ้งเท้าแมว
   ========================================================================== */

:root {
  /* Pastel Orange & Cream Palette */
  --bg-creamy: #FFFDF9;
  --bg-surface: #FFFFFF;
  --bg-subtle: #FFF7ED;
  --bg-warm-tint: #FFF0E0;

  /* Orange Accents */
  --orange-50: #FFF7ED;
  --orange-100: #FFEDD5;
  --orange-200: #FED7AA;
  --orange-300: #FDBA74;
  --orange-400: #FB923C;
  --orange-500: #F97316;
  --orange-600: #EA580C;
  --orange-700: #C2410C;

  /* Siamese Cat Colors */
  --siamese-cream: #FAF0E4;
  --siamese-seal: #38241B;
  --siamese-seal-light: #52372A;
  --siamese-eye-blue: #38BDF8;
  --siamese-eye-deep: #0284C7;
  --paw-pad-pink: #FFAAA6;
  --paw-pad-orange: #FDBA74;

  /* High Contrast Typography */
  --text-headline: #0F172A; /* Slate 900 - คมชัดลึก */
  --text-body: #1E293B;     /* Slate 800 - ชัดเจน สบายตา */
  --text-muted: #475569;    /* Slate 600 - อ่านง่าย ไม่จาง */
  --text-caption: #64748B;  /* Slate 500 */
  --text-on-dark: #FFFFFF;

  /* Borders & Shadows */
  --border-soft: #FED7AA;
  --border-light: #FEE8D6;
  --shadow-soft: 0 4px 20px -2px rgba(249, 115, 22, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 30px -4px rgba(249, 115, 22, 0.16), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
}

/* Base resets & smooth scrolling */
html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  background-color: var(--bg-creamy);
  color: var(--text-body);
  font-family: 'Prompt', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Background Paw Pattern (Subtle & Elegant) */
.bg-paw-pattern {
  background-color: var(--bg-creamy);
  background-image: radial-gradient(rgba(249, 115, 22, 0.07) 1px, transparent 1px),
                    radial-gradient(rgba(249, 115, 22, 0.04) 1px, var(--bg-creamy) 1px);
  background-size: 36px 36px;
  background-position: 0 0, 18px 18px;
}

/* Custom Selection */
::selection {
  background-color: var(--orange-200);
  color: var(--siamese-seal);
}

/* Typography Enhancements - ตัวหนังสือคมชัดทั้งเข้มและอ่อน */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-headline);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p, li, span {
  color: var(--text-body);
}

.text-high-contrast {
  color: var(--text-headline) !important;
}

.text-soft-contrast {
  color: var(--text-muted) !important;
  font-weight: 500;
}

/* Custom Soft Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--orange-400);
}

/* Floating Animation for Siamese Cat Mascot */
@keyframes floatCat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1.2deg);
  }
}

.animate-float-cat {
  animation: floatCat 5s ease-in-out infinite;
}

/* Tail Wag Animation */
@keyframes tailWag {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(14deg);
  }
}

.animate-tail-wag {
  transform-origin: 190px 240px;
  animation: tailWag 3s ease-in-out infinite;
}

/* Ear Twitch Animation */
@keyframes earTwitch {
  0%, 90%, 100% {
    transform: rotate(0deg);
  }
  93% {
    transform: rotate(-6deg);
  }
  96% {
    transform: rotate(4deg);
  }
}

.animate-ear-twitch {
  transform-origin: 70px 60px;
  animation: earTwitch 6s ease-in-out infinite;
}

/* Paw Print Floating Particle */
.paw-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  animation: floatFadeUp 1.2s ease-out forwards;
}

@keyframes floatFadeUp {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 0.95;
    transform: translate(-50%, -70px) scale(1.1) rotate(15deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -130px) scale(1.3) rotate(30deg);
  }
}

/* Badge Styles */
.badge-pastel {
  background-color: var(--orange-100);
  color: var(--orange-700);
  border: 1px solid var(--orange-200);
  font-weight: 600;
}

.badge-siamese {
  background-color: var(--siamese-cream);
  color: var(--siamese-seal);
  border: 1px solid #E6D5C3;
  font-weight: 600;
}

/* Soft Glow Buttons */
.btn-orange-primary {
  background: linear-gradient(135deg, #FB923C 0%, #F97316 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.35);
  transition: all 0.25s ease;
}

.btn-orange-primary:hover {
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  box-shadow: 0 6px 20px 0 rgba(249, 115, 22, 0.5);
  transform: translateY(-2px);
}

.btn-orange-secondary {
  background-color: #FFFFFF;
  color: var(--orange-700);
  border: 1.5px solid var(--orange-300);
  transition: all 0.25s ease;
}

.btn-orange-secondary:hover {
  background-color: var(--orange-50);
  border-color: var(--orange-500);
  color: var(--orange-600);
  transform: translateY(-2px);
}

/* Toast Notification - Pastel Orange & White Theme (คมชัด สวยงาม เข้ากับธีม) */
#toast {
  visibility: hidden;
  min-width: 280px;
  max-width: 90vw;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #0F172A !important;
  border: 2px solid #FB923C;
  border-radius: 9999px;
  padding: 8px 18px 8px 12px;
  position: fixed;
  z-index: 99999;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(30px);
  opacity: 0;
  box-shadow: 0 14px 35px -4px rgba(249, 115, 22, 0.28), 0 6px 12px -2px rgba(0, 0, 0, 0.06);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 700;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#toast * {
  color: #0F172A !important;
}

#toast .toast-paw {
  background-color: #FFF7ED;
  border: 1.5px solid #FDBA74;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.15);
  flex-shrink: 0;
}

#toast .toast-success-tag {
  background-color: #ECFDF5;
  color: #047857 !important;
  border: 1px solid #A7F3D0;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

#toast.show {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-creamy);
}

::-webkit-scrollbar-thumb {
  background: var(--orange-200);
  border-radius: 6px;
  border: 2px solid var(--bg-creamy);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--orange-400);
}

/* Focus Outlines */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--orange-400);
  outline-offset: 2px;
}
