/*
Theme Name: รวยไว88 Premium Theme
Theme URI: https://lottoava.org
Author: lottoava
Author URI: https://lottoava.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: lottoava
*/

/* === 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; } }
