/*
Theme Name: ArochukwuBlog News
Theme URI: https://arochukwublog.com
Author: ArochukwuBlog
Description: Custom, mobile-first, ultra-fast editorial news theme for ArochukwuBlog with black, white, and red branding, continuous right-to-left 7-day most-read ticker, bold headlines across all posts, Lagos date & time, date-only + reading time metadata, admin-assigned verified blue tick, custom clipboard/WhatsApp share format, and a single-section black footer.
Version: 1.0.7
Requires at least: 6.0
Tested up to: 7.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: arochukwublog-news
*/

:root {
  --ab-bg: #ffffff;
  --ab-surface: #f8f9fa;
  --ab-ink: #111111;
  --ab-muted: #55595c;
  --ab-border: #e5e7eb;
  --ab-red: #d90429;
  --ab-red-dark: #a8031f;
  --ab-footer-bg: #111111;
  --ab-footer-ink: #e5e7eb;
  --ab-font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ab-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--ab-bg);
  color: var(--ab-ink);
  font-family: var(--ab-font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--ab-ink);
  text-decoration: none;
}

a:hover {
  color: var(--ab-red);
}

.ab-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top Utility Bar */
.ab-topbar {
  background: #0d0d0d;
  color: #f3f4f6;
  font-size: 0.78rem;
  padding: 7px 0;
  border-bottom: 1px solid #222;
}

.ab-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ab-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ab-topbar-datetime {
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f3f4f6;
}

.ab-topbar-handle {
  font-weight: 800;
  color: #f87171;
  letter-spacing: 0.02em;
}

.ab-social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ab-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.ab-social-links a:hover {
  background: var(--ab-red);
  color: #ffffff;
}

.ab-social-links svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

/* Main Header */
.ab-header {
  background: #ffffff;
  border-bottom: 3px solid var(--ab-ink);
  position: sticky;
  top: 0;
  z-index: 990;
}

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

.ab-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ab-font-sans);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ab-ink);
}

.ab-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ab-ink);
  flex-shrink: 0;
}

.ab-brand-red {
  color: var(--ab-red);
}

.ab-nav {
  display: none;
  align-items: center;
  gap: 20px;
}

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

.ab-nav a {
  font-family: var(--ab-font-sans);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.ab-nav a:hover,
.ab-nav .current-menu-item > a {
  color: var(--ab-red);
  border-bottom-color: var(--ab-red);
}

.ab-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ab-icon-btn {
  background: transparent;
  border: 1px solid var(--ab-border);
  border-radius: 4px;
  color: var(--ab-ink);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
}

.ab-icon-btn:hover {
  border-color: var(--ab-red);
  color: var(--ab-red);
}

.ab-mobile-nav {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--ab-border);
  padding: 12px 16px 18px;
}

.ab-mobile-nav.is-open {
  display: block;
}

.ab-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ab-mobile-nav li {
  border-bottom: 1px solid var(--ab-border);
}

.ab-mobile-nav a {
  display: block;
  padding: 11px 4px;
  font-family: var(--ab-font-sans);
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
}

.ab-search-bar {
  display: none;
  background: var(--ab-surface);
  border-bottom: 1px solid var(--ab-border);
  padding: 10px 0;
}

.ab-search-bar.is-open {
  display: block;
}

.ab-search-form {
  display: flex;
  gap: 8px;
}

.ab-search-form input[type="search"] {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.95rem;
}

.ab-search-form button {
  background: var(--ab-red);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 0 18px;
  font-family: var(--ab-font-sans);
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

/* Continuous Right-to-Left Most Read (7 Days) Ticker */
.ab-ticker {
  background: var(--ab-red);
  color: #ffffff;
  padding: 8px 0;
  font-size: 0.85rem;
  overflow: hidden;
}

.ab-ticker-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ab-ticker-badge {
  background: #111111;
  color: #ffffff;
  font-family: var(--ab-font-sans);
  font-weight: 900;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 2;
}

.ab-ticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-width: 0;
}

.ab-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: abMarqueeRightToLeft 38s linear infinite;
}

.ab-ticker-viewport:hover .ab-ticker-track {
  animation-play-state: paused;
}

.ab-ticker-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  flex-shrink: 0;
}

.ab-ticker-group a {
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.ab-ticker-group a::after {
  content: " • ";
  color: rgba(255, 255, 255, 0.75);
  margin-left: 16px;
}

.ab-ticker-group a:hover {
  text-decoration: underline;
}

@keyframes abMarqueeRightToLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Main Content Layout */
.ab-main {
  padding: 20px 0 36px;
}

.ab-home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.ab-cat-badge {
  display: inline-block;
  background: var(--ab-red);
  color: #ffffff;
  font-family: var(--ab-font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
}

/* Hero Story */
.ab-hero-card {
  border-bottom: 2px solid var(--ab-border);
  padding-bottom: 20px;
}

.ab-hero-media {
  position: relative;
  aspect-ratio: 3 / 2;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: #111111;
  margin-bottom: 12px;
}

.ab-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.ab-hero-title {
  font-family: var(--ab-font-sans);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}

.ab-meta {
  font-size: 0.84rem;
  color: var(--ab-muted);
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.ab-read-time {
  display: inline-block;
  background: #f3f4f6;
  color: #111111;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 1px 7px;
  border-radius: 3px;
}

.ab-excerpt {
  font-size: 0.9625rem;
  color: #2b2f33;
  margin: 0 0 12px;
}

.ab-read-more {
  display: inline-block;
  font-family: var(--ab-font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ab-red);
  border-bottom: 2px solid var(--ab-red);
  padding-bottom: 2px;
}

/* Trending Now Sidebar */
.ab-section-heading {
  font-family: var(--ab-font-sans);
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--ab-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ab-section-heading span {
  border-bottom: 3px solid var(--ab-red);
  padding-bottom: 6px;
  margin-bottom: -9px;
}

.ab-trending-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ab-trending-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ab-border);
}

.ab-trending-num {
  font-family: var(--ab-font-sans);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--ab-red);
  min-width: 24px;
}

/* Equal strong bold weight across all post headlines */
.ab-trending-link {
  font-family: var(--ab-font-sans);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.015em;
  display: block;
}

.ab-trending-meta {
  font-size: 0.8rem;
  color: var(--ab-muted);
  margin-top: 6px;
}

/* Latest News Cards Grid */
.ab-latest-section {
  margin-top: 26px;
}

.ab-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.ab-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ab-border);
}

