/*
Theme Name: TOTO12 Luxury Editorial Blogroll
Theme URI: https://toto12.example.com
Author: TOTO12 Editorial
Author URI: https://toto12.example.com
Description: TOTO12 hadir sebagai situs resmi bandar togel online dengan informasi layanan, akses praktis, pilihan permainan, dan panduan pengguna dalam satu platform.
Version: 2.4.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: toto12-blogroll
Tags: blog, two-columns, right-sidebar, custom-background, custom-logo, custom-menu, dark-mode, featured-images, block-styles
*/

:root {
  --toto-bg-obsidian: #08080a;
  --toto-surface-onyx: rgba(16, 16, 20, 0.94);
  --toto-surface-elevated: rgba(24, 24, 30, 0.96);
  --toto-crimson: #b91c1c;
  --toto-crimson-deep: #7f1d1d;
  --toto-gold: #d4af37;
  --toto-gold-soft: #f3d27a;
  --toto-text-primary: #f5f3ee;
  --toto-text-muted: #a8a29e;
  --toto-border-gold: rgba(212, 175, 55, 0.26);
  --toto-border-subtle: rgba(255, 255, 255, 0.08);
  --toto-font-display: 'Cinzel', Georgia, serif;
  --toto-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  background-color: var(--toto-bg-obsidian);
  color: var(--toto-text-primary);
  font-family: var(--toto-font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Lightweight GPU-friendly fixed background layer */
.toto-page-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -2;
  background-color: var(--toto-bg-obsidian);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateZ(0);
}

.toto-page-scrim {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 10, 0.72) 0%,
    rgba(22, 6, 8, 0.78) 48%,
    rgba(8, 8, 10, 0.90) 100%
  );
  pointer-events: none;
}

a {
  color: var(--toto-gold-soft);
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

a:hover {
  color: #ffffff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--toto-gold);
  outline-offset: 2px;
}

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

.toto-container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 22px;
  padding-right: 22px;
}

/* Top Header: 3-Zone Contract (Header Icon Only, Clean Nav, 1 Primary CTA) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 10, 0.94);
  border-bottom: 1px solid var(--toto-border-gold);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 74px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-header-icon {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: #d6d3cd;
  white-space: nowrap;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.primary-nav a:hover,
.primary-nav .current-menu-item a {
  color: var(--toto-gold-soft);
  border-bottom-color: var(--toto-gold);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #dc2626 0%, #881313 100%);
  border: 1px solid rgba(243, 210, 122, 0.55);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-cta:hover {
  background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
  color: #ffffff;
}

.mobile-menu-toggle {
  display: none;
  background: rgba(16, 16, 20, 0.95);
  border: 1px solid var(--toto-border-gold);
  color: var(--toto-gold-soft);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Panoramic 6-Banner Hero Slider */
.toto-hero-slider-wrap {
  padding: 20px 0;
  border-bottom: 1px solid var(--toto-border-gold);
  background: rgba(7, 7, 9, 0.85);
}

.toto-hero-slider {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: #08080a;
}

.toto-slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 450ms ease;
  pointer-events: none;
}

.toto-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.toto-slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 14%;
  display: block;
}

.toto-slide::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, transparent 68%, rgba(7, 7, 9, 0.85) 100%);
  pointer-events: none;
}

.toto-slide-caption {
  position: absolute;
  left: 24px;
  bottom: 28px;
  z-index: 3;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(9, 9, 11, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.45);
}

.toto-slide-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--toto-gold-soft);
}

.toto-slide-title {
  display: none;
}

.toto-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(9, 9, 11, 0.78);
  color: var(--toto-gold-soft);
  font-size: 1.2rem;
  cursor: pointer;
}

.toto-slider-prev { left: 16px; }
.toto-slider-next { right: 16px; }

.toto-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 8px;
}

.toto-slider-dot {
  width: 14px;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
}

.toto-slider-dot.is-active {
  width: 30px;
  background: var(--toto-gold);
}

@media (max-width: 640px) {
  .toto-hero-slider {
    aspect-ratio: 16 / 9;
  }
  .toto-slide-caption {
    left: 14px;
    bottom: 26px;
  }
}

