/*
Theme Name: Agen777 SEO Portal
Theme URI: https://www.agen-777.com
Author: Agen777
Author URI: https://www.agen-777.com
Description: Tema portal informasi slot online Agen777 — ringan, cepat, dan ramah SEO dengan font Google (Plus Jakarta Sans & Oswald).
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.8
License: GNU General Public License v2 or later
Text Domain: agen777-seo
Tags: dark, custom-logo, custom-menu, featured-images, one-column, translation-ready
*/

:root {
  --bg: #0b0f1a;
  --bg-2: #0f1526;
  --card: #141d33;
  --card-2: #1a2542;
  --line: #233156;
  --gold: #f2c14e;
  --gold-2: #e8a020;
  --gold-soft: #ffd97a;
  --red: #e5484d;
  --red-2: #c73338;
  --text: #dde4f2;
  --muted: #93a0ba;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 34px rgba(2, 6, 18, 0.55);
  --grad-gold: linear-gradient(135deg, #ffd97a 0%, #f2c14e 45%, #d8901f 100%);
  --grad-red: linear-gradient(135deg, #f0595e 0%, #d63c41 60%, #b32b30 100%);
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Oswald", "Plus Jakarta Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(242, 193, 78, 0.09), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, rgba(60, 90, 190, 0.10), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.22;
  letter-spacing: 0.3px;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); }

p { margin: 0 0 1.1em; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: #1a1205; padding: 10px 18px;
  font-weight: 700; border-radius: 0 0 10px 0; z-index: 999;
}
.skip-link:focus { left: 0; color: #1a1205; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 800; font-size: 0.98rem;
  padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-gold {
  background: var(--grad-gold); color: #221503;
  box-shadow: 0 10px 26px rgba(242, 193, 78, 0.28);
}
.btn-gold:hover { color: #221503; box-shadow: 0 14px 30px rgba(242, 193, 78, 0.4); }
.btn-red {
  background: var(--grad-red); color: #fff;
  box-shadow: 0 10px 26px rgba(229, 72, 77, 0.30);
}
.btn-red:hover { color: #fff; box-shadow: 0 14px 30px rgba(229, 72, 77, 0.42); }
.btn-ghost {
  background: rgba(242, 193, 78, 0.08); color: var(--gold-soft);
  border: 1px solid rgba(242, 193, 78, 0.45);
}
.btn-ghost:hover { color: var(--gold); background: rgba(242, 193, 78, 0.15); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 120;
  background: rgba(10, 14, 25, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 26px; min-height: 72px; }
.custom-logo { max-height: 52px; width: auto; }
.logo-text {
  font-family: var(--font-display); font-size: 1.65rem; font-weight: 700;
  color: var(--white); letter-spacing: 1px;
}
.logo-text span { color: var(--gold); }
.site-branding { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 9px 13px; border-radius: 9px;
  color: var(--text); font-weight: 600; font-size: 0.93rem;
}
.main-nav a:hover { color: var(--gold); background: rgba(242, 193, 78, 0.08); text-decoration: none; }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--gold); background: rgba(242, 193, 78, 0.1); }

.header-cta { flex-shrink: 0; padding: 10px 0 10px 8px; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 11px; cursor: pointer;
}
.nav-toggle svg { display: block; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #0c1120; border-bottom: 1px solid var(--line);
    padding: 12px 22px 18px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px 10px; font-size: 1rem; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 16px 0 2px; font-size: 0.85rem; color: var(--muted);
}
.breadcrumbs span[aria-current] { color: var(--gold-soft); }

/* ---------- Sections ---------- */
.section { padding: 58px 0; }
.section-head { max-width: 720px; margin: 0 auto 34px; text-align: center; }
.section-head .kicker,
.kicker {
  display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 2.4px;
  text-transform: uppercase; color: var(--gold);
  background: rgba(242, 193, 78, 0.1); border: 1px solid rgba(242, 193, 78, 0.3);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-title { margin-bottom: 10px; }
.section-sub { color: var(--muted); margin: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 92px 0 84px; text-align: center;
  background-image:
    linear-gradient(180deg, rgba(8, 11, 20, 0.72) 0%, rgba(9, 13, 24, 0.86) 55%, var(--bg) 100%),
    var(--hero-bg, none);
  background-size: cover; background-position: center;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 90px;
  background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none;
}
.hero-inner { position: relative; max-width: 880px; margin: 0 auto; padding: 0 22px; }
.hero .kicker { margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 18px;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.55);
}
.hero h1 em {
  font-style: normal;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}
.hero-lead {
  font-size: clamp(1rem, 2vw, 1.16rem); color: #c6d0e4;
  max-width: 720px; margin: 0 auto 30px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.hero-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(20, 29, 51, 0.75); border: 1px solid var(--line);
  padding: 7px 15px; border-radius: 999px; font-size: 0.85rem; color: #c6d0e4;
}
.chip svg { flex-shrink: 0; }

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 30px 0;
}
.stat { text-align: center; padding: 8px; }
.stat b {
  display: block; font-family: var(--font-display); font-size: 2rem;
  color: var(--gold); line-height: 1.1;
}
.stat span { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--card) 0%, #111a2e 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: rgba(242, 193, 78, 0.55); transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 14px; font-size: 0.95rem; }
.card .more { font-weight: 700; font-size: 0.9rem; }

.icon-badge {
  width: 52px; height: 52px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(242, 193, 78, 0.12); border: 1px solid rgba(242, 193, 78, 0.35);
  margin-bottom: 16px;
}
.icon-badge svg { width: 26px; height: 26px; }

/* ---------- Post cards ---------- */
.post-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.post-card:hover { border-color: rgba(242, 193, 78, 0.55); transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .thumb .cat {
  position: absolute; left: 12px; top: 12px;
  background: rgba(11, 15, 26, 0.85); border: 1px solid rgba(242, 193, 78, 0.5);
  color: var(--gold-soft); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.6px;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.post-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.post-card h3 a { color: var(--white); }
.post-card h3 a:hover { color: var(--gold); text-decoration: none; }
.post-card .excerpt { color: var(--muted); font-size: 0.92rem; flex: 1; margin-bottom: 14px; }
.post-card .meta { font-size: 0.8rem; color: #7d8aa5; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Providers ---------- */
.provider-card { text-align: center; padding: 30px 20px; }
.provider-card .icon-badge { margin: 0 auto 14px; width: 64px; height: 64px; border-radius: 16px; }
.provider-card .icon-badge svg { width: 32px; height: 32px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
details.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0; overflow: hidden;
}
details.faq-item summary {
  list-style: none; cursor: pointer; padding: 17px 20px;
  font-weight: 700; color: var(--white); display: flex; align-items: center; gap: 10px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::before {
  content: "+"; font-family: var(--font-display); color: var(--gold);
  font-size: 1.25rem; line-height: 1; margin-left: auto;
}
details.faq-item[open] summary::before { content: "–"; }
details.faq-item .faq-body { padding: 0 20px 18px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(242, 193, 78, 0.14), transparent 70%),
    linear-gradient(135deg, #131c33, #0d1322);
  border: 1px solid rgba(242, 193, 78, 0.35); border-radius: 20px;
  text-align: center; padding: 52px 30px;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--muted); max-width: 640px; margin: 0 auto 26px; }

/* ---------- Page / single layout ---------- */
.page-hero { padding: 46px 0 10px; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero .lead { color: var(--muted); max-width: 780px; font-size: 1.05rem; }
.content-area { padding: 26px 0 70px; }
.layout-narrow { max-width: 860px; margin: 0 auto; }

.entry-content h2 {
  margin-top: 1.6em; padding-left: 14px;
  border-left: 4px solid var(--gold);
}
.entry-content h3 { margin-top: 1.3em; color: var(--gold-soft); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.entry-content li { margin-bottom: 0.45em; }
.entry-content table {
  width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.93rem;
  background: var(--card); border-radius: var(--radius-sm); overflow: hidden;
}
.entry-content th {
  background: rgba(242, 193, 78, 0.12); color: var(--gold-soft);
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.4px;
}
.entry-content th, .entry-content td { padding: 11px 14px; border: 1px solid var(--line); text-align: left; }
@media (max-width: 760px) {
  .entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.entry-content { overflow-wrap: break-word; }
.entry-content blockquote {
  margin: 1.5em 0; padding: 16px 22px; border-left: 4px solid var(--gold);
  background: rgba(242, 193, 78, 0.06); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #c9d3e8; font-style: italic;
}
.entry-content img { border-radius: var(--radius); margin: 1.2em auto; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }

.post-thumb {
  border-radius: var(--radius); overflow: hidden; margin: 22px 0 8px;
  border: 1px solid var(--line);
}
.post-meta { color: var(--muted); font-size: 0.88rem; display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.tag-pill {
  background: rgba(96, 125, 199, 0.12); border: 1px solid var(--line);
  color: #a9b7d4; font-size: 0.8rem; padding: 4px 12px; border-radius: 999px;
}

.author-box {
  margin-top: 34px; display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.author-box .avatar { border-radius: 50%; }
.author-box b { color: var(--gold-soft); }
.author-box p { margin: 4px 0 0; font-size: 0.9rem; color: var(--muted); }

.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px;
}
.post-nav a {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px; font-weight: 700; font-size: 0.9rem; color: var(--text);
}
.post-nav a:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.post-nav .next { text-align: right; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { text-align: left; } }

/* ---------- Jump / alternatif page ---------- */
.jump-wrap { text-align: center; padding: 10px 0 30px; }
.jump-box {
  background:
    radial-gradient(500px 260px at 50% 0%, rgba(242, 193, 78, 0.16), transparent 70%),
    linear-gradient(160deg, #16203a, #0e1425);
  border: 1px solid rgba(242, 193, 78, 0.4); border-radius: 20px;
  padding: 46px 26px; margin: 26px 0 34px;
}
.jump-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  letter-spacing: 1px; color: #221503; background: var(--grad-gold);
  padding: 18px 44px; border-radius: 999px;
  box-shadow: 0 14px 40px rgba(242, 193, 78, 0.35);
  transition: transform 0.18s, box-shadow 0.18s; cursor: pointer;
}
.jump-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 48px rgba(242, 193, 78, 0.48); }
.jump-note { font-size: 0.85rem; color: var(--muted); margin-top: 16px; }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 90px 0 100px; }
.error-404 .code {
  font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); line-height: 1;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}
.error-404 h1 { margin: 6px 0 14px; }
.error-404 p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }
.error-404 .search-form { max-width: 460px; margin: 0 auto 26px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 10px; }
.search-form input[type="search"] {
  flex: 1; background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px;
  font-family: var(--font-body); font-size: 0.95rem; min-width: 0;
}
.search-form input[type="search"]:focus { outline: 2px solid var(--gold); border-color: transparent; }
.search-form button[type="submit"] { border: 0; }

/* ---------- Archive header ---------- */
.archive-header { padding: 46px 0 6px; }
.archive-header .lead { color: var(--muted); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 42px; text-align: center; padding: 9px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 9px;
  color: var(--text); font-weight: 700; font-size: 0.9rem;
}
.pagination .page-numbers.current { background: var(--grad-gold); color: #221503; border-color: transparent; }
.pagination .page-numbers:hover:not(.current) { border-color: var(--gold); color: var(--gold); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #0c1120, #090d18);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding: 48px 0 30px;
}
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
  font-family: var(--font-display); color: var(--gold); font-size: 1.02rem;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #aab6cf; font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold); }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 12px; }
.disclaimer-box {
  border: 1px dashed rgba(229, 72, 77, 0.5); background: rgba(229, 72, 77, 0.06);
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: 0.82rem; color: #c4a0a5;
  margin-bottom: 20px;
}
.footer-bottom {
  border-top: 1px solid var(--line); padding: 18px 0 26px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: #7d8aa5; font-size: 0.84rem;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.list-check { list-style: none; padding-left: 0; }
.list-check li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.list-check li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--gold); font-weight: 800;
}
.notice-gold {
  background: rgba(242, 193, 78, 0.07); border: 1px solid rgba(242, 193, 78, 0.3);
  border-radius: var(--radius-sm); padding: 16px 20px; font-size: 0.92rem; color: #d9c98f;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
