/*
Theme Name: Politiplot Super Pro
Theme URI: https://politiplot.com/
Author: OpenAI
Author URI: https://openai.com/
Description: Premium editorial WordPress theme for Politiplot with a bold U.S. news style homepage, monetization placements, category blocks, ticker, and polished article layouts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: politiplot-super-pro
*/

:root {
  --pp-bg: #0a0a0b;
  --pp-surface: #121316;
  --pp-surface-2: #17191d;
  --pp-border: rgba(255,255,255,0.08);
  --pp-text: #f2f4f8;
  --pp-muted: #9aa3b2;
  --pp-accent: #c70018;
  --pp-accent-2: #ff3149;
  --pp-white: #ffffff;
  --pp-max: 1320px;
  --pp-shadow: 0 20px 50px rgba(0,0,0,.35);
  --pp-radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, #090a0d 0%, #0d1014 100%);
  color: var(--pp-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pp-accent-2); }
figure { margin: 0; }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.site-wrap { min-height: 100vh; }
.container {
  width: min(calc(100% - 32px), var(--pp-max));
  margin: 0 auto;
}

.top-ticker {
  background: linear-gradient(90deg, #8b000e 0%, var(--pp-accent) 60%, #7a0915 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.top-ticker__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 44px;
}
.ticker-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
  white-space: nowrap;
}
.ticker-track {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.ticker-track span {
  display: inline-block;
  padding-left: 100%;
  animation: ppTicker 22s linear infinite;
  font-size: 13px;
  font-weight: 600;
}
@keyframes ppTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.top-meta { font-size: 12px; color: rgba(255,255,255,.88); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,10,14,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--pp-border);
}
.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.branding {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-mark {
  width: 18px;
  height: 18px;
  background: linear-gradient(180deg, var(--pp-accent) 0%, var(--pp-accent-2) 100%);
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(199,0,24,.16);
}
.site-title {
  margin: 0;
  font-size: 28px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 900;
}
.site-tagline {
  margin: 2px 0 0;
  color: var(--pp-muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.main-nav {
  justify-self: center;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}
.main-nav a {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #e8ebf0;
}
.main-nav .current-menu-item > a,
.main-nav a:hover {
  color: var(--pp-white);
}
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.search-toggle,
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--pp-border);
  background: rgba(255,255,255,.03);
  border-radius: 999px;
  color: var(--pp-white);
  cursor: pointer;
}
.mobile-menu-toggle { display: none; }
.search-panel {
  display: none;
  padding: 14px 0 20px;
  border-top: 1px solid var(--pp-border);
}
.search-panel.active { display: block; }
.search-form-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}
.search-form-wrap input {
  border-radius: 14px;
  border: 1px solid var(--pp-border);
  background: var(--pp-surface);
  color: var(--pp-text);
  padding: 14px 16px;
}
.search-form-wrap button {
  border: 0;
  border-radius: 14px;
  background: var(--pp-accent);
  color: #fff;
  padding: 14px 18px;
  font-weight: 800;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 22px;
  margin: 28px 0 38px;
}
.hero-main,
.hero-secondary article,
.news-card,
.sidebar-card,
.ad-card,
.newsletter-card,
.article-card,
.comments-area,
.archive-card,
.widget {
  background: linear-gradient(180deg, rgba(255,255,255,.035) 0%, rgba(255,255,255,.015) 100%);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  box-shadow: var(--pp-shadow);
}
.hero-main {
  position: relative;
  overflow: hidden;
  min-height: 600px;
}
.hero-main__image,
.hero-secondary__thumb,
.news-card__thumb,
.archive-thumb {
  position: relative;
  overflow: hidden;
}
.hero-main__image::after,
.hero-secondary__thumb::after,
.news-card__thumb::after,
.archive-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.84) 100%);
}
.hero-main img,
.hero-secondary img,
.news-card img,
.archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.hero-main:hover img,
.hero-secondary article:hover img,
.news-card:hover img,
.archive-card:hover img { transform: scale(1.04); }
.hero-main__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  z-index: 2;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  color: #fff;
  background: rgba(199,0,24,.9);
  padding: 8px 10px;
  border-radius: 999px;
}
.hero-main h2 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -.03em;
}
.hero-excerpt,
.card-excerpt,
.archive-excerpt,
.entry-excerpt {
  color: #d5dae2;
  font-size: 15px;
}
.meta-row,
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12px;
  color: var(--pp-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}
