/*
Theme Name: TopupZone
Theme URI: https://topupzone.com
Author: TopupZone
Author URI: https://topupzone.com
Description: เว็บเติมเกมออนไลน์ ราคาถูก รวดเร็ว ปลอดภัย ตลอด 24 ชั่วโมง
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: topupzone
Tags: e-commerce, game, topup, thai
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #6C5CE7;
  --primary-dark: #4834d4;
  --primary-light: #a29bfe;
  --primary-bg: #f0eeff;
  --success: #00b894;
  --success-bg: #e6f9f5;
  --warning: #fdcb6e;
  --warning-bg: #fff8e6;
  --danger: #d63031;
  --danger-bg: #ffeaea;
  --text: #1a1a2e;
  --text-muted: #636e72;
  --text-light: #b2bec3;
  --bg: #f7f6ff;
  --surface: #ffffff;
  --border: #e8e6ff;
  --border-strong: #c8c4f4;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 16px rgba(108,92,231,0.08);
  --shadow-md: 0 4px 24px rgba(108,92,231,0.12);
}

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

body {
  font-family: 'Noto Sans Thai', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ===== NAV ===== */
.tz-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.tz-nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
}
.tz-nav-logo span { color: var(--text); }
.tz-nav-links { display: flex; gap: 4px; }
.tz-nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  font-weight: 500;
}
.tz-nav-links a:hover,
.tz-nav-links a.current-menu-item { background: var(--primary-bg); color: var(--primary); }
.tz-nav-right { display: flex; gap: 8px; align-items: center; }

/* ===== BUTTONS ===== */
.tz-btn-outline {
  font-size: 14px; color: var(--primary);
  border: 1.5px solid var(--primary);
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 7px 16px; cursor: pointer;
  font-weight: 500; transition: all 0.2s;
  font-family: inherit; display: inline-block;
}
.tz-btn-outline:hover { background: var(--primary-bg); }
.tz-btn-primary {
  font-size: 14px; background: var(--primary);
  color: #fff; border: none;
  border-radius: var(--radius-sm);
  padding: 8px 18px; cursor: pointer;
  font-weight: 600; transition: all 0.2s;
  font-family: inherit; display: inline-block;
}
.tz-btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); color: #fff; }

