/* ==============================================================================
   LOTTERY SAMBAD MODERN LIGHT THEME (HIGH-RANKING SEO DESIGN)
   ============================================================================== */

:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #e0f2fe;
  --accent: #f59e0b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --border-focus: #38bdf8;
  --success: #16a34a;
  --success-bg: #dcfce7;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(2, 132, 199, 0.12);
}

html {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   HEADER & NAVBAR (LIGHT MODE)
   -------------------------------------------------------------------------- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  max-width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  width: 100%;
  max-width: 100%;
}

.site-nav {
  display: block;
  max-width: 100%;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}

.logo-badge {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.logo-text h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.logo-text span {
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

/* --------------------------------------------------------------------------
   HERO / BANNER SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  text-align: center;
  padding: 30px 15px 15px;
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #bbf7d0;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.hero-title {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  color: #0b2545;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: clamp(14px, 2.5vw, 16px);
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 14px;
}

.date-pill {
  display: inline-block;
  background: var(--primary-light);
  border: 1px solid #bae6fd;
  color: var(--primary-dark);
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 16px;
}

/* --------------------------------------------------------------------------
   AUTO DOWNLOAD BUTTONS BAR
   -------------------------------------------------------------------------- */
.download-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 22px;
  margin: 20px 0;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.download-box-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  max-width: 850px;
  margin: 0 auto;
}

.ls-btn {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: none;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-shadow: 0 3px 6px rgba(2, 132, 199, 0.2);
}

.ls-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.35);
  background: linear-gradient(135deg, #0369a1, #075985);
  text-decoration: none;
  color: #fff;
}

.ls-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.ls-message {
  margin-top: 14px;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  display: none;
}

.ls-message.error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #fecaca;
  display: inline-block;
  animation: blink 1.2s infinite alternate;
}

.ls-message.success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #bbf7d0;
  display: inline-block;
}

@keyframes blink {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* --------------------------------------------------------------------------
   RESULT CARDS (CLEAN LIGHT THEME WITH 3 COLUMNS)
   -------------------------------------------------------------------------- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}

