/* ==============================
   macau-betting.com - Main Stylesheet
   Anti-slop design: dark luxury gaming theme
   ============================== */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  background: #0a0e1a;
  color: #e8eaf0;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }

/* === HEADER === */
.site-header {
  background: linear-gradient(135deg, #0a0e1a 0%, #141b2d 100%);
  border-bottom: 1px solid rgba(212,175,55,0.15);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo { font-size: 1.5rem; font-weight: 900; color: #d4af37; letter-spacing: 0.05em; }
.logo span { color: #fff; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 0.95rem; color: #a0a8be; transition: color 0.25s; }
.nav-links a:hover { color: #d4af37; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: #d4af37; transition: 0.3s; }

/* === HERO === */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #0a0e1a 0%, #0d1526 50%, #0a0e1a 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('/images/hero.png') center/cover no-repeat;
  opacity: 0.18;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(212,175,55,0.08) 0%, transparent 70%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 700px;
}
.hero-badge {
  display: inline-block;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.3);
  color: #d4af37;
  font-size: 0.8rem; font-weight: 600;
  padding: 4px 14px; border-radius: 20px;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { color: #d4af37; font-style: normal; }
.hero p { font-size: 1.1rem; color: #8892a8; margin-bottom: 36px; max-width: 560px; }
.hero-cta {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.btn-primary {
  background: linear-gradient(135deg, #d4af37 0%, #c49b2a 100%);
  color: #0a0e1a; font-weight: 700; font-size: 1rem;
  padding: 14px 32px; border-radius: 8px;
  border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,175,55,0.3); }
.btn-outline {
  background: transparent; color: #d4af37;
  font-weight: 600; font-size: 1rem;
  padding: 13px 30px; border-radius: 8px;
  border: 1px solid rgba(212,175,55,0.4);
  cursor: pointer; transition: all 0.25s;
  display: inline-block;
}
.btn-outline:hover { background: rgba(212,175,55,0.1); border-color: #d4af37; }

/* === STATS BAR === */
.stats-bar {
  background: linear-gradient(90deg, #111827, #1a2235);
  border-top: 1px solid rgba(212,175,55,0.1);
  border-bottom: 1px solid rgba(212,175,55,0.1);
  padding: 24px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 900; color: #d4af37; }
.stat-label { font-size: 0.85rem; color: #6b7280; margin-top: 4px; }

/* === FEATURES === */
.features-section { background: #0d1526; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { color: #fff; margin-bottom: 12px; }
.section-header p { color: #6b7280; font-size: 1.05rem; }
.section-header .accent-line {
  width: 60px; height: 3px; background: #d4af37;
  margin: 16px auto 0; border-radius: 2px;
}
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.feature-card {
  background: linear-gradient(145deg, #141b2d, #111827);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 36px 28px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.4); border-color: rgba(212,175,55,0.2); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 20px;
}
.feature-card h3 { color: #e8eaf0; margin-bottom: 10px; }
.feature-card p { color: #6b7280; font-size: 0.92rem; }

/* === ARTICLES === */
.articles-section { background: #0a0e1a; }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.article-card {
  background: #111827; border-radius: 16px;
  overflow: hidden; border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
.article-thumb {
  height: 200px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #141b2d, #1a2235);
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.article-card:hover .article-thumb img { transform: scale(1.05); }
.article-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-tag {
  font-size: 0.75rem; font-weight: 600; color: #d4af37;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}
.article-card h3 { color: #e8eaf0; margin-bottom: 10px; font-size: 1.1rem; line-height: 1.4; }
.article-card p { color: #6b7280; font-size: 0.88rem; flex: 1; margin-bottom: 16px; }
.article-meta { font-size: 0.8rem; color: #4b5563; }
.article-link { color: #d4af37; font-weight: 600; font-size: 0.88rem; margin-top: 12px; display: inline-flex; align-items: center; gap: 4px; }
.article-link::after { content: '→'; }

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, #d4af37 0%, #b8941f 50%, #d4af37 100%);
  padding: 80px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(0,0,0,0.04) 20px, rgba(0,0,0,0.04) 40px);
}
.cta-banner h2 { color: #0a0e1a; font-size: 2rem; margin-bottom: 12px; }
.cta-banner p { color: rgba(10,14,26,0.7); font-size: 1.05rem; margin-bottom: 28px; }
.btn-dark {
  background: #0a0e1a; color: #d4af37; font-weight: 700;
  padding: 15px 36px; border-radius: 8px; border: none;
  font-size: 1rem; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

/* === FOOTER === */
.site-footer {
  background: #070b14; border-top: 1px solid rgba(212,175,55,0.1);
  padding: 48px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: #4b5563; font-size: 0.88rem; line-height: 1.6; }
.footer-col h4 { color: #d4af37; font-size: 0.9rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: #6b7280; font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: #d4af37; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; text-align: center; color: #374151; font-size: 0.82rem; }

/* === PAGE ARTICLE === */
.page-header {
  background: linear-gradient(135deg, #0d1526, #0a0e1a);
  padding: 60px 0 50px;
  border-bottom: 1px solid rgba(212,175,55,0.1);
}
.page-header .breadcrumb { font-size: 0.82rem; color: #4b5563; margin-bottom: 16px; }
.page-header h1 { color: #fff; }
.page-header .page-desc { color: #6b7280; margin-top: 12px; font-size: 1.05rem; }
.article-content { max-width: 800px; margin: 0 auto; padding: 60px 20px; }
.article-content h2 { color: #e8eaf0; margin: 36px 0 14px; padding-left: 16px; border-left: 3px solid #d4af37; }
.article-content h3 { color: #d4af37; margin: 28px 0 12px; }
.article-content p { color: #9ca3af; margin-bottom: 18px; font-size: 1.02rem; line-height: 1.85; }
.article-content ul { list-style: none; margin: 0 0 18px 0; }
.article-content ul li { color: #9ca3af; padding: 6px 0 6px 20px; position: relative; }
.article-content ul li::before { content: '◆'; color: #d4af37; font-size: 0.6rem; position: absolute; left: 0; top: 10px; }
.article-content .highlight-box {
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(212,175,55,0.03));
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 12px; padding: 24px; margin: 28px 0;
}
.article-content blockquote {
  background: #111827; border-left: 4px solid #d4af37;
  padding: 16px 24px; margin: 24px 0;
  border-radius: 0 10px 10px 0; color: #9ca3af;
}
.article-content img { border-radius: 12px; margin: 24px 0; }
.article-image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.article-image-grid img { border-radius: 12px; margin: 0; }

/* === LOGO / ARTICLE LAYOUT / HOME EXTRA === */
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.nav-links a.is-active { color: #d4af37; }
.article-page { padding: 28px 0 64px; }
.article-page .breadcrumb { font-size: 0.82rem; color: #6b7280; margin: 12px 0 24px; }
.article-page .breadcrumb a { color: #d4af37; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.article-layout .article-content { max-width: none; margin: 0; padding: 0; }
.article-source { font-size: 0.85rem; color: #6b7280; margin-bottom: 18px; }
.article-aside, .related-aside {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 22px;
}
.article-aside { position: sticky; top: 88px; }
.article-aside h2, .related-aside h2 {
  font-size: 1.05rem;
  color: #d4af37;
  margin: 0 0 14px;
  padding: 0;
  border: none;
}
.related-list { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; }
.related-list li { padding: 0; }
.article-content .related-list li::before { content: none; }
.related-list a {
  display: block;
  color: #e8eaf0;
  font-size: 0.9rem;
  line-height: 1.45;
  padding: 10px 12px;
  background: #0d1526;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
}
.related-list a:hover { color: #d4af37; border-color: rgba(212,175,55,0.3); }
.back-cat { margin-top: 28px; }
.process-section, .leagues-section, .responsible-section { background: #0d1526; }
.leagues-section { background: #0a0e1a; }
.process-grid, .leagues-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.responsible-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.process-card, .league-chip, .responsible-card {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 24px;
}
.process-card h3, .league-chip h3, .responsible-card h3 { color: #e8eaf0; margin-bottom: 8px; }
.process-card p, .league-chip p, .responsible-card p { color: #6b7280; font-size: 0.9rem; }
.process-num { color: #d4af37; font-weight: 800; font-size: 1.2rem; margin-bottom: 8px; }

/* === ANIMATIONS === */
@keyframes fadeInUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: 2rem; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .process-grid, .leagues-grid, .responsible-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-image-grid { grid-template-columns: 1fr; }
  .process-grid, .leagues-grid, .responsible-grid { grid-template-columns: 1fr; }
}
