/*
Theme Name: NPL Giveaway
Theme URI: https://giveways.nirmalbhattarai12.com.np/
Author: LekhaSetu
Author URI: https://accounting.nirmalbhattarai12.com.np/
Description: A custom theme for the NPL Season 3 giveaway by LekhaSetu. Predict match winners, earn points, win Rs. 1,000. Works with the NPL Giveaway plugin (signup, predictions, leaderboard).
Version: 2.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: npl-giveaway
*/

:root {
  --navy: #0A2540;
  --navy-dark: #061A2E;
  --teal: #0D6E5F;
  --teal-dark: #0A574C;
  --gold: #C9A227;
  --gold-light: #E7C95A;
  --bg: #F6F8FA;
  --ink: #1B2A3A;
  --muted: #5B6B7C;
  --line: #E2E8F0;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(10, 37, 64, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.6em;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 780px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy-dark); box-shadow: 0 6px 18px rgba(201, 162, 39, 0.45); }
.btn-gold:hover { background: var(--gold-light); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); }
.btn-dark { background: var(--navy-dark); color: var(--white); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.site-branding { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.site-branding .custom-logo { width: 48px; height: 48px; border-radius: 10px; }
.site-title-wrap { display: flex; flex-direction: column; line-height: 1.15; }
.site-title { color: var(--white); font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 20px; }
.site-title:hover { text-decoration: none; color: var(--gold-light); }
.site-tagline { color: rgba(255, 255, 255, 0.65); font-size: 13px; }
.main-navigation ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-navigation a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 15px;
  padding: 9px 13px;
  border-radius: 8px;
}
.main-navigation a:hover { color: var(--white); background: rgba(255, 255, 255, 0.10); text-decoration: none; }
.main-navigation .current-menu-item a { color: var(--gold-light); }
.menu-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,0.4); color: #fff; border-radius: 8px; padding: 8px 14px; font-weight: 700; cursor: pointer; }
.header-cta { padding: 10px 20px; font-size: 15px; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(13, 110, 95, 0.55), transparent 60%),
    radial-gradient(700px 380px at 5% 110%, rgba(201, 162, 39, 0.28), transparent 60%),
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #0E3A5C 100%);
  color: var(--white);
  padding: 84px 0 72px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-title { font-size: 56px; font-weight: 800; color: var(--white); margin-bottom: 18px; }
.gold-text { color: var(--gold-light); }
.hero-sub { font-size: 19px; line-height: 1.6; color: rgba(255, 255, 255, 0.85); max-width: 640px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong { font-family: 'Poppins', sans-serif; font-size: 30px; color: var(--white); line-height: 1.1; }
.hero-stat span { color: rgba(255, 255, 255, 0.65); font-size: 14px; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-title { font-size: 34px; text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); font-size: 18px; margin: 0 0 40px; }
.intro-section { padding-bottom: 0; font-size: 19px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 26px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 21px; margin-bottom: 8px; }
.step-card p { color: var(--muted); margin: 0; }

/* Prize */
.prize-section { padding-top: 0; }
.prize-card {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: var(--radius);
  padding: 38px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--shadow);
}
.prize-card h2 { color: var(--navy-dark); font-size: 30px; margin-bottom: 6px; }
.prize-card p { color: #3D3413; margin: 0; font-size: 17px; max-width: 560px; }

/* Rules */
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 36px; }
.rule-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 10px;
  padding: 20px 22px;
}
.rule-item h3 { font-size: 18px; margin-bottom: 4px; }
.rule-item p { color: var(--muted); margin: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { color: var(--white); font-size: 32px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); font-size: 18px; margin-bottom: 26px; }

/* ---------- Pages ---------- */
.page-header { background: var(--navy); padding: 52px 0 44px; }
.page-title { color: var(--white); font-size: 40px; margin: 0; }
.page-content { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 44px; margin-top: -24px; margin-bottom: 64px; }
.page-content h2 { font-size: 26px; margin-top: 1.4em; }
.page-content h3 { font-size: 21px; margin-top: 1.3em; }
.page-content ul, .page-content ol { padding-left: 24px; }
.page-content li { margin-bottom: 8px; }
.page-content blockquote { border-left: 4px solid var(--gold); margin: 24px 0; padding: 6px 20px; color: var(--muted); background: #FBF7E8; border-radius: 0 10px 10px 0; }

table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 16px; }
th { background: var(--navy); color: var(--white); text-align: left; padding: 12px 14px; font-family: 'Poppins', sans-serif; font-size: 14px; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
tr:nth-child(even) td { background: #F2F5F8; }
tr:first-child td { font-weight: 700; color: var(--teal); }

.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; margin-bottom: 20px; box-shadow: var(--shadow); }
.post-card h2 { font-size: 22px; }
.post-card p { color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255, 255, 255, 0.8); margin-top: 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; padding: 48px 20px 36px; flex-wrap: wrap; }
.footer-brand h3 { color: var(--white); font-size: 20px; margin-bottom: 10px; }
.footer-brand p { margin: 0 0 8px; font-size: 15px; }
.footer-brand a { color: var(--gold-light); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: rgba(255, 255, 255, 0.8); font-size: 15px; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 18px 0; font-size: 14px; color: rgba(255, 255, 255, 0.55); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 42px; }
  .prize-card { flex-direction: column; align-items: flex-start; }
  .menu-toggle { display: block; }
  .main-navigation { display: none; width: 100%; order: 3; }
  .main-navigation.open { display: block; }
  .main-navigation ul { flex-direction: column; padding-bottom: 12px; }
  .header-inner { flex-wrap: wrap; }
  .header-cta { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: 60px 0 52px; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 17px; }
  .section { padding: 44px 0; }
  .section-title { font-size: 27px; }
  .page-title { font-size: 30px; }
  .page-content { padding: 28px 22px; }
  .hero-stats { gap: 24px; }
}

/* ---------- NPL plugin extras (v2) ---------- */
.npl-vs { color: var(--muted); font-weight: 400; }

.next-match-section { padding-top: 0; }
.next-match-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.next-match-label { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--teal); }
.next-match-card h2 { font-size: 26px; margin: 6px 0 4px; }
.next-match-card p { color: var(--muted); margin: 0; }

.top3-section { padding-top: 0; }
.top3-list { list-style: none; margin: 0 auto 28px; padding: 0; max-width: 560px; }
.top3-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  box-shadow: var(--shadow);
}
.top3-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
}
.top3-list li strong { margin-left: auto; color: var(--teal); }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  font: inherit;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  width: 100%;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 110, 95, 0.15);
}