/* ===== HERO ===== */
.tz-hero {
  background: linear-gradient(135deg, #1a1040 0%, #3d2fa0 50%, #6C5CE7 100%);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tz-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.tz-hero-content { position: relative; }
.tz-hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15); color: #fff;
  font-size: 12px; font-weight: 600; padding: 5px 14px;
  border-radius: 999px; margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.2); letter-spacing: 0.5px;
}
.tz-hero h1 { font-size: 42px; font-weight: 700; color: #fff; margin-bottom: 12px; line-height: 1.2; }
.tz-hero h1 span { color: var(--primary-light); }
.tz-hero p { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.tz-hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tz-hero-btn {
  padding: 13px 28px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s; font-family: inherit;
  display: inline-flex; align-items: center; gap: 8px;
}
.tz-hero-btn.primary { background: #fff; color: var(--primary); }
.tz-hero-btn.primary:hover { transform: translateY(-2px); }
.tz-hero-btn.secondary { background: rgba(255,255,255,0.15); color: #fff; border: 1.5px solid rgba(255,255,255,0.3); }
.tz-hero-stats { display: flex; gap: 2rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.tz-hero-stat .num { font-size: 24px; font-weight: 700; color: #fff; }
.tz-hero-stat .lbl { font-size: 12px; color: rgba(255,255,255,0.65); }

/* ===== SECTIONS ===== */
.tz-section { padding: 2rem; max-width: 1100px; margin: 0 auto; }
.tz-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.tz-section-title { font-size: 20px; font-weight: 700; }
.tz-see-all { font-size: 13px; color: var(--primary); font-weight: 600; }
.tz-see-all:hover { text-decoration: underline; color: var(--primary); }

/* ===== CATEGORY BAR ===== */
.tz-cat-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.tz-cat-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 18px; border-radius: 999px;
  border: 1.5px solid var(--border);
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: var(--bg); color: var(--text-muted); transition: all 0.2s;
}
.tz-cat-pill:hover, .tz-cat-pill.active { background: var(--primary-bg); color: var(--primary); border-color: var(--primary-light); }

/* ===== GAME CARDS ===== */
.tz-games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; }
.tz-game-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: all 0.2s; display: block; position: relative;
}
.tz-game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.tz-game-thumb { width: 100%; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; font-size: 52px; }
.tz-game-info { padding: 10px 12px 12px; }
.tz-game-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tz-game-price { font-size: 12px; color: var(--text-muted); }
.tz-game-price strong { color: var(--primary); }
.tz-badge-hot { position: absolute; top: 8px; right: 8px; background: #ff4757; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.tz-badge-new { position: absolute; top: 8px; right: 8px; background: var(--success); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }

/* ===== CARD PRODUCTS ===== */
.tz-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 12px; }
.tz-card-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  cursor: pointer; display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 8px; transition: all 0.2s;
}
.tz-card-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }

/* ===== PROMO BANNER ===== */
.tz-promo-banner {
  background: linear-gradient(135deg, #00b894, #00cec9);
  border-radius: var(--radius-lg); padding: 1.5rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin: 0 2rem;
}
.tz-promo-banner h3 { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.tz-promo-banner p { color: rgba(255,255,255,0.85); font-size: 13px; }
.tz-promo-btn { background: #fff; color: var(--success); font-size: 14px; font-weight: 700; border: none; border-radius: var(--radius); padding: 10px 22px; cursor: pointer; white-space: nowrap; font-family: inherit; }

/* ===== WHY US ===== */
.tz-why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 16px; }
.tz-why-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; }
.tz-why-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--primary-bg); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 24px; }
.tz-why-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.tz-why-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ===== PAYMENT BAR ===== */
.tz-pay-bar {
  background: var(--surface); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.tz-pay-bar span { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.tz-pay-chip { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 14px; font-size: 13px; font-weight: 500; }

/* ===== BREADCRUMB ===== */
.tz-breadcrumb { background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 2rem; font-size: 13px; color: var(--text-muted); }
.tz-breadcrumb a { color: var(--primary); }

/* ===== FORM ELEMENTS ===== */
.tz-input {
  font-family: inherit; font-size: 14px; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); width: 100%;
  transition: border-color 0.2s; outline: none;
}
.tz-input:focus { border-color: var(--primary); background: #fff; }
.tz-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== BADGE ===== */
.tz-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tz-badge-purple { background: var(--primary-bg); color: var(--primary); }
.tz-badge-green  { background: var(--success-bg); color: var(--success); }
.tz-badge-orange { background: var(--warning-bg); color: #b7791f; }

/* ===== FOOTER ===== */
.tz-footer { background: var(--text); color: rgba(255,255,255,0.7); padding: 2.5rem 2rem 1.5rem; margin-top: 3rem; }
.tz-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; max-width: 960px; margin: 0 auto 2rem; }
.tz-footer-logo { font-size: 20px; font-weight: 700; color: var(--primary-light); margin-bottom: 8px; }
.tz-footer-desc { font-size: 13px; line-height: 1.7; }
.tz-footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.tz-footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 8px; transition: color 0.2s; }
.tz-footer-col a:hover { color: var(--primary-light); }
.tz-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.25rem; text-align: center; font-size: 12px; max-width: 960px; margin: 0 auto; }

/* ===== TOAST ===== */
.tz-toast { position: fixed; bottom: 24px; right: 24px; background: var(--text); color: #fff; padding: 12px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 500; z-index: 9999; opacity: 0; transform: translateY(10px); transition: all 0.3s; pointer-events: none; }
.tz-toast.show { opacity: 1; transform: translateY(0); }
.tz-toast.success { background: var(--success); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .tz-nav-links { display: none; }
  .tz-footer-grid { grid-template-columns: 1fr 1fr; }
  .tz-hero h1 { font-size: 28px; }
  .tz-section { padding: 1.25rem 1rem; }
}
@media (max-width: 480px) {
  .tz-footer-grid { grid-template-columns: 1fr; }
  .tz-nav { padding: 0 1rem; }
}
