/* Maesotdata – custom refinements on top of Tailwind Play CDN */

:root { --brand: #1d73f0; }

html { -webkit-tap-highlight-color: transparent; }
body { text-rendering: optimizeLegibility; }

/* --- Reusable component classes (used with @apply-style utility names) --- */
.form-inp {
  display: block; width: 100%; padding: .7rem 1rem; font-size: .95rem; line-height: 1.4;
  border-radius: .75rem; background: rgb(248 250 252); border: 1px solid rgb(226 232 240);
  color: rgb(15 23 42); outline: none; transition: border-color .15s, box-shadow .15s;
}
.form-inp:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29,115,240,.18); }
.form-inp::placeholder { color: rgb(148 163 184); }
.dark .form-inp { background: rgb(15 23 42); border-color: rgba(255,255,255,.1); color: #fff; }

.nav-link {
  padding: .5rem .75rem; border-radius: .5rem; font-size: .925rem; font-weight: 500;
  color: rgb(51 65 85); transition: all .18s ease;
}
.dark .nav-link { color: rgb(203 213 225); }
.nav-link:hover { color: var(--brand); background: rgba(29,115,240,.08); }

.icon-btn {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: .625rem; color: rgb(71 85 105); transition: all .18s ease;
}
.dark .icon-btn { color: rgb(203 213 225); }
.icon-btn:hover { background: rgba(100,116,139,.12); color: var(--brand); }

/* Pagination */
.pg-btn {
  min-width: 2.5rem; height: 2.5rem; padding: 0 .5rem;
  display: inline-grid; place-items: center; border-radius: .625rem;
  font-size: .9rem; font-weight: 600; color: rgb(51 65 85);
  background: #fff; border: 1px solid rgb(226 232 240); transition: all .18s ease;
}
.dark .pg-btn { color: rgb(203 213 225); background: rgb(30 41 59); border-color: rgba(255,255,255,.08); }
.pg-btn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.pg-active { background: var(--brand) !important; color: #fff !important; border-color: var(--brand) !important; }
.pg-disabled { opacity: .4; pointer-events: none; }

/* Line clamp helpers */
.clamp-1,.clamp-2,.clamp-3 { display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; }
.clamp-1 { -webkit-line-clamp:1; } .clamp-2 { -webkit-line-clamp:2; } .clamp-3 { -webkit-line-clamp:3; }

/* Card media zoom */
.media-zoom img { transition: transform .5s cubic-bezier(.2,.6,.2,1); }
.group:hover .media-zoom img { transform: scale(1.06); }

/* Category chip */
.cat-chip {
  display:inline-flex; align-items:center; gap:.35rem; padding:.2rem .6rem;
  border-radius:9999px; font-size:.72rem; font-weight:600; color:#fff;
  box-shadow: 0 2px 8px -2px rgba(0,0,0,.25);
}

/* Article prose (single post content) */
.article-body { font-size: 1.06rem; line-height: 2; color: rgb(51 65 85); word-break: break-word; }
.dark .article-body { color: rgb(203 213 225); }
.article-body p { margin: 0 0 1.15rem; }
.article-body h2 { font-family: Kanit, sans-serif; font-size: 1.55rem; font-weight: 600; margin: 2rem 0 1rem; color: rgb(15 23 42); }
.dark .article-body h2 { color: #fff; }
.article-body h3 { font-family: Kanit, sans-serif; font-size: 1.28rem; font-weight: 600; margin: 1.6rem 0 .8rem; color: rgb(15 23 42); }
.dark .article-body h3 { color: #fff; }
.article-body img { border-radius: .9rem; margin: 1.5rem auto; max-width: 100%; height: auto; box-shadow: 0 10px 30px -12px rgba(16,24,40,.25); }
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 0 0 1.15rem 1.4rem; }
.article-body ul { list-style: disc; } .article-body ol { list-style: decimal; }
.article-body li { margin-bottom: .5rem; }
.article-body blockquote {
  border-left: 4px solid var(--brand); padding: .5rem 0 .5rem 1.25rem; margin: 1.5rem 0;
  font-style: italic; color: rgb(71 85 105); background: rgba(29,115,240,.04); border-radius: 0 .5rem .5rem 0;
}
.dark .article-body blockquote { color: rgb(148 163 184); }
.article-body iframe, .article-body video { width: 100%; aspect-ratio: 16/9; border-radius: .9rem; margin: 1.5rem 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.article-body th, .article-body td { border: 1px solid rgb(226 232 240); padding: .6rem .8rem; text-align: left; }
.dark .article-body th, .dark .article-body td { border-color: rgba(255,255,255,.1); }

/* Ken burns hero */
@keyframes kenburns { from { transform: scale(1);} to { transform: scale(1.12);} }
.kenburns { animation: kenburns 12s ease-out infinite alternate; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(100,116,139,.35); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(100,116,139,.55); }

/* Marquee pause on hover */
.marquee-wrap:hover .animate-marquee { animation-play-state: paused; }

/* AOS: don't hide from crawlers if JS fails */
[data-aos] { opacity: 1; }
.aos-init[data-aos] { opacity: 0; }
.aos-init.aos-animate[data-aos] { opacity: 1; }
