/* fun88-slot — Minimal Clean Layout with Kanit */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1a0a0a;
  --secondary: #2d1010;
  --accent: #e63946;
  --accent-light: #ff6b6b;
  --bg: #120808;
  --text: #f0e0e0;
  --text-muted: #a08080;
  --card-bg: #1e1010;
  --border: #3a1a1a;
  --font: 'Kanit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent); }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(18,8,8,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent-light); }
.nav-links .cta-btn {
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
}
.nav-links .cta-btn:hover { background: var(--accent-light); color: #fff; }

/* MOBILE NAV */
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* HERO */
.hero {
  min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(230,57,70,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(255,107,107,0.1) 0%, transparent 50%);
}
.hero-inner {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-inner h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero-inner h1 span { color: var(--accent); }
.hero-inner p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 650px;
  margin-left: auto; margin-right: auto;
}
.hero-img {
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
  margin: 2rem auto;
  display: block;
  box-shadow: 0 20px 60px rgba(230,57,70,0.2);
}

/* CTA BUTTON */
.cta-btn, .cta-btn-lg {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230,57,70,0.4);
  color: #fff;
}
.cta-btn-lg { padding: 1rem 3rem; font-size: 1.2rem; }

/* SECTIONS */
.section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-title span { color: var(--accent); }
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.card p { color: var(--text-muted); font-size: 0.95rem; }
.card-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* TABS */
.tabs {
  margin: 2rem 0;
}
.tab-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}
.tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.6rem 1.2rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: all 0.3s;
}
.tab-btn.active, .tab-btn:hover {
  color: var(--accent);
  background: rgba(230,57,70,0.1);
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* COMPARISON TABLE */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}
.compare-table th, .compare-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table th {
  background: var(--secondary);
  color: var(--accent-light);
  font-weight: 700;
}
.compare-table tr:hover { background: rgba(230,57,70,0.05); }
.compare-table .highlight {
  background: rgba(230,57,70,0.1);
  font-weight: 700;
}
.check { color: #4caf50; }
.cross { color: #e63946; }

/* RANKING */
.ranking-list {
  list-style: none;
  margin: 2rem 0;
}
.ranking-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  transition: transform 0.2s, border-color 0.2s;
}
.ranking-item:hover {
  transform: translateX(6px);
  border-color: var(--accent);
}
.rank-badge {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  flex-shrink: 0;
}
.rank-1 { background: linear-gradient(135deg, #ffd700, #ffb300); color: #1a0a0a; }
.rank-2 { background: linear-gradient(135deg, #c0c0c0, #9e9e9e); color: #1a0a0a; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #a0522d); color: #fff; }
.rank-n { background: var(--secondary); color: var(--text-muted); }
.ranking-info h4 { font-size: 1.05rem; font-weight: 700; }
.ranking-info p { color: var(--text-muted); font-size: 0.85rem; }

/* ARTICLE */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.article-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.article-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--accent-light);
}
.article-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}
.article-content p {
  margin-bottom: 1.2rem;
  color: var(--text);
}
.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.article-content li { margin-bottom: 0.5rem; }
.article-img {
  width: 100%;
  border-radius: 10px;
  margin: 2rem 0;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* ABOUT PAGE */
.about-section { padding: 5rem 2rem; max-width: 900px; margin: 0 auto; }
.about-section h2 {
  font-size: 1.8rem; font-weight: 700; margin: 2.5rem 0 1rem; color: var(--accent-light);
}
.about-section p { margin-bottom: 1rem; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.about-stat {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
}
.about-stat .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
}
.about-stat .label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* DIVIDER */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 3rem 0;
}

/* FOOTER */
.footer {
  background: var(--primary);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-links {
  display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent-light); }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(18,8,8,0.98);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
  .hero-inner h1 { font-size: 2rem; }
  .section { padding: 3rem 1rem; }
  .card-grid { grid-template-columns: 1fr; }
  .compare-table { font-size: 0.8rem; }
  .compare-table th, .compare-table td { padding: 0.6rem; }
  .ranking-item { flex-direction: column; text-align: center; }
}
