/*
Theme Name: TIDMUN789 Premium
Theme URI: https://tidmun789.com/
Author: TIDMUN789
Description: ธีมหน้าแรกโทนแดง ดำ และทอง สำหรับเว็บไซต์กีฬาและความบันเทิงออนไลน์
Version: 1.0.6
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: tidmun789
*/

:root {
  --red: #ef261f;
  --deep-red: #580500;
  --wine: #240100;
  --gold: #ffd76a;
  --gold-2: #f6a800;
  --ink: #111318;
  --paper: #fffaf5;
  --muted: #6e6e73;
  --line: rgba(255, 205, 83, .42);
  --radius: 18px;
  --shadow: 0 16px 40px rgba(49, 0, 0, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #170100;
  color: #fff;
  font-family: "Noto Sans Thai", Tahoma, Arial, sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.site-shell { overflow: hidden; background: radial-gradient(circle at 50% -10%, #721009 0, #260200 33%, #110101 72%); }
.wrap { width: min(1480px, calc(100% - 32px)); margin-inline: auto; }

.topbar { border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(29,0,0,.92); }
.topbar .wrap { min-height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; color: #f0cf9d; }
.topbar strong { color: var(--gold); }
.quick-links { display: flex; align-items: center; gap: 18px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(20,0,0,.94); backdrop-filter: blur(14px); border-bottom: 1px solid #8f1b11; }
.header-main { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 235px; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 12px; color: #160000; background: linear-gradient(145deg,#fff3a9,#e89808); font-size: 26px; box-shadow: 0 0 22px rgba(255,190,29,.35); }
.brand-copy b { display: block; color: #fff4c9; font-size: clamp(24px,3vw,34px); font-style: italic; line-height: 1; letter-spacing: -1px; text-shadow: 0 2px 14px #ff9d00; }
.brand-copy small { color: var(--gold); font-size: 10px; letter-spacing: 1.1px; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 13px 14px; border-radius: 10px; font-weight: 700; color: #f9eee8; font-size: 14px; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: #210000; background: linear-gradient(135deg,#fff4b5,#ffbd2e); }
.header-actions { display: flex; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; font-weight: 800; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { color: #2e0800; background: linear-gradient(#fff8c9,#ffb813); box-shadow: 0 8px 24px rgba(255,177,0,.28), inset 0 0 0 1px #fff5af; }
.btn-red { color: #fff; background: linear-gradient(135deg,#ff3b29,#c80404); box-shadow: 0 8px 24px rgba(244,21,11,.28); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #3d0704; color: #fff; border-radius: 10px; font-size: 22px; }

.hero { position: relative; min-height: 620px; border-bottom: 1px solid var(--line); background: #1c0201 url('assets/hero-tidmun789-text.webp') center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(12,0,0,.1),rgba(20,0,0,.02) 70%,rgba(10,0,0,.2)); }
.hero .wrap { position: relative; z-index: 1; min-height: 620px; }
.hero-copy { position:absolute; left:0; bottom:34px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--gold); font-weight: 800; letter-spacing: .5px; }
.hero h1 { margin: 12px 0 10px; max-width: 800px; font-size: clamp(48px,6vw,88px); line-height: 1.05; color: #fff6d2; text-shadow: 0 4px 28px rgba(0,0,0,.9); }
.hero h1 span { color: var(--gold); }
.hero p { max-width: 690px; margin: 0 0 25px; font-size: clamp(18px,2vw,24px); color: #f8e7dc; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust-pills span { padding: 9px 14px; border: 1px solid rgba(255,216,114,.4); border-radius: 999px; background: rgba(0,0,0,.45); color: #ffe8ae; font-size: 13px; }
.jackpot { justify-self: end; width: min(390px,100%); padding: 22px; border: 1px solid #ee5a2b; border-radius: 20px; background: linear-gradient(180deg,rgba(105,4,0,.92),rgba(32,0,0,.93)); box-shadow: 0 20px 60px rgba(0,0,0,.42); text-align: center; }
.jackpot .crown { color: var(--gold); font-size: 46px; line-height: 1; }
.jackpot h2 { margin: 2px 0; color: #fff4c7; font-size: 30px; }
.jackpot-amount { margin: 12px 0 18px; padding: 15px; border: 2px solid #ffcd4e; border-radius: 13px; background: #3a0200; color: #ffe16e; font-size: clamp(26px,4vw,42px); font-weight: 900; letter-spacing: 1px; box-shadow: inset 0 0 24px rgba(255,64,0,.45), 0 0 20px rgba(255,191,0,.22); }
.jackpot-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(255,255,255,.12); }
.jackpot-grid div { padding: 15px 7px 0; font-size: 12px; color: #f5d6c5; }
.jackpot-grid b { display: block; color: var(--gold); font-size: 20px; }

.category-strip { margin-top: -42px; position: relative; z-index: 3; padding-bottom: 22px; }
.category-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; }
.category-card { min-height: 190px; position: relative; overflow: hidden; border: 1px solid #d88d1c; border-radius: 16px; background-size: cover; background-position: center; box-shadow: var(--shadow); }
.category-card::before { content:""; position:absolute; inset:0; background: linear-gradient(0deg,rgba(24,0,0,.98) 4%,rgba(50,0,0,.08) 80%); }
.category-card:nth-child(1), .category-card:nth-child(6) { background-image:url('assets/sports-tidmun789.webp'); }
.category-card:nth-child(2), .category-card:nth-child(4) { background-image:url('assets/hero-tidmun789.webp'); }
.category-card:nth-child(3), .category-card:nth-child(5) { background-image:url('assets/promo-tidmun789.webp'); }
.category-card:nth-child(2) { background-position: 78% center; }
.category-card:nth-child(3) { background-position: 68% center; }
.category-card:nth-child(4) { background-position: 95% center; }
.category-card:nth-child(5) { background-position: 75% center; }
.category-card:nth-child(6) { background-position: 63% center; }
.category-content { position:absolute; inset:auto 10px 12px; z-index:1; text-align:center; }
.category-content strong { display:block; font-size:21px; line-height:1.1; }
.category-content small { color:#f5d5c4; }
.category-content .mini { display:inline-flex; margin-top:9px; padding:6px 15px; border-radius:99px; color:#2c0600; background:linear-gradient(#fff3a7,#ffb810); font-size:12px; font-weight:900; }

.signup-banner { position:relative; overflow:hidden; min-height:170px; margin:0 auto 24px; border:1px solid #f2a01c; border-radius:18px; background:url('assets/promo-tidmun789-text.webp') center/cover; box-shadow:var(--shadow); }
.signup-banner::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(40,0,0,.04),rgba(40,0,0,.02) 70%,rgba(40,0,0,.12)); }
.signup-copy { position:relative; z-index:1; min-height:170px; padding:28px 44px; display:flex; align-items:flex-end; justify-content:flex-end; gap:22px; }
.signup-copy h2 { margin:0; max-width:800px; font-size:clamp(30px,4vw,52px); line-height:1.12; color:#fff4bd; }
.signup-copy h2 span { font-size:1.25em; color:#fff; }

.light-zone { background:#f5f2f0; color:var(--ink); padding:30px 0 40px; }
.content-grid { display:grid; grid-template-columns:1.7fr .85fr; gap:20px; }
.panel { background:#fff; border:1px solid #eaded9; border-radius:var(--radius); box-shadow:0 10px 30px rgba(50,0,0,.08); overflow:hidden; }
.panel-head { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:0 20px; border-bottom:1px solid #f0e2dc; }
.panel-head h2 { margin:0; font-size:22px; }
.panel-head a { color:var(--red); font-size:13px; font-weight:800; }
.news-body { padding:16px; }
.latest-post-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.latest-post-card { display:flex; min-width:0; flex-direction:column; overflow:hidden; border:1px solid #eee2df; border-radius:14px; background:#fff; box-shadow:0 8px 22px rgba(50,0,0,.08); transition:transform .2s ease,box-shadow .2s ease; }
.latest-post-card:hover { transform:translateY(-3px); box-shadow:0 12px 28px rgba(50,0,0,.14); }
.latest-post-thumb { position:relative; display:block; aspect-ratio:16/9; overflow:hidden; background:linear-gradient(135deg,#4e0703,#c82318); }
.latest-post-thumb img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
.latest-post-card:hover .latest-post-thumb img { transform:scale(1.04); }
.latest-post-category { position:absolute; left:10px; bottom:10px; padding:4px 9px; border-radius:7px; color:#fff; background:var(--red); box-shadow:0 3px 10px rgba(0,0,0,.22); font-size:11px; font-weight:800; }
.latest-post-content { display:flex; flex:1; flex-direction:column; padding:13px 14px 14px; }
.latest-post-content h3 { margin:0 0 7px; font-size:16px; line-height:1.42; }
.latest-post-content h3 a { color:var(--ink); }
.latest-post-content p { margin:0 0 11px; color:#6f6763; font-size:13px; line-height:1.55; }
.latest-post-link { margin-top:auto; color:var(--red); font-size:13px; font-weight:800; }
.latest-post-empty { margin:0; padding:28px; text-align:center; color:var(--muted); }
.score-tabs { padding:13px 16px; display:flex; gap:8px; border-bottom:1px solid #efe3df; }
.score-tabs span { padding:7px 12px; border-radius:99px; background:#f6efec; font-size:12px; font-weight:700; }
.score-tabs .active { color:#fff; background:var(--red); }
.match { display:grid; grid-template-columns:52px 1fr auto; align-items:center; gap:10px; padding:17px 16px; border-bottom:1px solid #f0e5e1; font-size:13px; }
.match time { font-weight:900; }
.match strong { display:block; }
.match em { font-style:normal; color:#fff; background:var(--red); padding:5px 9px; border-radius:7px; font-size:11px; }

.provider-panel, .promo-panel { margin-top:20px; }
.providers { display:grid; grid-template-columns:repeat(9,1fr); gap:10px; padding:16px; }
.provider { min-height:66px; display:grid; place-items:center; padding:10px; border-radius:11px; background:#080808; color:#fff; border:1px solid #2b2b2b; text-align:center; font-weight:900; font-size:12px; letter-spacing:.4px; }
.providers .hot { color:var(--gold); }
.promo-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; padding:16px; }
.promo-card { position:relative; overflow:hidden; min-height:175px; padding:20px; border-radius:14px; background:url('assets/promo-tidmun789.webp') center/cover; color:#fff; }
.promo-card::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(62,0,0,.95),rgba(90,0,0,.38)); }
.promo-card > * { position:relative; z-index:1; }
.promo-card h3 { margin:0 0 3px; font-size:22px; line-height:1.2; }
.promo-card b { color:var(--gold); font-size:30px; }
.promo-card p { margin:6px 0 14px; font-size:13px; }
.promo-card .mini { display:inline-block; padding:6px 14px; border-radius:99px; background:var(--red); font-size:12px; font-weight:800; }

.benefits { border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:#2a0201; }
.benefit-grid { min-height:105px; display:grid; grid-template-columns:repeat(4,1fr); }
.benefit { display:flex; align-items:center; justify-content:center; gap:14px; padding:18px; text-align:left; border-right:1px solid rgba(255,255,255,.08); }
.benefit:last-child { border:0; }
.benefit-icon { color:var(--gold); font-size:34px; }
.benefit strong { display:block; color:#fff3c7; }
.benefit small { color:#d9bab1; }

.site-footer { background:#0d1015; color:#bbb; padding:40px 0 18px; }
.footer-grid { display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:28px; }
.footer-logo { color:#fff1be; font-size:32px; font-weight:900; font-style:italic; }
.footer-logo span { color:var(--gold); }
.site-footer h3 { color:#fff; font-size:16px; margin:0 0 12px; }
.site-footer ul { list-style:none; margin:0; padding:0; }
.site-footer li { margin:7px 0; }
.site-footer a:hover { color:var(--gold); }
.socials { display:flex; gap:9px; margin-top:16px; }
.socials a { width:36px; height:36px; display:grid; place-items:center; border-radius:50%; background:#252830; color:#fff; font-weight:900; }
.copyright { margin-top:30px; padding-top:16px; border-top:1px solid #25272b; display:flex; justify-content:space-between; gap:14px; font-size:12px; }

@media (max-width:1180px) {
  .main-nav { position:absolute; top:100%; left:16px; right:16px; display:none; padding:12px; background:#210100; border:1px solid var(--line); border-radius:14px; }
  .main-nav.open { display:block; }
  .main-nav ul { flex-direction:column; align-items:stretch; }
  .menu-toggle { display:block; }
  .category-grid { grid-template-columns:repeat(3,1fr); }
  .providers { grid-template-columns:repeat(5,1fr); }
}

.casino-guide-panel { margin-top:20px; overflow:hidden; }
.casino-guide-head { padding:25px 28px; color:#fff; background:linear-gradient(120deg,#350000 0%,#8f0d08 62%,#d3291f 100%); }
.casino-guide-head span { display:inline-block; margin-bottom:8px; padding:5px 10px; border:1px solid rgba(255,220,137,.45); border-radius:99px; color:#ffe29a; font-size:12px; font-weight:800; }
.casino-guide-head h2 { margin:0 0 8px; color:#fff; font-size:28px; line-height:1.3; }
.casino-guide-head p { max-width:850px; margin:0; color:#f9e9e6; line-height:1.7; }
.casino-guide-content { padding:24px 28px 28px; color:#4d4440; font-size:15px; line-height:1.85; }
.casino-guide-content > p { margin:0 0 20px; }
.casino-guide-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.casino-guide-grid > div { padding:18px; border:1px solid #eee2df; border-radius:13px; background:#fffaf8; }
.casino-guide-grid h3 { margin:0 0 8px; color:#3f0a07; font-size:18px; }
.casino-guide-grid p { margin:0; }
.casino-guide-content a { color:var(--red); font-weight:800; text-decoration:underline; text-decoration-color:rgba(220,35,26,.3); text-underline-offset:3px; }
.casino-guide-note { margin-top:18px; padding:17px 19px; border-left:4px solid var(--gold); border-radius:0 12px 12px 0; background:#fbf6ea; }
.casino-guide-note strong { color:#4b160b; font-size:17px; }
.casino-guide-note p { margin:5px 0 0; }

@media (max-width:900px) {
  .topbar, .header-actions .login { display:none; }
  .hero, .hero .wrap { min-height:560px; }
  .category-strip { margin-top:18px; }
  .content-grid { grid-template-columns:1fr; }
  .casino-guide-grid { grid-template-columns:1fr; }
  .latest-post-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .promo-grid { grid-template-columns:repeat(2,1fr); }
  .benefit-grid { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:620px) {
  .wrap { width:min(100% - 20px,1480px); }
  .brand { min-width:0; }
  .brand-mark { width:38px; height:38px; }
  .brand-copy b { font-size:24px; }
  .brand-copy small { display:none; }
  .header-actions .register { display:none; }
  .hero { min-height:380px; background-image:url('assets/hero-tidmun789-mobile.webp'); background-position:center top; background-size:cover; }
  .hero::before { background:linear-gradient(0deg,rgba(12,0,0,.28),transparent 55%); }
  .hero .wrap { min-height:380px; }
  .hero-copy { left:10px; bottom:20px; }
  .jackpot { display:none; }
  .category-grid { grid-template-columns:repeat(2,1fr); }
  .category-card { min-height:170px; }
  .signup-copy { padding:24px; flex-direction:column; align-items:flex-start; }
  .latest-post-grid { grid-template-columns:1fr; }
  .providers { grid-template-columns:repeat(3,1fr); }
  .promo-grid { grid-template-columns:1fr; }
  .benefit-grid { grid-template-columns:1fr; }
  .benefit { justify-content:flex-start; border-right:0; border-bottom:1px solid rgba(255,255,255,.08); }
  .footer-grid { grid-template-columns:1fr; }
  .copyright { flex-direction:column; }
}


/* Fixed quick actions: homepage, signup, play, login and LINE. */
body { padding-bottom:100px; }
.quick-action-bar { position:fixed; z-index:9999; left:50%; bottom:12px; transform:translateX(-50%); width:min(1160px,calc(100% - 24px)); min-height:78px; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); align-items:stretch; overflow:visible; border:1px solid #c98422; border-radius:15px; background:linear-gradient(180deg,rgba(54,5,2,.97),rgba(103,7,3,.98)); box-shadow:0 12px 35px rgba(0,0,0,.48),inset 0 1px rgba(255,231,157,.2); backdrop-filter:blur(12px); }
.quick-action { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-width:0; padding:9px 8px; color:#fff8dc; border-right:1px solid rgba(255,215,106,.16); font-size:13px; font-weight:800; line-height:1.15; text-align:center; transition:background .18s ease,color .18s ease,transform .18s ease; }
.quick-action:last-child { border-right:0; }
.quick-action:hover,.quick-action:focus-visible { color:#fff; background:rgba(255,190,29,.12); }
.quick-action:focus-visible { outline:2px solid var(--gold); outline-offset:-3px; }
.quick-icon { color:var(--gold); font-size:29px; line-height:1; filter:drop-shadow(0 2px 5px rgba(0,0,0,.45)); }
.quick-play { overflow:visible; }
.quick-brand { width:72px; height:72px; margin-top:-32px; display:flex; flex-direction:column; align-items:center; justify-content:center; border:2px solid #f2b63b; border-radius:50%; color:#fff4c7; background:radial-gradient(circle at 38% 28%,#932015,#240000 72%); box-shadow:0 6px 18px rgba(0,0,0,.5),0 0 0 5px rgba(255,202,74,.08); font-size:11px; font-style:italic; font-weight:900; letter-spacing:-.3px; }
.quick-brand em { color:var(--gold); font-size:15px; font-style:normal; line-height:1; }
.quick-line-badge { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; color:#fff; background:#06c755; box-shadow:0 4px 12px rgba(6,199,85,.3); font-size:9px; font-weight:900; }
@media (max-width:620px) {
  body { padding-bottom:78px; }
  .quick-action-bar { bottom:0; width:100%; min-height:66px; border-right:0; border-bottom:0; border-left:0; border-radius:12px 12px 0 0; }
  .quick-action { gap:3px; padding:7px 3px 5px; font-size:10px; }
  .quick-icon { font-size:22px; }
  .quick-brand { width:58px; height:58px; margin-top:-24px; font-size:9px; }
  .quick-brand em { font-size:12px; }
  .quick-line-badge { width:30px; height:30px; font-size:8px; }
}
