/*
Theme Name: Misteri Prediksi
Theme URI: https://example.com/misteri-prediksi
Author: Misteri Prediksi
Author URI: https://example.com/
Description: Tema WordPress portal prediksi bergaya hitam-putih, atmosfer rumah angker, dengan layout artikel + sidebar yang terinspirasi portal berita klasik. Responsif, ringan, mendukung menu dropdown, widget, custom logo, featured image, dan Customizer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
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: misteri-prediksi
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments
*/

:root {
  --mp-black: #090909;
  --mp-charcoal: #191919;
  --mp-charcoal-2: #252525;
  --mp-white: #ffffff;
  --mp-paper: #f4f4f1;
  --mp-silver: #bcbcbc;
  --mp-muted: #7a7a7a;
  --mp-line: #dedede;
  --mp-shadow: 0 12px 35px rgba(0,0,0,.12);
  --mp-max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: #222;
  background: #ececea;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #000; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.mp-site-header {
  background: var(--mp-black);
  color: #fff;
  border-bottom: 1px solid #333;
}
.mp-header-inner {
  min-height: 142px;
  max-width: var(--mp-max);
  margin: 0 auto;
  padding: 24px 18px;
  display: grid;
  grid-template-columns: minmax(290px, 1fr) minmax(360px, 1.15fr);
  gap: 38px;
  align-items: center;
  position: relative;
}
.mp-header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background: url('assets/img/haunted-house.svg') center right / 420px auto no-repeat;
  pointer-events: none;
}
.mp-brand, .mp-header-ad { position: relative; z-index: 1; }
.mp-brand { display: flex; align-items: center; gap: 14px; }
.mp-custom-logo img, .custom-logo { max-height: 72px; width: auto; }
.mp-brand-mark {
  width: 74px; height: 74px; flex: 0 0 74px; border-radius: 50%;
  display: grid; place-items: center; border: 2px solid #eee;
  background: radial-gradient(circle at 35% 30%, #555, #050505 70%);
  box-shadow: inset 0 0 0 5px #151515, 0 0 0 1px #555;
  font-weight: 900; font-size: 27px; letter-spacing: -2px;
}
.mp-brand-text { min-width: 0; }
.mp-site-title { margin: 0; color: #fff; font-weight: 900; font-size: 31px; line-height: 1; text-transform: uppercase; letter-spacing: .5px; }
.mp-site-title span { font-weight: 300; color: #cfcfcf; }
.mp-tagline { margin: 8px 0 0; color: #9e9e9e; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; }
.mp-header-ad {
  min-height: 58px; border: 1px solid #4a4a4a; background: #f7f7f4; color: #111;
  display: flex; align-items: stretch; overflow: hidden;
}
.mp-header-ad img { width: 100%; height: 72px; object-fit: cover; display: block; }
.mp-ad-fallback { width: 100%; display: grid; grid-template-columns: 120px 1fr 100px; align-items: center; }
.mp-ad-fallback strong { background: #0c0c0c; color: #fff; align-self: stretch; display: grid; place-items: center; font-size: 18px; letter-spacing: 1px; }
.mp-ad-fallback b { text-align: center; font-size: 20px; letter-spacing: 1px; }
.mp-ad-fallback span { margin-right: 8px; background: #111; color: #fff; font-weight: 800; text-align: center; padding: 8px 6px; }

.mp-nav-wrap { background: #171717; border-top: 1px solid #222; border-bottom: 1px solid #111; }
.mp-nav-inner { max-width: var(--mp-max); margin: 0 auto; padding: 0 18px; display: flex; min-height: 64px; }
.mp-home-link, .mp-search-toggle {
  width: 64px; flex: 0 0 64px; display: grid; place-items: center; color: #fff; background: #f2f2f2; color: #111;
  border: 0; cursor: pointer;
}
.mp-home-link { font-size: 26px; }
.mp-search-toggle { margin-left: auto; font-size: 24px; }
.mp-menu-toggle { display: none; margin-left: auto; padding: 0 18px; color: #fff; background: #111; border: 0; font-weight: 700; }
.mp-primary-nav { flex: 1; min-width: 0; }
.mp-primary-nav ul { list-style: none; margin: 0; padding: 0; }
.mp-primary-nav > ul, .mp-primary-nav .menu { display: flex; height: 100%; align-items: stretch; }
.mp-primary-nav li { position: relative; }
.mp-primary-nav > ul > li > a, .mp-primary-nav .menu > li > a {
  min-height: 64px; display: flex; align-items: center; padding: 0 18px; color: #fff; font-size: 12px; text-transform: uppercase; font-weight: 700; white-space: nowrap;
}
.mp-primary-nav > ul > li:hover > a, .mp-primary-nav .menu > li:hover > a, .mp-primary-nav .current-menu-item > a { background: #242424; }
.mp-primary-nav ul ul {
  display: none; position: absolute; top: 100%; left: 0; width: 210px; z-index: 99; background: #111; box-shadow: var(--mp-shadow); border-top: 2px solid #fff;
}
.mp-primary-nav li:hover > ul { display: block; }
.mp-primary-nav ul ul a { display: block; padding: 11px 15px; color: #eee; font-size: 11px; text-transform: uppercase; border-bottom: 1px solid #292929; }
.mp-primary-nav ul ul a:hover { background: #2b2b2b; color: #fff; }

.mp-search-panel { display: none; background: #090909; border-top: 1px solid #333; }
.mp-search-panel.is-open { display: block; }
.mp-search-panel .search-form { max-width: var(--mp-max); margin: 0 auto; padding: 18px; display: flex; }
.mp-search-panel .search-field { flex: 1; padding: 12px 14px; border: 1px solid #555; background: #1b1b1b; color: #fff; }
.mp-search-panel .search-submit { border: 0; background: #fff; color: #111; padding: 0 20px; font-weight: 800; }

.mp-page-shell { background: #fff; min-height: 700px; }
.mp-layout { max-width: var(--mp-max); margin: 0 auto; padding: 44px 18px 70px; display: grid; grid-template-columns: minmax(0, 2fr) 330px; gap: 46px; align-items: start; }
.mp-content { min-width: 0; }
.mp-sidebar { min-width: 0; }

.mp-archive-title { margin: 0 0 28px; font-size: 25px; text-transform: uppercase; letter-spacing: .4px; }
.mp-post-card { margin-bottom: 40px; }
.mp-post-views { color: #9a9a9a; font-size: 12px; margin-bottom: 6px; }
.mp-post-views::before { content: "▥"; margin-right: 6px; color: #666; }
.mp-thumb-link { display: block; background: #111; overflow: hidden; border: 1px solid #222; }
.mp-thumb-link img { display: block; width: 100%; aspect-ratio: 16/8.7; object-fit: cover; transition: transform .25s ease, filter .25s ease; }
.mp-thumb-link:hover img { transform: scale(1.012); filter: contrast(1.05); }
.mp-card-title { margin: 12px 0 6px; font-size: 16px; font-weight: 500; line-height: 1.35; }
.mp-card-title a:hover { text-decoration: underline; }
.mp-excerpt { color: #8a8a8a; margin: 0 0 16px; font-size: 12px; line-height: 1.55; }
.mp-post-meta { display: flex; flex-wrap: wrap; gap: 22px; color: #333; font-size: 10px; text-transform: uppercase; }
.mp-post-meta a { color: #333; }
.mp-post-meta span::before { margin-right: 5px; color: #777; }
.mp-post-meta .date::before { content: "◉"; }
.mp-post-meta .author::before { content: "●"; }

.mp-widget { margin-bottom: 34px; }
.mp-widget-title {
  margin: 0 0 20px; font-size: 17px; text-transform: uppercase; line-height: 1.2; display: flex; align-items: center; gap: 12px;
}
.mp-widget-title::after { content: ""; height: 1px; flex: 1; background: #d9d9d9; }
.mp-widget img { display: block; }
.mp-side-card { border: 1px solid #292929; background: #0b0b0b; color: #fff; padding: 14px; box-shadow: inset 0 0 35px rgba(255,255,255,.03); }
.mp-side-card h3 { margin: 0 0 12px; font-size: 16px; color: #fff; }
.mp-side-card p { margin: 0; color: #bdbdbd; font-size: 12px; }
.mp-side-card .ghost-cta { display: inline-block; margin-top: 12px; padding: 7px 10px; border: 1px solid #aaa; font-size: 10px; text-transform: uppercase; color: #fff; }
.mp-prediction-group { margin-bottom: 14px; border-bottom: 1px solid #ddd; padding-bottom: 10px; }
.mp-prediction-group h4 { margin: 0 0 8px; padding: 6px 8px; display: inline-flex; align-items: center; gap: 7px; color: #111; background: #f0f0f0; border-left: 5px solid #111; font-size: 16px; text-transform: uppercase; }
.mp-prediction-group ul { margin: 0; padding: 0; list-style: none; }
.mp-prediction-group li a { display: block; padding: 2px 0; font-size: 11px; text-transform: uppercase; color: #565656; }
.mp-prediction-group li a:hover { color: #000; text-decoration: underline; }

.mp-article-header { margin-bottom: 24px; }
.mp-article-title { margin: 0 0 9px; font-size: 30px; line-height: 1.25; }
.mp-single-thumb { margin: 18px 0 25px; }
.mp-single-thumb img { width: 100%; display: block; }
.mp-article-content { font-size: 15px; color: #333; }
.mp-article-content h2, .mp-article-content h3 { margin-top: 30px; line-height: 1.3; }
.mp-article-content a { text-decoration: underline; }
.mp-article-content img { height: auto; }
.mp-article-content table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.mp-article-content td, .mp-article-content th { border: 1px solid #ccc; padding: 7px 9px; }
.mp-article-content blockquote { margin: 24px 0; padding: 14px 18px; border-left: 4px solid #111; background: #f3f3f3; }

.nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 35px; }
.nav-links .page-numbers { min-width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #d0d0d0; padding: 0 9px; }
.nav-links .current, .nav-links a:hover { background: #111; color: #fff; border-color: #111; }

.mp-site-footer { background: #0b0b0b; color: #aaa; border-top: 1px solid #2f2f2f; }
.mp-footer-inner { max-width: var(--mp-max); margin: 0 auto; padding: 34px 18px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.mp-footer-brand { color: #fff; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.mp-back-top { width: 34px; height: 34px; display: grid; place-items: center; background: #222; color: #fff; border: 1px solid #444; }

@media (max-width: 900px) {
  .mp-header-inner { grid-template-columns: 1fr; gap: 18px; min-height: auto; }
  .mp-header-ad { max-width: 650px; width: 100%; }
  .mp-layout { grid-template-columns: 1fr; }
  .mp-sidebar { border-top: 1px solid #ddd; padding-top: 34px; }
  .mp-menu-toggle { display: block; }
  .mp-search-toggle { margin-left: 0; }
  .mp-primary-nav { display: none; position: absolute; z-index: 150; left: 0; right: 0; top: 100%; background: #151515; }
  .mp-nav-wrap { position: relative; }
  .mp-nav-inner { padding: 0; }
  .mp-primary-nav.is-open { display: block; }
  .mp-primary-nav > ul, .mp-primary-nav .menu { display: block; }
  .mp-primary-nav > ul > li > a, .mp-primary-nav .menu > li > a { min-height: 48px; padding: 0 18px; border-bottom: 1px solid #292929; }
  .mp-primary-nav ul ul { display: block; position: static; width: auto; border-top: 0; box-shadow: none; background: #0e0e0e; }
  .mp-primary-nav ul ul a { padding-left: 32px; }
}

@media (max-width: 560px) {
  .mp-header-inner { padding: 20px 15px; }
  .mp-brand-mark { width: 58px; height: 58px; flex-basis: 58px; font-size: 21px; }
  .mp-site-title { font-size: 24px; }
  .mp-tagline { font-size: 10px; }
  .mp-ad-fallback { grid-template-columns: 85px 1fr 74px; }
  .mp-ad-fallback strong, .mp-ad-fallback b { font-size: 12px; }
  .mp-ad-fallback span { font-size: 9px; }
  .mp-layout { padding: 28px 14px 55px; gap: 30px; }
  .mp-card-title { font-size: 15px; }
  .mp-article-title { font-size: 24px; }
  .mp-footer-inner { flex-direction: column; align-items: flex-start; }
}