.hero-secondary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.hero-secondary article {
  overflow: hidden;
}
.hero-secondary__thumb { height: 190px; }
.hero-secondary__content { padding: 18px; }
.hero-secondary h3,
.news-card h3,
.archive-card h2 {
  margin: 10px 0 8px;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.hero-secondary h3 { font-size: 1.25rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin: 0 0 18px;
}
.section-title {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -.03em;
}
.section-subtitle {
  margin: 6px 0 0;
  color: var(--pp-muted);
  font-size: 15px;
}
.section-link {
  color: #fff;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: 13px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.news-card { overflow: hidden; }
.news-card__thumb { height: 220px; }
.news-card__body { padding: 18px; }
.news-card h3 { font-size: 1.18rem; }
.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,.08);
  padding: 6px 8px;
  border-radius: 999px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}
.category-block { padding: 20px; }
.category-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 14px;
}
.category-list li {
  border-top: 1px solid var(--pp-border);
  padding-top: 14px;
}
.category-list li:first-child { border-top: 0; padding-top: 0; }
.category-list h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.25;
}
.category-list .meta-row { font-size: 11px; }

.sidebar-stack {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 120px;
}
.sidebar-card,
.ad-card,
.newsletter-card,
.widget {
  padding: 22px;
}
.sidebar-card h3,
.newsletter-card h3,
.ad-card h3,
.widget-title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}
.most-read-list,
.trending-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.most-read-list li,
.trending-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.rank-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, var(--pp-accent), var(--pp-accent-2));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(199,0,24,.32);
}
.most-read-list h4,
.trending-list h4 { margin: 0 0 4px; font-size: .98rem; line-height: 1.25; }
.most-read-list p,
.trending-list p { margin: 0; color: var(--pp-muted); font-size: 13px; }
.ad-card {
  background: linear-gradient(180deg, rgba(199,0,24,.14) 0%, rgba(255,255,255,.02) 100%);
}
.ad-placeholder {
  border: 1px dashed rgba(255,255,255,.26);
  border-radius: 16px;
  min-height: 250px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #eef2f8;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255,255,255,.03);
}
.newsletter-card p,
.ad-card p { color: #d8dde6; }
.newsletter-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.newsletter-form input {
  border: 1px solid var(--pp-border);
  border-radius: 14px;
  padding: 14px 15px;
  background: rgba(255,255,255,.04);
  color: #fff;
}
.btn,
.newsletter-form button,
.comment-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, var(--pp-accent), var(--pp-accent-2));
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(199,0,24,.28);
}
.btn--ghost {
  background: transparent;
  border: 1px solid var(--pp-border);
  box-shadow: none;
}

.latest-list {
  display: grid;
  gap: 16px;
}
.article-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
}
.article-card__thumb { min-height: 210px; }
.article-card__content { padding: 22px; }
.article-card h3 { margin: 10px 0 10px; font-size: 1.55rem; line-height: 1.1; }
.article-card + .article-card { margin-top: 16px; }

.site-footer {
  margin-top: 52px;
  border-top: 1px solid var(--pp-border);
  background: rgba(0,0,0,.28);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding: 34px 0;
}
.footer-title { margin: 0 0 10px; font-size: 1rem; }
.footer-copy, .footer-meta {
  color: var(--pp-muted);
  font-size: 14px;
}
.footer-menu,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-bottom {
  border-top: 1px solid var(--pp-border);
  padding: 16px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}