.ab-card-thumb {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 4px;
  background: #111111;
}

.ab-card-body {
  flex: 1;
  min-width: 0;
}

.ab-card-title {
  font-family: var(--ab-font-sans);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 4px 0 6px;
}

/* Single Post & Static Pages */
.ab-breadcrumb {
  font-size: 0.8125rem;
  color: var(--ab-muted);
  margin-bottom: 12px;
}

.ab-breadcrumb a {
  color: var(--ab-muted);
  font-weight: 600;
}

.ab-breadcrumb a:hover {
  color: var(--ab-red);
}

.ab-single-h1 {
  font-family: var(--ab-font-sans);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.ab-post-byline-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 14px;
  flex-wrap: wrap;
}

.ab-byline-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ab-ink);
  flex-shrink: 0;
}

.ab-byline-author-name {
  font-family: var(--ab-font-sans);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ab-ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ab-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #1d9bf0;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.ab-single-featured {
  aspect-ratio: 3 / 2;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 16px;
  background: #111111;
}

.ab-single-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.ab-share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 20px;
  align-items: center;
}

.ab-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: none;
  border-radius: 4px;
  color: #ffffff !important;
  font-family: var(--ab-font-sans);
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
}

.ab-share-wa { background: #16a34a; }
.ab-share-fb { background: #1877f2; }
.ab-share-x  { background: #111111; }
.ab-share-cp { background: #4b5563; }

.ab-share-notice {
  font-size: 0.8rem;
  font-weight: 700;
  color: #15803d;
}

.ab-entry-content h2 {
  font-family: var(--ab-font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 24px 0 10px;
  line-height: 1.25;
}

.ab-entry-content h3 {
  font-family: var(--ab-font-sans);
  font-size: 1.08rem;
  font-weight: 800;
  margin: 20px 0 8px;
}

.ab-entry-content p {
  margin: 0 0 16px;
}

.ab-read-also {
  margin: 22px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--ab-red);
  border-top: 1px solid #fecdd3;
  border-right: 1px solid #fecdd3;
  border-bottom: 1px solid #fecdd3;
  background: #fff5f5;
  border-radius: 0 4px 4px 0;
}

.ab-read-also-label {
  display: block;
  font-family: var(--ab-font-sans);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ab-red);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.ab-read-also a {
  font-family: var(--ab-font-sans);
  font-weight: 800;
  font-size: 0.9625rem;
  color: var(--ab-ink);
}

/* Clean Author Profile Box inside Post (Zero Ads/Promo Buttons) */
.ab-author-box {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--ab-surface);
  border: 1px solid var(--ab-border);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 26px 0;
}

.ab-author-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--ab-ink);
}

.ab-author-name {
  font-family: var(--ab-font-sans);
  font-weight: 900;
  font-size: 1rem;
  margin: 0 0 3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ab-author-bio {
  font-size: 0.875rem;
  color: var(--ab-muted);
  margin: 0;
}

/* Related Stories */
.ab-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 12px;
}

.ab-related-card {
  border: 1px solid var(--ab-border);
  border-radius: 4px;
  padding: 12px;
  background: #ffffff;
}

.ab-related-card img {
  aspect-ratio: 3 / 2;
  width: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 3px;
  margin-bottom: 8px;
}

.ab-related-card a {
  font-family: var(--ab-font-sans);
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1.18;
  display: block;
}

/* Single Black Footer Section */
.ab-footer {
  background: var(--ab-footer-bg);
  color: var(--ab-footer-ink);
  padding: 32px 16px;
  margin-top: 32px;
}

.ab-footer-single {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.ab-footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ab-font-sans);
  font-weight: 900;
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.ab-footer-bio {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #d1d5db;
  margin: 0 0 18px;
}

.ab-footer-pages {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  font-family: var(--ab-font-sans);
  font-size: 0.82rem;
  font-weight: 700;
}

.ab-footer-pages a {
  color: #f3f4f6;
}

.ab-footer-pages a:hover {
  color: #f87171;
  text-decoration: underline;
}

.ab-footer-credit {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid #262626;
}

/* Tablet & Desktop Breakpoints */
@media (min-width: 768px) {
  .ab-nav {
    display: flex;
  }

  .ab-mobile-toggle {
    display: none;
  }

  .ab-hero-title {
    font-size: 2.15rem;
  }

  .ab-single-h1 {
    font-size: 2.25rem;
  }

  .ab-trending-link {
    font-size: 1.35rem;
  }

  .ab-card-title {
    font-size: 1.35rem;
  }

  .ab-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .ab-card {
    border-bottom: none;
    border: 1px solid var(--ab-border);
    border-radius: 4px;
    padding: 12px;
    background: #ffffff;
  }

  .ab-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .ab-home-grid {
    grid-template-columns: 1.85fr 1fr;
    gap: 28px;
  }
}