.result-card {
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.result-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card-header {
  padding: 14px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.card-status {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.status-published {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #bbf7d0;
}

.status-pending {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid #fde68a;
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 240px;
  background: #ffffff;
}

.preview-thumbnail {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.pending-box {
  padding: 34px 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 2px dashed #cbd5e1;
  width: 100%;
}

.pending-icon {
  font-size: 38px;
  margin-bottom: 10px;
}

.pending-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.card-footer {
  padding: 12px 16px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   RICH SEO CONTENT SECTIONS & STYLING
   -------------------------------------------------------------------------- */
.content-section {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 30px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}

.content-section h2 {
  font-size: 24px;
  color: #0b2545;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 8px;
}

.content-section h3 {
  font-size: 18px;
  color: #0369a1;
  margin: 22px 0 10px;
}

.content-section p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 15px;
}

.content-section ul, 
.content-section ol {
  margin: 0 0 16px 22px;
  color: var(--text-muted);
  font-size: 15px;
}

.content-section li {
  margin-bottom: 8px;
}

.highlight-box {
  background: #f0f9ff;
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  color: #0369a1;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   TABLES (CLEAN LIGHT DESIGN - ZERO SCROLLBAR)
   -------------------------------------------------------------------------- */
.summary-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden !important;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin: 14px 0;
  background: #ffffff;
  box-sizing: border-box;
}

.summary-table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse;
}

.summary-table th,
.summary-table td {
  padding: 8px 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.draw-time-badge {
  font-weight: 800;
  color: #0f172a;
  font-size: 13.5px;
}

.draw-scheme-name {
  font-size: 12px;
  color: var(--primary);
  display: inline-block;
  margin-top: 2px;
}

.ls-table-btn {
  padding: 5px 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  width: auto !important;
  display: inline-flex !important;
  margin: 0 auto;
}

/* PDF Canvas Container - Zero Scrollbars (Native High-Res Image Appearance) */
.pdf-canvas-container {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  min-height: 250px;
}

.pdf-canvas {
  width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 6px;
}

.pdf-loading {
  padding: 30px 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: #ffffff;
}

.seo-table th,
.seo-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.seo-table th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.seo-table tr:hover td {
  background: #f8fafc;
}

.prize-highlight {
  color: #b45309;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-wrap {
  margin: 20px 0;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #ffffff;
}

.faq-question {
  padding: 16px 20px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.faq-answer {
  padding: 16px 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  border-top: 1px solid var(--border-color);
}

/* SEO Keyword Tags & Multilingual Pills */
.keyword-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 20px;
}

.seo-tag {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 16px;
  transition: all 0.2s ease;
  display: inline-block;
}

.seo-tag:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   FOOTER (100% LIGHT MODE FINISH)
   -------------------------------------------------------------------------- */
.site-footer {
  background: #ffffff;
  color: #64748b;
  border-top: 1px solid var(--border-color);
  padding: 36px 0 24px;
  margin-top: auto;
  font-size: 13px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links a {
  color: #475569;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-disclaimer {
  max-width: 950px;
  margin: 0 auto 20px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
}

.footer-copyright {
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   FULL MOBILE RESPONSIVENESS (TABLETS & SMARTPHONES)
   -------------------------------------------------------------------------- */

/* Tablet & Medium Screens (max-width: 900px) */
@media (max-width: 900px) {
  .results-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .header-inner {
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
  }
  .site-nav {
    width: 100%;
    max-width: 100%;
  }
  .nav-links {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }
  .content-section {
    padding: 20px 16px;
  }
}

/* Mobile Screens (max-width: 600px) */
@media (max-width: 600px) {
  :root {
    --radius: 8px;
  }

  body {
    font-size: 14px;
  }

  .container {
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
  }

  /* Compact Mobile Header - 100% Contained, Zero Scroll */
  .site-header {
    padding: 2px 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .header-inner {
    gap: 8px;
    padding: 6px 0;
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .logo-wrap {
    gap: 8px;
  }

  .logo-badge {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 6px;
  }

  .logo-text h1 {
    font-size: 16px;
    letter-spacing: -0.2px;
  }

  .logo-text span {
    font-size: 10.5px;
  }

  .site-nav {
    width: 100%;
    max-width: 100%;
  }

  /* 2x2 Grid Menu for Mobile - 100% Full Width Fit, Zero Horizontal Scroll */
  .nav-links {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .nav-links li {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
  }

  .nav-links a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 7px 4px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  /* Compact Hero Section */
  .hero-section {
    padding: 16px 10px 12px;
    margin-top: 10px;
    border-radius: 8px;
  }

  .live-indicator {
    font-size: 11px;
    padding: 3px 10px;
    margin-bottom: 8px;
  }

  .hero-title {
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
  }

  .hero-subtitle {
    font-size: 12.5px;
    line-height: 1.45;
    margin-bottom: 8px;
  }

  .date-pill {
    font-size: 11.5px;
    padding: 2px 8px;
  }

  /* Compact Download Box */
  .download-box {
    padding: 14px 10px;
    margin: 12px 0;
    border-radius: 8px;
  }

  .download-box-title {
    font-size: 14.5px;
    margin-bottom: 10px;
  }

  .buttons-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ls-btn {
    padding: 11px 14px;
    font-size: 13.5px;
    border-radius: 6px;
  }

  /* Compact Result Cards */
  .results-grid {
    gap: 14px;
    margin: 14px 0;
  }

  .result-card {
    border-radius: 8px;
  }

  .card-header {
    padding: 10px 12px;
  }

  .card-title {
    font-size: 13.5px;
  }

  .card-status {
    font-size: 10px;
    padding: 3px 8px;
  }

  .card-body {
    padding: 12px 10px;
    min-height: 180px;
  }

  .preview-thumbnail {
    height: 280px;
    max-height: 300px;
    margin-bottom: 8px;
  }

  .content-section iframe {
    height: 480px !important;
  }

  .pending-box {
    padding: 22px 12px;
  }

  .pending-icon {
    font-size: 28px;
    margin-bottom: 6px;
  }

  .pending-text {
    font-size: 12.5px;
    line-height: 1.45;
  }

  .card-footer {
    padding: 10px 12px;
  }

  /* Mobile Responsive Tables (Zero Horizontal Scrollbar) */
  .summary-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .summary-table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
  }

  .summary-table th,
  .summary-table td {
    padding: 6px 3px !important;
    font-size: 11px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  .draw-time-badge {
    font-size: 12px !important;
  }

  .draw-scheme-name {
    font-size: 10px !important;
  }

  .summary-table .prize-highlight {
    font-size: 11.5px !important;
  }

  .ls-table-btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 4px !important;
    width: auto !important;
  }

  .table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 12px 0;
    border-radius: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    display: block;
  }

  .seo-table th,
  .seo-table td {
    padding: 8px 8px;
    font-size: 12px;
    line-height: 1.4;
  }

  .seo-table th {
    font-size: 11px;
    white-space: nowrap;
    padding: 8px 8px;
  }

  .seo-table button.ls-btn {
    padding: 5px 10px !important;
    font-size: 11px !important;
  }

  /* Compact Content Sections */
  .content-section {
    padding: 16px 12px;
    margin: 14px 0;
    border-radius: 8px;
  }

  .content-section h2 {
    font-size: 17px;
    line-height: 1.3;
    margin-bottom: 10px;
    padding-bottom: 6px;
  }

  .content-section h3 {
    font-size: 14.5px;
    margin: 14px 0 6px;
  }

  .content-section p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .content-section ul,
  .content-section ol {
    font-size: 12.5px;
    margin: 0 0 10px 16px;
    padding-left: 4px;
  }

  .content-section li {
    margin-bottom: 5px;
  }

  .highlight-box {
    padding: 10px 12px;
    font-size: 12px;
    margin: 12px 0;
    border-radius: 0 6px 6px 0;
    line-height: 1.5;
  }

  /* Compact FAQ Accordion */
  .faq-wrap {
    margin: 12px 0;
  }

  .faq-item {
    border-radius: 6px;
    margin-bottom: 8px;
  }

  .faq-question {
    padding: 10px 12px;
    font-size: 12.5px;
    line-height: 1.35;
  }

  .faq-answer {
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.45;
  }

  /* Compact Mobile Footer */
  .site-footer {
    padding: 22px 0 18px;
    font-size: 11.5px;
  }

  .footer-links {
    gap: 8px 12px;
    margin-bottom: 12px;
  }

  .footer-links a {
    font-size: 12px;
  }

  .footer-disclaimer {
    font-size: 10.5px;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .footer-copyright {
    font-size: 11px;
    padding-top: 12px;
  }

  /* Word Wrap & Keyword Tags Mobile Containment */
  .keyword-tags-grid {
    gap: 6px;
    margin: 8px 0 16px;
  }

  .seo-tag {
    font-size: 11px;
    padding: 4px 8px;
    word-break: break-word;
  }

  h1, h2, h3, p {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
}