.archive-layout,
.page-layout,
.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  margin-top: 28px;
}
.page-hero,
.archive-hero {
  padding: 26px;
  margin-top: 26px;
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.015) 100%);
}
.page-hero h1,
.archive-hero h1 { margin: 10px 0 0; line-height: 1; font-size: clamp(2rem, 3vw, 3rem); }
.archive-loop { display: grid; gap: 18px; }
.archive-card { overflow: hidden; display: grid; grid-template-columns: 260px 1fr; }
.archive-thumb { min-height: 220px; }
.archive-content { padding: 22px; }

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  margin-top: 28px;
  align-items: start;
}
.single-main {
  min-width: 0;
}
.single-hero {
  border: 1px solid var(--pp-border);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.015) 100%);
  box-shadow: var(--pp-shadow);
}
.single-hero__media { position: relative; }
.single-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,.6) 100%);
}
.single-hero__content {
  padding: 28px;
}
.entry-title {
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: .98;
  letter-spacing: -.04em;
  margin: 16px 0 14px;
}
.entry-content-wrap {
  margin-top: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.035) 0%, rgba(255,255,255,.015) 100%);
  border: 1px solid var(--pp-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--pp-shadow);
}
.entry-content {
  color: #eef2f8;
  font-size: 18px;
}
.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content h2,
.entry-content h3,
.entry-content h4 { max-width: 760px; }
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-top: 1.7em;
}
.entry-content blockquote {
  border-left: 4px solid var(--pp-accent);
  margin: 28px 0;
  padding: 8px 0 8px 18px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
}
.entry-content a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); }
.entry-content img { border-radius: 18px; }
.entry-tags {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.entry-tags a {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--pp-border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}
.share-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0 0;
}
.share-chip {
  border: 1px solid var(--pp-border);
  background: rgba(255,255,255,.03);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
}
.inline-ad {
  margin: 30px 0;
  padding: 22px;
  border-radius: 20px;
  border: 1px dashed rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(199,0,24,.09) 0%, rgba(255,255,255,.02) 100%);
  text-align: center;
}
.related-posts { margin-top: 34px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pp-accent), var(--pp-accent-2));
  z-index: 300;
}

.pagination,
.navigation.pagination {
  margin: 24px 0 0;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  margin: 0 8px 8px 0;
  border-radius: 999px;
  border: 1px solid var(--pp-border);
  background: rgba(255,255,255,.03);
  color: #fff;
  font-weight: 800;
}
.page-numbers.current { background: var(--pp-accent); border-color: transparent; }

.comment-form {
  display: grid;
  gap: 14px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--pp-border);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  color: #fff;
  padding: 14px 16px;
}

.wp-caption,
.gallery-caption,
.bypostauthor,
.alignleft,
.alignright,
.aligncenter { max-width: 100%; }
.alignleft { float: left; margin-right: 18px; }
.alignright { float: right; margin-left: 18px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

@media (max-width: 1180px) {
  .content-grid,
  .single-layout,
  .archive-layout,
  .page-layout,
  .search-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-stack { position: static; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
  .main-nav {
    display: none;
    grid-column: 1 / -1;
    justify-self: stretch;
    padding-bottom: 16px;
  }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
  .mobile-menu-toggle { display: inline-flex; }
  .hero-grid,
  .article-card,
  .archive-card,
  .footer-grid,
  .category-grid,
  .related-grid,
  .news-grid,
  .top-ticker__inner {
    grid-template-columns: 1fr;
  }
  .article-card__thumb,
  .archive-thumb,
  .hero-main { min-height: auto; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 20px), var(--pp-max)); }
  .site-title { font-size: 22px; }
  .hero-main__content,
  .single-hero__content,
  .entry-content-wrap,
  .page-hero,
  .archive-content,
  .article-card__content,
  .news-card__body,
  .sidebar-card,
  .ad-card,
  .newsletter-card,
  .widget,
  .category-block,
  .hero-secondary__content { padding: 18px; }
  .entry-content { font-size: 17px; }
  .entry-title { font-size: 2rem; }
}
