/*
Theme Name: Lottery Sambad
Theme URI: https://yoursite.com
Author: Your Name
Author URI: https://yoursite.com
Description: A professional lottery results WordPress theme with automatic result display for 1 PM, 6 PM, and 8 PM draws.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lottery-sambad
Tags: lottery, results, custom-theme, responsive
*/

/* ─── CSS VARIABLES ──────────────────────────────────────────────── */
:root {
  --primary:     #d32f2f;
  --primary-dark:#b71c1c;
  --primary-light:#ef9a9a;
  --accent:      #ff6f00;
  --gold:        #f9a825;
  --green:       #2e7d32;
  --dark:        #0d0d0d;
  --dark-2:      #1a1a1a;
  --dark-3:      #242424;
  --surface:     #1e1e1e;
  --surface-2:   #2a2a2a;
  --border:      #333;
  --text:        #f0f0f0;
  --text-muted:  #999;
  --text-dim:    #ccc;
  --white:       #ffffff;
  --font-main:   'Poppins', 'Segoe UI', sans-serif;
  --font-mono:   'Courier New', monospace;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.6);
  --transition:  0.25s ease;
}

/* ─── RESET & BASE ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: var(--white); }
h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p  { color: var(--text-dim); }

/* ─── LAYOUT ─────────────────────────────────────────────────────── */
.container  { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.section    { padding: 48px 0; }
.grid-3     { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2     { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
@media(max-width:900px){ .grid-3 { grid-template-columns:1fr; } }
@media(max-width:640px){ .grid-2 { grid-template-columns:1fr; } }

/* ─── CARD BASE ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 8px; font-weight: 600;
  font-size: .9rem; cursor: pointer; border: none;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: #f57f17; color: var(--dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ─── BADGE ──────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 100px; font-size: .75rem;
  font-weight: 600; letter-spacing: .03em;
}
.badge-live { background: rgba(211,47,47,.2); color: #ef5350; border: 1px solid rgba(211,47,47,.4); }
.badge-gold { background: rgba(249,168,37,.2); color: var(--gold); border: 1px solid rgba(249,168,37,.4); }
.badge-green { background: rgba(46,125,50,.2); color: #66bb6a; border: 1px solid rgba(46,125,50,.4); }

/* ─── NOTICE BAR ─────────────────────────────────────────────────── */
.notice-bar {
  background: linear-gradient(135deg, #1a237e, #283593);
  border-bottom: 2px solid var(--gold);
  padding: 10px 0;
  font-size: .85rem;
}
.notice-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.notice-bar p { color: #bbdefb; margin: 0; }
.notice-bar strong { color: var(--gold); }

/* ─── HEADER ─────────────────────────────────────────────────────── */
.site-header {
  background: var(--dark-2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 999;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.site-logo img { height: 54px; width: auto; }
.site-logo .logo-text { font-size: 1.3rem; font-weight: 800; color: var(--white); }
.site-logo .logo-text span { color: var(--gold); }

/* ─── NAV ────────────────────────────────────────────────────────── */
.main-nav ul { display: flex; gap: 4px; align-items: center; }
.main-nav ul li a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px; font-weight: 600;
  font-size: .9rem; color: var(--text-dim); transition: all var(--transition);
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
  background: rgba(211,47,47,.15); color: var(--primary);
}
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; font-size: 1.5rem; }
@media(max-width:768px){
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark-2); border-bottom: 1px solid var(--border); padding: 16px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
  .nav-toggle { display: flex; }
}

/* ─── HERO / DATE BAR ────────────────────────────────────────────── */
.hero-bar {
  background: linear-gradient(135deg, #1a0000 0%, #3d0000 50%, #1a0000 100%);
  border-bottom: 2px solid var(--primary);
  padding: 32px 0;
  text-align: center;
}
.hero-bar .date-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(211,47,47,.2); border: 1px solid var(--primary);
  color: var(--primary-light); border-radius: 100px;
  padding: 6px 18px; font-size: .85rem; font-weight: 600;
  margin-bottom: 12px;
}
.hero-bar h1 { margin-bottom: 8px; }
.hero-bar .subtitle { color: var(--text-muted); font-size: .95rem; }

/* ─── LIVE RESULTS SECTION ───────────────────────────────────────── */
.results-section { padding: 48px 0; }
.results-section .section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px; gap: 12px; flex-wrap: wrap;
}
.section-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.3rem; font-weight: 700; color: var(--white);
}
.section-title::before {
  content: ''; display: block; width: 4px; height: 28px;
  background: var(--primary); border-radius: 2px;
}

/* ─── RESULT CARD ────────────────────────────────────────────────── */
.result-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.result-card-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.result-card-header .draw-time { font-size: 1.3rem; font-weight: 800; color: var(--white); display: flex; align-items: center; gap: 8px; }
.result-card-header .draw-name { font-size: .8rem; color: rgba(255,255,255,.8); margin-top: 2px; }
.result-card-body { padding: 24px 22px; }
.result-card.pending .result-card-header { background: linear-gradient(135deg, #424242, #616161); }
.result-card.pending .result-number { color: var(--text-muted); }
.result-card.published .result-card-header { background: linear-gradient(135deg, var(--green), #43a047); }

/* ─── RESULT IMAGE (PDF image) ───────────────────────────────────── */
.result-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  margin-bottom: 20px;
  background: var(--dark-3);
  min-height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.result-image-wrap img { width: 100%; height: auto; }
.result-image-wrap .placeholder-text {
  text-align: center; color: var(--text-muted); padding: 40px 20px;
}
.result-image-wrap .placeholder-text .clock { font-size: 3rem; margin-bottom: 12px; }
.result-image-wrap .placeholder-text p { font-size: .9rem; }

/* ─── FIRST PRIZE DISPLAY ────────────────────────────────────────── */
.first-prize-wrap {
  background: linear-gradient(135deg, rgba(249,168,37,.1), rgba(255,111,0,.1));
  border: 1px solid rgba(249,168,37,.3);
  border-radius: var(--radius);
  padding: 18px; text-align: center; margin-bottom: 18px;
}
.first-prize-wrap .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: 6px; }
.first-prize-wrap .prize-number {
  font-size: 2.2rem; font-weight: 800; letter-spacing: .15em;
  color: var(--white); font-family: var(--font-mono);
  text-shadow: 0 0 20px rgba(249,168,37,.4);
}
.first-prize-wrap .prize-amount { font-size: .85rem; color: var(--gold); margin-top: 4px; }
.first-prize-wrap.pending .prize-number { font-size: 1.6rem; color: var(--text-muted); letter-spacing: 0; }

/* ─── DOWNLOAD BUTTONS ───────────────────────────────────────────── */
.download-row { display: flex; gap: 10px; flex-wrap: wrap; }
.download-row .btn { flex: 1; min-width: 120px; justify-content: center; }

/* ─── COUNTDOWN TIMER ────────────────────────────────────────────── */
.countdown-wrap { text-align: center; padding: 10px 0; }
.countdown-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 8px; }
.countdown-digits {
  display: flex; gap: 8px; justify-content: center; align-items: center;
}
.countdown-unit { text-align: center; }
.countdown-unit .num {
  display: inline-block; background: var(--dark-3); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 10px;
  font-size: 1.4rem; font-weight: 700; font-family: var(--font-mono);
  color: var(--white); min-width: 44px;
}
.countdown-unit .lbl { font-size: .65rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; }
.countdown-sep { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-top: -14px; }

/* ─── PRIZE TABLE ────────────────────────────────────────────────── */
.prize-table-wrap { overflow-x: auto; }
.prize-table {
  width: 100%; border-collapse: collapse; font-size: .87rem;
}
.prize-table thead th {
  background: var(--dark-3); color: var(--text-muted);
  padding: 10px 14px; text-align: left; font-weight: 600;
  letter-spacing: .04em; font-size: .8rem; text-transform: uppercase;
}
.prize-table tbody td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.prize-table tbody tr:hover td { background: var(--surface-2); }
.prize-table .first-prize-row td { color: var(--gold); font-weight: 700; }

/* ─── WEEKLY SCHEDULE ────────────────────────────────────────────── */
.schedule-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.schedule-table thead th {
  background: var(--primary); color: var(--white);
  padding: 12px 14px; text-align: left; font-weight: 600;
}
.schedule-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.schedule-table thead th:last-child { border-radius: 0 var(--radius) 0 0; }
.schedule-table tbody td { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.schedule-table tbody tr.today-row td { background: rgba(211,47,47,.08); color: var(--white); font-weight: 600; }
.schedule-table tbody tr:hover td { background: var(--surface-2); }

/* ─── TICKET CHECKER ─────────────────────────────────────────────── */
.ticket-checker {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.checker-form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.checker-form input[type="text"] {
  flex: 1; min-width: 200px;
  background: var(--dark-3); border: 1px solid var(--border);
  color: var(--white); padding: 12px 16px; border-radius: 8px;
  font-size: 1rem; font-family: var(--font-mono); letter-spacing: .1em;
  outline: none; transition: border-color var(--transition);
}
.checker-form input[type="text"]:focus { border-color: var(--primary); }
.checker-form select {
  background: var(--dark-3); border: 1px solid var(--border);
  color: var(--text-dim); padding: 12px 16px; border-radius: 8px;
  font-size: .9rem; outline: none; cursor: pointer;
}
.checker-result {
  margin-top: 20px; padding: 16px 20px; border-radius: 10px;
  display: none; font-weight: 600; font-size: 1rem;
}
.checker-result.win { background: rgba(46,125,50,.2); border: 1px solid rgba(46,125,50,.4); color: #66bb6a; }
.checker-result.lose { background: rgba(211,47,47,.15); border: 1px solid rgba(211,47,47,.3); color: #ef5350; }

/* ─── FAQ ────────────────────────────────────────────────────────── */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; }
.faq-question {
  width: 100%; background: var(--surface);
  color: var(--text); padding: 16px 20px;
  font-weight: 600; font-size: .92rem;
  text-align: left; cursor: pointer; border: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--surface-2); }
.faq-question .faq-icon { font-size: 1.2rem; transition: transform var(--transition); flex-shrink: 0; }
.faq-question.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 16px 20px; background: var(--dark-3); border-top: 1px solid var(--border); color: var(--text-dim); font-size: .88rem; line-height: 1.7; }

/* ─── SIDEBAR ────────────────────────────────────────────────────── */
.content-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.sidebar-widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 24px; }
.sidebar-widget-title { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
@media(max-width:900px){ .content-sidebar { grid-template-columns: 1fr; } }

/* ─── QUICK LINKS / ARCHIVE ──────────────────────────────────────── */
.archive-list li { border-bottom: 1px solid var(--border); }
.archive-list li:last-child { border-bottom: none; }
.archive-list li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; color: var(--text-dim); font-size: .88rem;
  transition: color var(--transition);
}
.archive-list li a:hover { color: var(--primary); }
.archive-list li a .date-tag { background: var(--dark-3); border: 1px solid var(--border); border-radius: 4px; padding: 2px 8px; font-size: .75rem; color: var(--text-muted); }

/* ─── FOOTER ─────────────────────────────────────────────────────── */
.site-footer { background: var(--dark-2); border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-about .footer-logo { font-size: 1.3rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer-about .footer-logo span { color: var(--gold); }
.footer-about p { font-size: .85rem; color: var(--text-muted); line-height: 1.7; }
.footer-col h4 { font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.footer-col ul li a { display: block; color: var(--text-muted); font-size: .85rem; padding: 4px 0; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { font-size: .8rem; color: var(--text-muted); }
.footer-bottom .footer-links { display: flex; gap: 16px; }
.footer-bottom .footer-links a { font-size: .8rem; color: var(--text-muted); }
.footer-bottom .footer-links a:hover { color: var(--primary); }
@media(max-width:768px){ .footer-grid { grid-template-columns: 1fr; } }

/* ─── LIVE INDICATOR ─────────────────────────────────────────────── */
.live-dot {
  display: inline-block; width: 8px; height: 8px;
  background: #ef5350; border-radius: 50%;
  animation: pulse-live 1.5s infinite;
}
@keyframes pulse-live {
  0%   { box-shadow: 0 0 0 0 rgba(239,83,80,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(239,83,80,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,83,80,0); }
}

/* ─── SKELETON LOADER ────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--dark-3) 25%, var(--surface-2) 50%, var(--dark-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ─── BREADCRUMB ─────────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-muted); padding: 12px 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border); }

/* ─── ADMIN RESULT ENTRY NOTICE ──────────────────────────────────── */
.no-result-notice {
  text-align: center; padding: 48px 20px;
  background: var(--dark-3); border-radius: var(--radius);
  border: 2px dashed var(--border);
}
.no-result-notice .icon { font-size: 3.5rem; margin-bottom: 14px; }
.no-result-notice h3 { font-size: 1.1rem; color: var(--text-muted); font-weight: 600; }
.no-result-notice p { font-size: .85rem; color: var(--text-muted); margin-top: 6px; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media(max-width:640px){
  .result-card-body { padding: 18px 14px; }
  .ticket-checker { padding: 22px 16px; }
  .first-prize-wrap .prize-number { font-size: 1.8rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   OLD RESULTS / ARCHIVE SYSTEM — Additional Styles
   ═══════════════════════════════════════════════════════════════════ */

/* ── Filter Tab Bar ──────────────────────────────────────────────── */
.ls-filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.ls-filter-tab {
  flex: 1;
  min-width: 100px;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .88rem;
  text-align: center;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: all var(--transition);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.ls-filter-tab:hover { background: var(--surface-2); color: var(--text); }
.ls-filter-tab.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(211,47,47,.35);
}

/* ── Date Group Header ───────────────────────────────────────────── */
.ls-date-group { margin-bottom: 32px; }
.ls-date-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.ls-date-group-header .date-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.ls-date-group-header .today-pill {
  background: var(--primary);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ls-date-group-header .result-count {
  margin-left: auto;
  font-size: .75rem;
  color: var(--text-muted);
}

/* ── Result Row (archive list item) ─────────────────────────────── */
.ls-result-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
  text-decoration: none;
  transition: all var(--transition);
}
.ls-result-row:hover {
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}
.ls-result-row .time-badge {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}
.ls-result-row .time-badge .time-text {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  display: block;
}
.ls-result-row .time-badge .status-dot {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 2px;
  display: block;
}
.ls-result-row.published .time-badge { background: rgba(46,125,50,.15); border-color: rgba(46,125,50,.3); }
.ls-result-row.published .time-badge .time-text { color: #66bb6a; }
.ls-result-row .draw-info .draw-name { font-weight: 700; color: var(--white); font-size: .92rem; }
.ls-result-row .draw-info .draw-meta { font-size: .78rem; color: var(--text-muted); margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; }
.ls-result-row .prize-col { text-align: right; }
.ls-result-row .prize-col .prize-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--gold); margin-bottom: 2px; }
.ls-result-row .prize-col .prize-num { font-family: monospace; font-size: 1rem; font-weight: 700; color: var(--white); }
.ls-result-row .arrow-col { color: var(--text-muted); font-size: .9rem; transition: color var(--transition); }
.ls-result-row:hover .arrow-col { color: var(--primary); }

@media (max-width: 640px) {
  .ls-result-row { grid-template-columns: 64px 1fr; }
  .ls-result-row .prize-col { display: none; }
  .ls-result-row .arrow-col { display: none; }
}

/* ── Month Calendar Navigator ────────────────────────────────────── */
.ls-month-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.ls-month-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--dark-3);
}
.ls-month-nav-header .month-title { font-weight: 700; color: var(--white); font-size: .95rem; }
.ls-month-nav-header a {
  color: var(--text-muted);
  font-size: .85rem;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.ls-month-nav-header a:hover { border-color: var(--primary); color: var(--primary); }
.ls-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}
.ls-cal-day-label {
  padding: 8px 4px;
  text-align: center;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.ls-cal-day {
  padding: 8px 4px;
  text-align: center;
  font-size: .82rem;
  color: var(--text-muted);
  border: none;
  background: none;
  cursor: default;
  position: relative;
}
.ls-cal-day.has-result {
  color: var(--white);
  cursor: pointer;
  font-weight: 700;
}
.ls-cal-day.has-result a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin: 0 auto;
  background: rgba(211,47,47,.15);
  color: var(--primary);
  font-weight: 700;
  transition: all var(--transition);
  text-decoration: none;
}
.ls-cal-day.has-result a:hover,
.ls-cal-day.is-today a {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 0 0 3px rgba(211,47,47,.2);
}
.ls-cal-day.is-today a { background: var(--primary); color: var(--white); }
.ls-cal-day.empty { pointer-events: none; }

/* ── Draw Time Filter Buttons ────────────────────────────────────── */
.ls-draw-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.ls-draw-filter-btn {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: .83rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ls-draw-filter-btn:hover,
.ls-draw-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ── Pagination ──────────────────────────────────────────────────── */
.ls-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.ls-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  transition: all var(--transition);
}
.ls-pagination .page-numbers.current,
.ls-pagination .page-numbers:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.ls-pagination .page-numbers.dots { background: transparent; border: none; cursor: default; }
.ls-pagination .page-numbers.prev,
.ls-pagination .page-numbers.next { width: auto; padding: 0 14px; gap: 6px; }

/* ── Result Image Thumbnail in Archive Row ───────────────────────── */
.ls-result-thumb {
  width: 56px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

/* ── Year/Month Dropdown ─────────────────────────────────────────── */
.ls-period-select {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.ls-period-select select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 8px;
  font-size: .88rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.ls-period-select select:focus { border-color: var(--primary); }

/* ── No-results state ────────────────────────────────────────────── */
.ls-empty-state {
  text-align: center;
  padding: 48px 20px;
  background: var(--dark-3);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}
.ls-empty-state .icon { font-size: 3.5rem; margin-bottom: 14px; }
.ls-empty-state h3 { color: var(--text-muted); font-weight: 600; font-size: 1.1rem; }
.ls-empty-state p  { font-size: .85rem; color: var(--text-muted); margin-top: 6px; }

/* ── Homepage "Old Results" teaser strip ─────────────────────────── */
.ls-history-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ls-history-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--dark-3);
}
.ls-history-strip-header h3 { font-size: .95rem; font-weight: 700; color: var(--white); margin: 0; }
.ls-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--transition);
  gap: 10px;
}
.ls-history-row:last-child { border-bottom: none; }
.ls-history-row:hover { background: var(--surface-2); }
.ls-history-row .hr-date { font-size: .78rem; color: var(--text-muted); flex-shrink: 0; }
.ls-history-row .hr-name { font-size: .85rem; color: var(--text-dim); font-weight: 600; flex: 1; text-align: center; }
.ls-history-row .hr-prize { font-family: monospace; font-size: .88rem; font-weight: 700; color: var(--gold); flex-shrink: 0; }

/* ── Sticky Date Header in grouped list ─────────────────────────── */
.ls-sticky-date {
  position: sticky;
  top: 72px;  /* below fixed header */
  z-index: 10;
  background: var(--dark);
  padding: 8px 0;
}

/* ── Shortcode Embedded Results ──────────────────────────────────── */
.ls-shortcode-results { display: flex; flex-direction: column; gap: 8px; }
.ls-shortcode-results .ls-result-row { margin-bottom: 0; }

/* ── Legacy Widget Results List ──────────────────────────────────── */
.ls-widget-results { margin: 0; padding: 0; list-style: none; }
.ls-widget-results li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
  color: var(--text-dim);
}
.ls-widget-results li:last-child { border-bottom: none; }
.ls-widget-results .draw-tag {
  background: var(--primary);
  color: var(--white);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   BLOG / SINGLE POST STYLES
   ═══════════════════════════════════════════════════════════════════ */

/* ── Blog post content typography ────────────────────────────────── */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 { color: var(--white); margin: 1.4em 0 .6em; line-height: 1.3; }
.entry-content h2 { font-size: 1.25rem; border-left: 3px solid var(--primary); padding-left: 12px; }
.entry-content h3 { font-size: 1.05rem; }
.entry-content p  { margin-bottom: 1em; color: var(--text-dim); }
.entry-content ul,
.entry-content ol { padding-left: 22px; margin-bottom: 1em; color: var(--text-dim); }
.entry-content li { margin-bottom: .4em; line-height: 1.7; }
.entry-content a  { color: var(--primary); text-decoration: underline; }
.entry-content a:hover { color: var(--gold); }
.entry-content img { border-radius: var(--radius); max-width: 100%; height: auto; margin: 1em 0; }
.entry-content blockquote {
  border-left: 4px solid var(--primary);
  margin: 1.2em 0;
  padding: 12px 20px;
  background: var(--dark-3);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-dim);
  font-style: italic;
}
.entry-content table {
  width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .88rem;
}
.entry-content table th {
  background: var(--dark-3); color: var(--white);
  padding: 10px 14px; text-align: left; font-weight: 600;
}
.entry-content table td {
  padding: 9px 14px; border-bottom: 1px solid var(--border); color: var(--text-dim);
}
.entry-content table tr:hover td { background: var(--surface-2); }
.entry-content pre, .entry-content code {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: 6px; font-family: 'Courier New', monospace;
  font-size: .85rem; color: #a5d6a7;
}
.entry-content pre  { padding: 16px; overflow-x: auto; margin: 1em 0; }
.entry-content code { padding: 2px 6px; }
.entry-content pre code { background: none; border: none; padding: 0; }
.entry-content hr  { border: none; border-top: 1px solid var(--border); margin: 2em 0; }

/* ── Blog card hover on list ─────────────────────────────────────── */
article.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ── Pagination for blog ─────────────────────────────────────────── */
.ls-pagination .page-numbers.prev,
.ls-pagination .page-numbers.next { width: auto; padding: 0 16px; }

/* ── Comment styles ──────────────────────────────────────────────── */
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list .comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.comment-list .comment:last-child { border-bottom: none; }
.comment-author img { border-radius: 50%; }
.comment-meta { font-size: .8rem; color: var(--text-muted); margin-bottom: 6px; }
.comment-content p { font-size: .88rem; color: var(--text-dim); margin: 0; }
.comment-respond { margin-top: 20px; }
.comment-respond h3 { font-size: 1rem; margin-bottom: 14px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: var(--dark-3);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .88rem;
  outline: none;
  transition: border-color var(--transition);
  margin-bottom: 12px;
  font-family: var(--font-main);
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--primary); }
.comment-form textarea { height: 120px; resize: vertical; }
.comment-form .submit {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: .9rem;
  transition: background var(--transition);
}
.comment-form .submit:hover { background: var(--primary-dark); }