/* Luxury Editorial Hero */
.hero-editorial {
  position: relative;
  border-bottom: 1px solid var(--toto-border-gold);
  padding: 44px 0 40px;
}

.hero-editorial::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 8, 10, 0.82) 0%,
    rgba(30, 8, 10, 0.62) 55%,
    rgba(8, 8, 10, 0.35) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--toto-gold);
  margin: 0 0 12px 0;
  font-weight: 600;
}

.hero-title {
  font-family: var(--toto-font-display);
  font-size: clamp(1.95rem, 3.5vw, 3rem);
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 18px 0;
  text-wrap: balance;
}

.hero-desc {
  font-size: 1.05rem;
  color: #e4e0d8;
  margin: 0 0 28px 0;
  max-width: 65ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #dc2626 0%, #881313 100%);
  border: 1px solid rgba(243, 210, 122, 0.6);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  background: rgba(16, 16, 20, 0.88);
  border: 1px solid var(--toto-border-gold);
  color: var(--toto-gold-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.14);
  color: #ffffff;
}

/* Main 2-Column Editorial Blogroll Grid */
.main-workspace {
  padding: 52px 0 76px;
}

.blogroll-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

.section-heading-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--toto-border-gold);
}

.section-heading {
  font-family: var(--toto-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--toto-gold-soft);
  margin: 0;
}

.section-meta {
  font-size: 0.825rem;
  color: var(--toto-text-muted);
}

.post-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.article-card {
  background: var(--toto-surface-onyx);
  border: 1px solid var(--toto-border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 180ms ease;
}

.article-card:hover {
  border-color: var(--toto-border-gold);
}

.article-card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-card-body {
  padding: 26px 28px;
}

.article-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--toto-gold);
  margin-bottom: 10px;
}

.article-meta-sep {
  color: var(--toto-text-muted);
}

.article-title {
  font-family: var(--toto-font-display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.3;
  margin: 0 0 12px 0;
  color: #ffffff;
}

.article-title a {
  color: #ffffff;
}

.article-title a:hover {
  color: var(--toto-gold-soft);
}

.article-excerpt {
  color: #d6d3cd;
  margin: 0 0 18px 0;
  font-size: 0.96rem;
}

.article-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--toto-gold-soft);
}

/* Breadcrumbs */
.toto-breadcrumbs {
  font-size: 0.82rem;
  color: var(--toto-text-muted);
  margin-bottom: 18px;
}

.toto-breadcrumbs a {
  color: var(--toto-gold-soft);
}

/* Single Post Reading View */
.single-article-wrap {
  background: var(--toto-surface-onyx);
  border: 1px solid var(--toto-border-subtle);
  border-radius: 12px;
  padding: 36px;
}

.single-article-content {
  max-width: 68ch;
  font-size: 1.04rem;
  line-height: 1.82;
  color: #ece9e2;
}

.single-article-content p:first-of-type::first-letter {
  font-family: var(--toto-font-display);
  font-size: 3.1rem;
  float: left;
  line-height: 0.88;
  margin-right: 12px;
  margin-top: 6px;
  color: var(--toto-gold-soft);
  font-weight: 700;
}

/* Gutenberg Alignment Support */
.alignwide {
  max-width: 100%;
}

.alignfull {
  width: 100%;
}

/* Sidebar Blogroll */
.blogroll-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--toto-surface-onyx);
  border: 1px solid var(--toto-border-subtle);
  border-radius: 12px;
  padding: 24px;
}

.widget-title {
  font-family: var(--toto-font-display);
  font-size: 1.08rem;
  color: var(--toto-gold-soft);
  margin: 0 0 14px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--toto-border-gold);
}

.blogroll-list,
.sidebar-widget ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blogroll-item a,
.sidebar-widget ul.menu li a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--toto-surface-elevated);
  border: 1px solid var(--toto-border-subtle);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
}

.blogroll-item a:hover,
.sidebar-widget ul.menu li a:hover {
  border-color: var(--toto-gold);
  background: rgba(185, 28, 28, 0.2);
}

