@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
  --font-kanit: 'Kanit', sans-serif;
  --font-prompt: 'Prompt', sans-serif;
  --bg-dark: #090d16;
  --bg-card: #121927;
  --bg-card-hover: #172236;
  --border-color: #222f46;
  --gold-gradient: linear-gradient(135deg, #ffd700 0%, #ff9900 100%);
  --gold-glow: 0 0 25px rgba(255, 170, 0, 0.25);
  --cyan-glow: 0 0 25px rgba(6, 182, 212, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-prompt), sans-serif;
  background-color: var(--bg-dark);
  color: #e2e8f0;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(30, 58, 138, 0.22) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(217, 119, 6, 0.15) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(15, 23, 42, 0.85) 0px, transparent 100%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-kanit), sans-serif;
}

/* Editorial Highlight Classes */
.kw-primary {
  color: #f8fafc;
  font-weight: 600;
  display: inline;
}

.kw-secondary {
  color: #e2e8f0;
  font-weight: 500;
  display: inline;
}

/* Fallback for text-red-500 */
.text-red-500 {
  color: #f43f5e;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(18, 25, 39, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
}

.glass-nav {
  background: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Key Overview Box */
.snippet-bait-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(30, 41, 59, 0.7) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.snippet-bait-box::before {
  content: 'สาระสำคัญ';
  position: absolute;
  top: -10px;
  right: 18px;
  background: #f59e0b;
  color: #090d16;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  font-family: var(--font-kanit);
}

/* Table of Contents Box */
.toc-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #1e293b;
}

.toc-link {
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
}

.toc-link:hover {
  color: #fbbf24;
  transform: translateX(4px);
}

/* Top Rank Highlights */
.rank-card-1 {
  border: 1.5px solid #eab308 !important;
  box-shadow: 0 4px 35px rgba(234, 179, 8, 0.18);
}

.rank-card-2 {
  border: 1.5px solid #38bdf8 !important;
  box-shadow: 0 4px 25px rgba(56, 189, 248, 0.15);
}

.rank-card-3 {
  border: 1.5px solid #34d399 !important;
  box-shadow: 0 4px 25px rgba(52, 211, 153, 0.15);
}

/* Badges */
.badge-gold {
  background: linear-gradient(135deg, #ca8a04 0%, #eab308 100%);
  color: #000;
  font-weight: 700;
}

.badge-blue {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #fff;
  font-weight: 600;
}

.badge-emerald {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff;
  font-weight: 600;
}

.badge-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #fff;
  font-weight: 600;
}

/* Shimmer / Glow Effect on CTAs */
.btn-shimmer {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(30deg);
  animation: shimmer 4s infinite linear;
}

@keyframes shimmer {
  0% { left: -60%; }
  30% { left: 140%; }
  100% { left: 140%; }
}

/* Star Rating */
.star-filled {
  color: #f59e0b;
}

/* Tab Active Styles */
.filter-tab.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  font-weight: 700;
  border-color: #f59e0b;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.35);
}

/* Accordion Smooth Transition */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, opacity 0.25s ease-out;
  opacity: 0;
}

.accordion-content.open {
  max-height: 850px;
  opacity: 1;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #090d16;
}

::-webkit-scrollbar-thumb {
  background: #1f293d;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Pros and Cons */
.pro-item::before {
  content: "✓";
  color: #10b981;
  font-weight: bold;
  margin-right: 8px;
}

.con-item::before {
  content: "✕";
  color: #ef4444;
  font-weight: bold;
  margin-right: 8px;
}

/* E-E-A-T Author Box */
.author-badge-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
