/*
Theme Name: AnimeHub Reclone
Theme URI: https://ramruai88.org
Author: ramruai88
Author URI: https://ramruai88.org
Description: Premium Lottery Website Theme - Red Black Gold | Tailwind CSS
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: ramruai88
*/

/* === GLOBAL BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #0B0B0F;
  --bg-surface: #141418;
  --bg-elevated: #1C1C23;
  --accent-red: #E50914;
  --accent-red-hover: #FF1A24;
  --accent-gold: #D4AF37;
  --accent-gold-light: #F5D06E;
  --accent-gold-dark: #A07D1C;
  --text-primary: #F0F0F0;
  --text-secondary: #A0A0B0;
  --text-muted: #606070;
  --border-subtle: #2A2A35;
  --font-heading: 'Prompt', 'Noto Sans Thai', sans-serif;
  --font-body: 'Sarabun', 'Noto Sans Thai', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-width: 320px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* === ANIMATIONS === */
@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px #E5091430, 0 0 60px #E5091410; }
  50%       { box-shadow: 0 0 40px #E5091460, 0 0 100px #E5091425; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0B0B0F; }
::-webkit-scrollbar-thumb { background: #D4AF3750; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #D4AF37; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* === UTILITY CLASSES === */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === LAYOUT === */
.container-site {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 640px) {
  .container-site {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* === GRADIENT GOLD TEXT === */
.text-gradient-gold {
  background: linear-gradient(90deg, #A07D1C, #D4AF37, #F5D06E, #D4AF37, #A07D1C);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* === GLOW EFFECTS === */
.glow-red {
  box-shadow: 0 0 20px #E5091440, 0 0 60px #E5091415;
}
.glow-red-hover:hover {
  box-shadow: 0 0 40px #E5091460, 0 0 100px #E5091425;
}
.glow-gold {
  box-shadow: 0 0 20px #D4AF3740;
}

/* === CARD BORDER GOLD === */
.card-gold-border {
  border: 1px solid #2A2A35;
  box-shadow: 0 4px 20px #00000060;
  transition: all 0.3s ease;
}
.card-gold-border:hover {
  border-color: #D4AF3780;
  box-shadow: 0 8px 40px #D4AF3720;
}

/* === BUTTON STYLES === */
.btn-red {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-red);
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
  letter-spacing: 0.02em;
  box-shadow: 0 0 30px #E5091440;
}
.btn-red:hover {
  background: var(--accent-red-hover);
  transform: scale(1.03);
  box-shadow: 0 0 50px #E5091460;
  color: white;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
}
.btn-gold:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* === SECTION TITLES === */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

/* === BADGE === */
.badge-red {
  display: inline-block;
  background: var(--accent-red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-gold {
  display: inline-block;
  background: linear-gradient(90deg, #A07D1C, #D4AF37, #F5D06E, #D4AF37, #A07D1C);
  background-size: 200%;
  animation: shimmer 3s linear infinite;
  color: #0B0B0F;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.05em;
}

/* === SEARCH INPUT === */
.search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px 56px 16px 24px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--accent-gold); }

/* === COMPARISON TABLE === */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #D4AF3730;
}
.comparison-table th {
  background: #1C1C23;
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #D4AF3740;
}
.comparison-table td {
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 15px;
  vertical-align: middle;
  transition: background 0.2s;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover td {
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent-gold);
}
.comparison-table td:first-child { font-weight: 600; }

/* === CATEGORY TABS === */
.cat-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  padding: 14px 24px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.cat-tab:hover {
  color: var(--text-primary);
  border-bottom-color: var(--border-subtle);
}
.cat-tab.active {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
}

/* === PAGINATION === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.page-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.page-btn:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.page-btn.active { background: var(--accent-red); border-color: var(--accent-red); color: white; }

/* === FOOTER === */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* GLOBAL ALIGNMENT MASTER — v1.0 | 2026-03-31 */
/* ============================================================
   GLOBAL ALIGNMENT MASTER — Centered Layout v1.0
   Injected by designer-ui | 2026-03-31
   ============================================================ */

/* ── ROOT: ทุก wrapper จัดกึ่งกลาง ── */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  overflow-x: hidden !important;
}

/* ── MASTER CONTAINER CENTERING ── */
.container,
.wp-container,
.site-content,
.entry-content,
.page-content,
.main-content,
[class*="container"],
[class*="wrapper"],
[class*="inner"],
[class*="layout"],
.content-area,
#content,
#main,
#primary,
#secondary,
.row,
.columns,
.col {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1440px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ── FLEX CENTERING: CORE SECTIONS ── */
.site-header,
.site-footer,
header,
footer,
nav,
.navigation,
.menu-wrapper,
.header-inner,
.footer-inner,
.footer-container,
.footer-widgets,
.site-branding {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  max-width: 1440px !important;
  box-sizing: border-box !important;
}

/* ── PAGE / POST BODY CENTERING ── */
.site-main,
.main-page-content,
.page-header,
.entry-header,
.post-header,
.archive-header,
section,
article,
.section,
.block,
.wp-block-group,
.wp-block-columns,
.alignfull,
.alignwide {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1440px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ── TEXT ALIGNMENT ── */
.entry-title,
.page-title,
.site-title,
.tagline,
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
  text-align: center !important;
}

/* ── LOTTERY TABLE CENTERING ── */
table,
.lottery-table,
.lotto-table,
.result-table,
.results-table,
[class*="lottery"],
[class*="lotto"],
[class*="result"],
[id*="lottery"],
[id*="lotto"] {
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  max-width: 900px !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

table td,
table th {
  text-align: center !important;
  vertical-align: middle !important;
}

/* ── BUTTONS & CTA CENTERING ── */
.wp-block-buttons,
.button-group,
.btn-group,
.cta-section,
.cta-wrapper,
[class*="button-wrap"],
[class*="btn-wrap"],
[class*="cta"] {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}

/* ── IMAGES CENTERING ── */
img,
figure,
.wp-block-image,
.featured-image,
.post-thumbnail,
.site-logo,
[class*="image-wrap"],
[class*="img-wrap"] {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100% !important;
  height: auto !important;
}

/* ── HERO / BANNER CENTERING ── */
.hero,
.hero-section,
.banner,
.banner-section,
.home-hero,
.page-hero,
[class*="hero"],
[class*="banner"],
[class*="slider"],
.wp-block-cover,
.wp-block-cover__inner-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ── CARDS & GRID CENTERING ── */
.cards,
.card-grid,
.post-grid,
.articles-grid,
[class*="card-wrap"],
[class*="grid"],
[class*="cards"],
.wp-block-query,
.wp-block-post-template {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 20px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1440px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ── FOOTER FULL CENTERING ── */
.site-footer > *,
footer > * {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1440px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

/* ── CONTACT / FORM CENTERING ── */
form,
.wpcf7,
.contact-form,
.contact-wrapper,
[class*="contact"],
[class*="form-wrap"] {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 760px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ── NAVIGATION MENU CENTERING ── */
.nav-menu,
.main-navigation ul,
.primary-menu,
#site-navigation ul,
.menu-primary-container ul {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  list-style: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  width: 100% !important;
}

/* ── WIDGET AREAS CENTERING ── */
.widget,
.widget-area,
.sidebar,
aside,
[class*="widget"] {
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

/* ── RESPONSIVE: ไม่แตกบนมือถือ ── */
@media (max-width: 768px) {
  .container,
  [class*="container"],
  [class*="wrapper"],
  section,
  article,
  .hero,
  .banner,
  table {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
  }

  .cards,
  .card-grid,
  [class*="grid"],
  [class*="cards"],
  .wp-block-post-template {
    flex-direction: column !important;
    align-items: center !important;
  }

  h1, h2, h3 {
    text-align: center !important;
  }
}

/* ── OVERRIDE ALL FLOATS ── */
[class*="float-left"],
[class*="float-right"],
[class*="pull-left"],
[class*="pull-right"],
.alignleft,
.alignright {
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
}
/* END GLOBAL ALIGNMENT MASTER */