.blogroll-item-title {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: #ffffff;
}

.blogroll-item-note {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--toto-text-muted);
  margin-top: 2px;
}

/* Search Form */
.search-form {
  display: flex;
  gap: 8px;
}

.search-field {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--toto-bg-obsidian);
  border: 1px solid var(--toto-border-subtle);
  color: #ffffff;
  font-size: 0.9rem;
}

.search-submit {
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--toto-crimson);
  border: 1px solid var(--toto-border-gold);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

/* Automatic Prediction & Output Tables */
.toto-prediction-section {
  position: relative;
  border-bottom: 1px solid var(--toto-border-gold);
  padding: 52px 0;
}

.toto-pred-controls {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  background: var(--toto-surface-onyx);
  border: 1px solid var(--toto-border-gold);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.toto-pred-field label {
  display: block;
  font-size: 0.78rem;
  color: var(--toto-text-muted);
  margin-bottom: 6px;
}

.toto-pred-field select,
.toto-pred-field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--toto-border-subtle);
  background: var(--toto-bg-obsidian);
  color: #ffffff;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.toto-pred-spotlight {
  background: var(--toto-surface-onyx);
  border: 1px solid var(--toto-border-gold);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
}

.toto-pred-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.toto-pred-card {
  background: var(--toto-surface-elevated);
  border: 1px solid var(--toto-border-subtle);
  border-radius: 10px;
  padding: 18px;
}

.toto-pred-card-primary {
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.55) 0%, var(--toto-surface-elevated) 100%);
  border-color: rgba(212, 175, 55, 0.45);
}

.toto-pred-label {
  font-size: 0.78rem;
  color: var(--toto-text-muted);
  margin: 0 0 6px 0;
}

.toto-pred-digits {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--toto-gold-soft);
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.toto-table-card {
  background: var(--toto-surface-onyx);
  border: 1px solid var(--toto-border-gold);
  border-radius: 12px;
  overflow: hidden;
}

.toto-table-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--toto-border-gold);
}

.toto-tab-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border-radius: 8px;
  background: var(--toto-bg-obsidian);
  border: 1px solid var(--toto-border-subtle);
}

.toto-tab-btn {
  padding: 7px 14px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--toto-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.toto-tab-btn.is-active {
  background: var(--toto-crimson);
  color: #ffffff;
}

.toto-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.toto-result-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.toto-result-table th {
  padding: 13px 18px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--toto-gold-soft);
  background: rgba(24, 24, 30, 0.96);
  border-bottom: 1px solid var(--toto-border-gold);
  white-space: nowrap;
}

.toto-result-table td {
  padding: 13px 18px;
  font-size: 0.88rem;
  color: #e7e5e4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.toto-result-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.toto-result-table td.is-4d {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--toto-gold-soft);
}

@media (max-width: 960px) {
  .toto-pred-controls,
  .toto-pred-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .toto-pred-controls,
  .toto-pred-grid {
    grid-template-columns: 1fr;
  }
}

/* Secondary Background Footer */
.site-footer {
  position: relative;
  border-top: 1px solid var(--toto-border-gold);
  background-color: #070709;
  background-size: cover;
  background-position: center;
  padding: 56px 0 32px;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.90) 0%, rgba(16, 6, 8, 0.96) 100%);
}

.footer-inner {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--toto-border-subtle);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--toto-text-muted);
}

.pagination {
  margin-top: 32px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--toto-surface-onyx);
  border: 1px solid var(--toto-border-subtle);
  color: var(--toto-text-muted);
  font-variant-numeric: tabular-nums;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--toto-crimson);
  border-color: var(--toto-gold);
  color: #ffffff;
}

@media (max-width: 960px) {
  .blogroll-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .primary-nav,
  .header-cta {
    display: none;
  }

  .primary-nav.is-open {
    display: flex;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: #0d0d11;
    border-bottom: 1px solid var(--toto-border-gold);
    padding: 20px;
  }

  .primary-nav.is-open ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .hero-editorial {
    padding: 44px 0;
  }

  .single-article-wrap {
    padding: 24px 20px;
  }
}
