/*
Theme Name: أخبار بلس v3
Theme URI: https://akhbarplus.com
Author: Akhbar Plus Team
Author URI: https://akhbarplus.com
Description: قالب إخباري احترافي RTL باللون الأزرق الغامق والبرتقالي. يدعم اللغة العربية بالكامل مع تصميم متجاوب وعصري.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: akhbarplus
Tags: rtl-language, news, blog, custom-menu, featured-images, post-formats, sticky-post, threaded-comments, translation-ready, dark
*/

/* ============================
   أخبار بلس — نظام الألوان الأساسي
   ============================ */
:root {
  --ap-bg:      #0B1D3A;
  --ap-bg2:     #0D2244;
  --ap-bg3:     #122756;
  --ap-bg4:     #1A3468;
  --ap-bg5:     #1E3D74;
  --ap-orange:  #F5600A;
  --ap-orange2: #D45208;
  --ap-white:   #FFFFFF;
  --ap-g1:      #C8D8EC;
  --ap-g2:      #7A9BC0;
  --ap-g3:      #3D5878;
  --ap-border:  #1E3F6A;
  --ap-red:     #DC2626;
  --ap-green:   #16A34A;
  --ap-font-h:  'Cairo', sans-serif;
  --ap-font-b:  'Tajawal', sans-serif;
  --ap-radius:  8px;
  --ap-max-w:   1380px;
}

/* ============================
   RESET & BASE
   ============================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--ap-bg);
  color: var(--ap-g1);
  font-family: var(--ap-font-b);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.7;
  font-size: 15px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s;
}

a:hover { color: var(--ap-orange); }

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

ul, ol { list-style: none; }

input, textarea, button, select {
  font-family: var(--ap-font-b);
}

/* ============================
   TYPOGRAPHY
   ============================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ap-font-h);
  color: var(--ap-white);
  line-height: 1.4;
  font-weight: 900;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; }

blockquote {
  background: var(--ap-bg3);
  border: 2px solid var(--ap-border);
  border-right: 4px solid var(--ap-orange);
  padding: 18px 20px;
  border-radius: 0 var(--ap-radius) var(--ap-radius) 0;
  margin: 1.5rem 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ap-g1);
}

blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--ap-g3);
  font-style: normal;
}

blockquote cite::before { content: '— '; color: var(--ap-orange); }

/* ============================
   LAYOUT
   ============================ */
.ap-container {
  max-width: var(--ap-max-w);
  margin: 0 auto;
  padding: 0 22px;
}

.ap-wrap {
  max-width: var(--ap-max-w);
  margin: 0 auto;
  padding: 22px 22px;
}

.ap-grid-main {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

/* ============================
   READING PROGRESS BAR
   ============================ */
#ap-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--ap-orange);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ============================
   BREAKING NEWS TICKER
   ============================ */
.ap-ticker {
  background: var(--ap-orange);
  height: 40px;
  display: flex;
  overflow: hidden;
}

.ap-ticker__label {
  background: var(--ap-orange2);
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 8px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.ap-ticker__dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: ap-blink 1s infinite;
  flex-shrink: 0;
}

@keyframes ap-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.ap-ticker__track {
  flex: 1;
  overflow: hidden;
}

.ap-ticker__inner {
  display: flex;
  align-items: center;
  height: 40px;
  animation: ap-ticker-scroll 45s linear infinite;
  white-space: nowrap;
}

.ap-ticker__inner span {
  padding: 0 28px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.ap-ticker__inner span::after {
  content: ' ◆ ';
  opacity: 0.4;
  font-size: 9px;
}

@keyframes ap-ticker-scroll {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ============================
   HEADER
   ============================ */
.ap-header {
  background: var(--ap-bg2);
  border-bottom: 3px solid var(--ap-orange);
  position: sticky;
  top: 0;
  z-index: 200;
}

.ap-header__inner {
  max-width: var(--ap-max-w);
  margin: 0 auto;
  padding: 0 22px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* LOGO */
.ap-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.ap-logo__icon {
  width: 46px;
  height: 46px;
  background: var(--ap-orange);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: var(--ap-font-h);
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  text-align: center;
  flex-shrink: 0;
}

.ap-logo__name {
  font-family: var(--ap-font-h);
  font-size: 22px;
  font-weight: 900;
  color: var(--ap-white);
  line-height: 1;
}

.ap-logo__plus { color: var(--ap-orange); }

.ap-logo__sub {
  font-size: 9px;
  color: var(--ap-orange);
  letter-spacing: 2.5px;
  font-weight: 800;
  margin-top: 2px;
}

.ap-header__spacer { flex: 1; }

.ap-header__meta {
  font-size: 11px;
  color: var(--ap-g3);
  line-height: 1.5;
  text-align: left;
}

.ap-header__search {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--ap-bg3);
  border: 1px solid var(--ap-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ap-g3);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.ap-header__search:hover {
  border-color: var(--ap-orange);
  color: var(--ap-orange);
}

.ap-btn-subscribe {
  background: var(--ap-orange);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.ap-btn-subscribe:hover { background: var(--ap-orange2); }

/* MOBILE MENU TOGGLE */
.ap-header__menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.ap-header__menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ap-g1);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ============================
   PRIMARY NAVIGATION
   ============================ */
.ap-nav {
  background: var(--ap-bg3);
  border-bottom: 2px solid var(--ap-border);
}

.ap-nav__inner {
  max-width: var(--ap-max-w);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.ap-nav__inner::-webkit-scrollbar { display: none; }

.ap-nav__menu {
  display: flex;
  align-items: center;
  list-style: none;
}

.ap-nav__menu li { position: relative; }

.ap-nav__menu > li > a {
  display: block;
  padding: 12px 15px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ap-g3);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s;
}

.ap-nav__menu > li > a:hover,
.ap-nav__menu > li.current-menu-item > a,
.ap-nav__menu > li.current-menu-ancestor > a {
  color: var(--ap-orange);
  border-bottom-color: var(--ap-orange);
}

/* DROPDOWN */
.ap-nav__menu .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--ap-bg3);
  border: 2px solid var(--ap-border);
  border-top: 2px solid var(--ap-orange);
  border-radius: 0 0 var(--ap-radius) var(--ap-radius);
  min-width: 200px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s;
  list-style: none;
}

.ap-nav__menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ap-nav__menu .sub-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ap-g2);
  border-bottom: 1px solid var(--ap-border);
  transition: all 0.15s;
}

.ap-nav__menu .sub-menu li:last-child a { border: none; }
.ap-nav__menu .sub-menu li a:hover { color: var(--ap-orange); padding-right: 22px; }

.ap-nav__spacer { flex: 1; min-width: 10px; }

/* LIVE BADGE */
.ap-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--ap-red);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 1px;
  vertical-align: middle;
  margin-right: 4px;
}

.ap-live-dot {
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  animation: ap-blink 1s infinite;
}

/* SOCIAL IN NAV */
.ap-nav__socials {
  display: flex;
  gap: 5px;
  padding: 10px 0;
  flex-shrink: 0;
}

.ap-nav__soc {
  width: 27px;
  height: 27px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s;
  text-decoration: none;
}

.ap-nav__soc:hover { opacity: 0.8; color: #fff; }
.ap-soc-x   { background: #000; }
.ap-soc-fb  { background: #1877F2; }
.ap-soc-yt  { background: #FF0000; }
.ap-soc-ig  { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.ap-soc-tg  { background: #229ED9; }

/* ============================
   SECTION HEADERS
   ============================ */
.ap-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ap-border);
}

.ap-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 900;
  color: var(--ap-white);
  font-family: var(--ap-font-h);
}

.ap-section-bar {
  width: 4px;
  height: 18px;
  background: var(--ap-orange);
  border-radius: 2px;
  flex-shrink: 0;
}

.ap-section-more {
  font-size: 12px;
  font-weight: 700;
  color: var(--ap-orange);
  text-decoration: none;
  white-space: nowrap;
}

.ap-section-more:hover { text-decoration: underline; color: var(--ap-orange); }

/* ============================
   BADGES
   ============================ */
.ap-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.4px;
  line-height: 1.4;
}

.ap-badge-orange { background: var(--ap-orange);  color: #fff; }
.ap-badge-red    { background: var(--ap-red);     color: #fff; }
.ap-badge-blue   { background: var(--ap-bg5);     color: var(--ap-g1); border: 1px solid var(--ap-border); }
.ap-badge-green  { background: var(--ap-green);   color: #fff; }

/* ============================
   HERO GRID
   ============================ */
.ap-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 310px 200px;
  gap: 3px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}

.ap-hero-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--ap-bg3);
}

.ap-hero-item.ap-hero-main { grid-row: 1 / 3; }

.ap-hero-item:hover .ap-hero-item__img { transform: scale(1.04); }

.ap-hero-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ap-hero-item__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  transition: transform 0.4s ease;
}

.ap-hero-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,12,24,0.96) 0%, rgba(5,12,24,0.08) 55%, transparent 100%);
}

.ap-hero-item__content {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 18px 16px;
}

.ap-hero-item__badges {
  display: flex;
  gap: 5px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}

.ap-hero-item__title-main {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 8px;
  font-family: var(--ap-font-h);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ap-hero-item__title-sm {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  margin-top: 6px;
  font-family: var(--ap-font-h);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ap-hero-item__meta {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============================
   CATEGORY FILTER CHIPS
   ============================ */
.ap-cat-chips {
  display: flex;
  gap: 9px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.ap-chip {
  background: var(--ap-bg3);
  border: 2px solid var(--ap-border);
  border-radius: 6px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--ap-g2);
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.ap-chip:hover,
.ap-chip.active,
.ap-chip[aria-current] {
  background: var(--ap-orange);
  border-color: var(--ap-orange);
  color: #fff;
}

.ap-chip__icon { font-size: 15px; }

/* ============================
   NEWS CARDS GRID
   ============================ */
.ap-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.ap-cards-grid--2col { grid-template-columns: repeat(2, 1fr); }
.ap-cards-grid--4col { grid-template-columns: repeat(4, 1fr); }

.ap-card {
  background: var(--ap-bg3);
  border: 2px solid var(--ap-border);
  border-radius: var(--ap-radius);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.ap-card:hover {
  border-color: var(--ap-orange);
  transform: translateY(-2px);
  color: inherit;
}

.ap-card__thumbnail {
  height: 152px;
  background: var(--ap-bg4);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.ap-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.ap-card:hover .ap-card__thumbnail img { transform: scale(1.04); }

.ap-card__thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
}

.ap-card__body {
  padding: 12px 13px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ap-card__cat {
  font-size: 10px;
  font-weight: 900;
  color: var(--ap-orange);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: block;
}

.ap-card__cat:hover { text-decoration: underline; color: var(--ap-orange); }

.ap-card__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ap-white);
  font-family: var(--ap-font-h);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

.ap-card__title:hover { color: var(--ap-orange); }

.ap-card__meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--ap-g3);
  padding-top: 9px;
  border-top: 1px solid var(--ap-border);
  flex-wrap: wrap;
}

.ap-card__author {
  color: var(--ap-g2);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.ap-card__author:hover { color: var(--ap-orange); }

/* LARGE CARD (thumbnail 190px) */
.ap-card--large .ap-card__thumbnail { height: 190px; }

/* ============================
   HORIZONTAL LIST CARDS
   ============================ */
.ap-hlist { display: flex; flex-direction: column; }

.ap-hcard {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--ap-border);
  text-decoration: none;
  color: inherit;
}

.ap-hcard:last-child { border: none; }
.ap-hcard:hover .ap-hcard__title { color: var(--ap-orange); }

.ap-hcard__thumb {
  width: 84px;
  height: 65px;
  border-radius: 6px;
  background: var(--ap-bg4);
  flex-shrink: 0;
  overflow: hidden;
}

.ap-hcard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-hcard__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.ap-hcard__body { flex: 1; min-width: 0; }

.ap-hcard__cat {
  font-size: 10px;
  font-weight: 900;
  color: var(--ap-orange);
  margin-bottom: 4px;
  display: block;
  text-decoration: none;
}

.ap-hcard__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ap-g1);
  font-family: var(--ap-font-h);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}

.ap-hcard__meta {
  font-size: 11px;
  color: var(--ap-g3);
  margin-top: 5px;
}

/* ============================
   SINGLE POST / ARTICLE
   ============================ */
.ap-article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 26px;
  align-items: start;
}

/* BREADCRUMB */
.ap-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ap-g3);
  margin-bottom: 18px;
  padding: 10px 14px;
  background: var(--ap-bg3);
  border: 1px solid var(--ap-border);
  border-radius: 6px;
  flex-wrap: wrap;
}

.ap-breadcrumb a {
  color: var(--ap-orange);
  text-decoration: none;
}

.ap-breadcrumb a:hover { text-decoration: underline; }
.ap-breadcrumb__sep { color: var(--ap-g3); }

/* ARTICLE HEADER */
.ap-article__badges {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ap-article__title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.45;
  color: var(--ap-white);
  font-family: var(--ap-font-h);
  margin-bottom: 14px;
}

.ap-article__summary {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ap-g2);
  padding: 14px 18px;
  border-right: 4px solid var(--ap-orange);
  background: var(--ap-bg3);
  border-radius: 0 var(--ap-radius) var(--ap-radius) 0;
  margin-bottom: 16px;
}

/* META BAR */
.ap-article__meta-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--ap-border);
  border-bottom: 1px solid var(--ap-border);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ap-article__author-mini {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
}

.ap-article__author-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ap-bg4);
  border: 2px solid var(--ap-orange);
  overflow: hidden;
  flex-shrink: 0;
}

.ap-article__author-av img { width: 100%; height: 100%; object-fit: cover; }

.ap-article__author-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ap-white);
  line-height: 1.2;
}

.ap-article__author-role {
  font-size: 11px;
  color: var(--ap-g3);
}

.ap-article__stats {
  margin-right: auto;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ap-article__stat {
  font-size: 11px;
  color: var(--ap-g3);
  display: flex;
  align-items: center;
  gap: 3px;
}

.ap-article__stat strong { color: var(--ap-g2); }

/* SHARE BUTTONS */
.ap-share-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ap-share-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s;
}

.ap-share-btn:hover { opacity: 0.85; color: #fff; }
.ap-share-x   { background: #000; }
.ap-share-fb  { background: #1877F2; }
.ap-share-wa  { background: #25D366; }
.ap-share-tg  { background: #229ED9; }
.ap-share-copy { background: var(--ap-bg4); color: var(--ap-g1); border: 1px solid var(--ap-border); }

/* FEATURED IMAGE */
.ap-article__featured-img {
  width: 100%;
  max-height: 480px;
  border-radius: var(--ap-radius);
  overflow: hidden;
  border: 2px solid var(--ap-border);
  margin-bottom: 22px;
  position: relative;
}

.ap-article__featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ap-article__img-caption {
  background: var(--ap-bg2);
  border-top: 1px solid var(--ap-border);
  padding: 8px 14px;
  font-size: 11px;
  color: var(--ap-g3);
}

/* ARTICLE CONTENT */
.ap-article__content {
  font-size: 16px;
  line-height: 2;
  color: var(--ap-g1);
}

.ap-article__content p { margin-bottom: 1.2rem; }

.ap-article__content h2 {
  font-size: 20px;
  font-weight: 900;
  color: var(--ap-white);
  font-family: var(--ap-font-h);
  margin: 28px 0 12px;
  padding-right: 14px;
  border-right: 4px solid var(--ap-orange);
}

.ap-article__content h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ap-g1);
  font-family: var(--ap-font-h);
  margin: 22px 0 10px;
}

.ap-article__content ul,
.ap-article__content ol {
  padding-right: 22px;
  margin-bottom: 1rem;
}

.ap-article__content li {
  list-style: disc;
  margin-bottom: 6px;
}

.ap-article__content ol li { list-style: decimal; }

.ap-article__content a {
  color: var(--ap-orange);
  text-decoration: underline;
}

/* INFOBOX */
.ap-infobox {
  background: var(--ap-bg3);
  border: 2px solid var(--ap-border);
  border-top: 3px solid var(--ap-orange);
  border-radius: 0 0 var(--ap-radius) var(--ap-radius);
  padding: 16px 18px;
  margin: 22px 0;
}

.ap-infobox__title {
  font-size: 13px;
  font-weight: 900;
  color: var(--ap-orange);
  margin-bottom: 10px;
  font-family: var(--ap-font-h);
}

.ap-infobox ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

.ap-infobox ul li {
  font-size: 14px;
  color: var(--ap-g1);
  padding-right: 14px;
  position: relative;
  list-style: none;
}

.ap-infobox ul li::before {
  content: '◆';
  color: var(--ap-orange);
  font-size: 7px;
  position: absolute;
  right: 0;
  top: 5px;
}

/* TAGS */
.ap-article__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 2px solid var(--ap-border);
  align-items: center;
}

.ap-article__tags-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--ap-g3);
}

.ap-tag {
  background: var(--ap-bg3);
  border: 1px solid var(--ap-border);
  border-radius: 4px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ap-g2);
  text-decoration: none;
  transition: all 0.15s;
}

.ap-tag:hover {
  border-color: var(--ap-orange);
  color: var(--ap-orange);
}

/* BOTTOM SHARE */
.ap-article__btm-share {
  background: var(--ap-bg3);
  border: 2px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 16px 20px;
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ap-article__btm-share-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ap-white);
}

.ap-btm-share-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 5px;
  border: none;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s;
}

.ap-btm-share-btn:hover { opacity: 0.85; color: #fff; }

/* AUTHOR BIO CARD */
.ap-author-card {
  background: var(--ap-bg3);
  border: 2px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 20px;
  margin-top: 24px;
}

.ap-author-card__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.ap-author-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ap-bg4);
  border: 3px solid var(--ap-orange);
  overflow: hidden;
  flex-shrink: 0;
}

.ap-author-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.ap-author-card__name {
  font-size: 18px;
  font-weight: 900;
  color: var(--ap-white);
  font-family: var(--ap-font-h);
  margin-bottom: 2px;
}

.ap-author-card__role {
  display: inline-block;
  background: var(--ap-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.ap-author-card__stats {
  display: flex;
  gap: 16px;
}

.ap-author-card__stat-n {
  font-size: 15px;
  font-weight: 900;
  color: var(--ap-orange);
  font-family: var(--ap-font-h);
  line-height: 1;
}

.ap-author-card__stat-l {
  font-size: 10px;
  color: var(--ap-g3);
  margin-top: 2px;
}

.ap-author-card__bio {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ap-g2);
  margin-bottom: 14px;
}

.ap-author-card__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ap-author-card__socs {
  display: flex;
  gap: 6px;
}

.ap-author-soc {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  border: 1px solid var(--ap-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: var(--ap-g3);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.ap-author-soc:hover {
  border-color: var(--ap-orange);
  color: var(--ap-orange);
}

.ap-btn-follow {
  background: var(--ap-orange);
  color: #fff;
  border: none;
  padding: 7px 18px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s;
  margin-right: auto;
}

.ap-btn-follow:hover { background: var(--ap-orange2); }

/* ============================
   SIDEBAR & WIDGETS
   ============================ */
.ap-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ap-widget {
  background: var(--ap-bg3);
  border: 2px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 16px;
}

.ap-widget__title {
  font-size: 13px;
  font-weight: 900;
  color: var(--ap-orange);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ap-orange);
  font-family: var(--ap-font-h);
  display: block;
}

/* TRENDING */
.ap-trending-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ap-bg4);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.ap-trending-item:last-child { border: none; }
.ap-trending-item:hover .ap-trending-item__title { color: var(--ap-orange); }

.ap-trending-item__num {
  font-size: 22px;
  font-weight: 900;
  color: var(--ap-g3);
  font-family: var(--ap-font-h);
  min-width: 24px;
  line-height: 1;
}

.ap-trending-item:first-child .ap-trending-item__num { color: var(--ap-orange); }

.ap-trending-item__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ap-g1);
  font-family: var(--ap-font-h);
  line-height: 1.5;
  transition: color 0.15s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ap-trending-item__time {
  font-size: 10px;
  color: var(--ap-g3);
  margin-top: 2px;
}

/* POLL WIDGET */
.ap-poll__question {
  font-size: 13px;
  font-weight: 700;
  color: var(--ap-white);
  line-height: 1.65;
  margin-bottom: 14px;
  font-family: var(--ap-font-h);
}

.ap-poll__option {
  margin-bottom: 10px;
  cursor: pointer;
}

.ap-poll__option-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ap-g2);
  font-weight: 600;
  margin-bottom: 5px;
}

.ap-poll__bar-bg {
  height: 7px;
  background: var(--ap-bg4);
  border-radius: 3px;
  overflow: hidden;
}

.ap-poll__bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.ap-poll__bar-fill--orange { background: var(--ap-orange); }
.ap-poll__bar-fill--blue   { background: #2563EB; }
.ap-poll__bar-fill--green  { background: var(--ap-green); }

.ap-poll__total {
  font-size: 11px;
  color: var(--ap-g3);
  text-align: center;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--ap-border);
}

/* WEATHER WIDGET */
.ap-weather__city {
  font-size: 12px;
  color: var(--ap-g2);
  text-align: center;
}

.ap-weather__main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
}

.ap-weather__icon { font-size: 44px; }

.ap-weather__temp {
  font-size: 44px;
  font-weight: 300;
  color: var(--ap-white);
  line-height: 1;
}

.ap-weather__temp sup {
  font-size: 15px;
  color: var(--ap-orange);
  font-weight: 700;
}

.ap-weather__desc {
  font-size: 12px;
  color: var(--ap-g3);
  text-align: center;
}

.ap-weather__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--ap-border);
}

.ap-weather__stat {
  background: var(--ap-bg4);
  border-radius: 5px;
  padding: 7px;
  text-align: center;
}

.ap-weather__val { font-size: 13px; font-weight: 700; color: var(--ap-white); }
.ap-weather__lbl { font-size: 10px; color: var(--ap-g3); margin-top: 2px; }

/* NEWSLETTER WIDGET */
.ap-newsletter__desc {
  font-size: 12px;
  color: var(--ap-g2);
  line-height: 1.7;
  margin-bottom: 12px;
}

.ap-newsletter__input {
  width: 100%;
  background: var(--ap-bg4);
  border: 2px solid var(--ap-border);
  border-radius: 5px;
  padding: 9px 12px;
  font-size: 12px;
  color: var(--ap-white);
  font-family: var(--ap-font-b);
  direction: rtl;
  margin-bottom: 8px;
  transition: border-color 0.15s;
}

.ap-newsletter__input:focus {
  outline: none;
  border-color: var(--ap-orange);
}

.ap-newsletter__btn {
  width: 100%;
  background: var(--ap-orange);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--ap-font-b);
  transition: background 0.15s;
}

.ap-newsletter__btn:hover { background: var(--ap-orange2); }

/* STANDARD WP WIDGETS */
.widget_recent_entries ul li,
.widget_categories ul li,
.widget_archive ul li,
.widget_pages ul li,
.widget_nav_menu ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--ap-border);
  font-size: 13px;
  color: var(--ap-g2);
}

.widget_recent_entries ul li:last-child,
.widget_categories ul li:last-child { border: none; }

.widget_recent_entries ul li a,
.widget_categories ul li a,
.widget_archive ul li a {
  color: var(--ap-g1);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.widget_recent_entries ul li a::before,
.widget_categories ul li a::before {
  content: '◂';
  color: var(--ap-orange);
  font-size: 8px;
}

.widget_recent_entries ul li a:hover,
.widget_categories ul li a:hover { color: var(--ap-orange); }

/* ============================
   CATEGORY PAGE HEADER
   ============================ */
.ap-cat-header {
  background: var(--ap-bg3);
  border: 2px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 22px 24px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.ap-cat-header__icon {
  width: 60px;
  height: 60px;
  background: var(--ap-orange);
  border-radius: var(--ap-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.ap-cat-header__name {
  font-size: 26px;
  font-weight: 900;
  color: var(--ap-white);
  font-family: var(--ap-font-h);
  margin-bottom: 4px;
}

.ap-cat-header__count {
  font-size: 12px;
  color: var(--ap-g3);
}

/* ============================
   FILTER BUTTONS
   ============================ */
.ap-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.ap-filter-btn {
  background: var(--ap-bg3);
  border: 2px solid var(--ap-border);
  border-radius: 5px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ap-g3);
  cursor: pointer;
  font-family: var(--ap-font-b);
  transition: all 0.15s;
}

.ap-filter-btn.active,
.ap-filter-btn:hover {
  background: var(--ap-orange);
  border-color: var(--ap-orange);
  color: #fff;
}

/* ============================
   PAGINATION
   ============================ */
.ap-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 2px solid var(--ap-border);
  flex-wrap: wrap;
}

.ap-pagination a,
.ap-pagination span {
  width: 36px;
  height: 36px;
  background: var(--ap-bg3);
  border: 2px solid var(--ap-border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ap-g2);
  text-decoration: none;
  transition: all 0.15s;
}

.ap-pagination a:hover {
  border-color: var(--ap-orange);
  color: var(--ap-orange);
}

.ap-pagination .current,
.ap-pagination .current:hover {
  background: var(--ap-orange);
  border-color: var(--ap-orange);
  color: #fff;
}

/* ============================
   COMMENTS
   ============================ */
.ap-comments {
  margin-top: 28px;
}

.ap-comments__title {
  font-size: 18px;
  font-weight: 900;
  color: var(--ap-white);
  font-family: var(--ap-font-h);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ap-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ap-comments__count {
  background: var(--ap-bg3);
  border: 1px solid var(--ap-border);
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ap-g2);
}

/* COMMENT FORM */
.ap-comment-form {
  background: var(--ap-bg3);
  border: 2px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 16px;
  margin-bottom: 24px;
}

.ap-comment-form__title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ap-white);
  margin-bottom: 12px;
  font-family: var(--ap-font-h);
}

.ap-comment-form input[type="text"],
.ap-comment-form input[type="email"],
.ap-comment-form textarea {
  width: 100%;
  background: var(--ap-bg4);
  border: 2px solid var(--ap-border);
  border-radius: 6px;
  padding: 10px 13px;
  font-size: 13px;
  color: var(--ap-white);
  font-family: var(--ap-font-b);
  direction: rtl;
  margin-bottom: 10px;
  transition: border-color 0.15s;
}

.ap-comment-form input:focus,
.ap-comment-form textarea:focus {
  outline: none;
  border-color: var(--ap-orange);
}

.ap-comment-form textarea {
  resize: vertical;
  min-height: 100px;
}

.ap-comment-form input[type="submit"] {
  background: var(--ap-orange);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--ap-font-b);
  transition: background 0.15s;
}

.ap-comment-form input[type="submit"]:hover { background: var(--ap-orange2); }

/* COMMENT LIST */
.ap-comment-list {
  list-style: none;
}

.ap-comment {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ap-border);
}

.ap-comment:last-child { border: none; }

.ap-comment__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ap-bg4);
  border: 2px solid var(--ap-border);
  overflow: hidden;
  flex-shrink: 0;
}

.ap-comment__avatar img { width: 100%; height: 100%; object-fit: cover; }

.ap-comment__body { flex: 1; }

.ap-comment__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.ap-comment__author {
  font-size: 13px;
  font-weight: 800;
  color: var(--ap-white);
}

.ap-comment__date {
  font-size: 11px;
  color: var(--ap-g3);
}

.ap-comment__text {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ap-g1);
  margin-bottom: 8px;
}

.ap-comment__reply a {
  font-size: 11px;
  font-weight: 700;
  color: var(--ap-g3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.ap-comment__reply a:hover { color: var(--ap-orange); }

.children {
  padding-right: 30px;
  list-style: none;
  border-right: 2px solid var(--ap-border);
  margin-top: 12px;
}

/* ============================
   AUTHOR ARCHIVE PAGE
   ============================ */
.ap-author-page-header {
  background: var(--ap-bg3);
  border: 2px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 28px;
  margin-bottom: 26px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.ap-author-page-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--ap-bg4);
  border: 3px solid var(--ap-orange);
  overflow: hidden;
  flex-shrink: 0;
}

.ap-author-page-avatar img { width: 100%; height: 100%; object-fit: cover; }

.ap-author-page-name {
  font-size: 26px;
  font-weight: 900;
  color: var(--ap-white);
  font-family: var(--ap-font-h);
  margin-bottom: 6px;
}

.ap-author-page-role {
  display: inline-block;
  background: var(--ap-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.ap-author-page-bio {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ap-g2);
  margin-bottom: 16px;
}

.ap-author-page-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.ap-author-page-stat-n {
  font-size: 22px;
  font-weight: 900;
  color: var(--ap-orange);
  font-family: var(--ap-font-h);
  line-height: 1;
}

.ap-author-page-stat-l {
  font-size: 11px;
  color: var(--ap-g3);
  margin-top: 3px;
}

/* ============================
   SEARCH PAGE
   ============================ */
.ap-search-header {
  background: var(--ap-bg3);
  border: 2px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 22px;
  margin-bottom: 22px;
}

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

.ap-search-form input[type="search"] {
  flex: 1;
  background: var(--ap-bg4);
  border: 2px solid var(--ap-border);
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 15px;
  color: var(--ap-white);
  font-family: var(--ap-font-b);
  direction: rtl;
  transition: border-color 0.15s;
}

.ap-search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--ap-orange);
}

.ap-search-form button[type="submit"] {
  background: var(--ap-orange);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--ap-font-b);
  transition: background 0.15s;
  white-space: nowrap;
}

.ap-search-form button[type="submit"]:hover { background: var(--ap-orange2); }

/* ============================
   404 PAGE
   ============================ */
.ap-404 {
  text-align: center;
  padding: 80px 20px;
}

.ap-404__num {
  font-size: 120px;
  font-weight: 900;
  color: var(--ap-orange);
  font-family: var(--ap-font-h);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.15;
}

.ap-404__title {
  font-size: 28px;
  font-weight: 900;
  color: var(--ap-white);
  margin-bottom: 12px;
}

.ap-404__desc {
  font-size: 15px;
  color: var(--ap-g2);
  margin-bottom: 28px;
}

/* ============================
   FOOTER
   ============================ */
.ap-footer {
  background: var(--ap-bg2);
  border-top: 3px solid var(--ap-orange);
  margin-top: 50px;
  padding: 32px 0 0;
}

.ap-footer__grid {
  max-width: var(--ap-max-w);
  margin: 0 auto;
  padding: 0 22px 28px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}

.ap-footer__brand-desc {
  font-size: 12px;
  color: var(--ap-g3);
  line-height: 1.8;
  margin: 12px 0;
}

.ap-footer__socials {
  display: flex;
  gap: 6px;
}

.ap-footer__soc {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  border: 1px solid var(--ap-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: var(--ap-g3);
  text-decoration: none;
  transition: all 0.15s;
}

.ap-footer__soc:hover {
  border-color: var(--ap-orange);
  color: var(--ap-orange);
}

.ap-footer__col-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--ap-orange);
  margin-bottom: 14px;
  font-family: var(--ap-font-h);
}

.ap-footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ap-footer__links li a {
  font-size: 12px;
  color: var(--ap-g3);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
}

.ap-footer__links li a::before {
  content: '◂';
  color: var(--ap-orange);
  font-size: 8px;
}

.ap-footer__links li a:hover { color: var(--ap-g1); }

.ap-footer__bar {
  background: var(--ap-bg);
  border-top: 1px solid var(--ap-border);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ap-footer__bar-copy,
.ap-footer__bar-links {
  font-size: 11px;
  color: var(--ap-g3);
}

.ap-footer__bar-links a {
  color: var(--ap-g3);
  text-decoration: none;
  margin-right: 14px;
}

.ap-footer__bar-links a:hover { color: var(--ap-orange); }

/* ============================
   SCROLL TO TOP
   ============================ */
#ap-scroll-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 42px;
  height: 42px;
  border-radius: 7px;
  background: var(--ap-orange);
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, background 0.15s;
  z-index: 300;
}

#ap-scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

#ap-scroll-top:hover { background: var(--ap-orange2); }

/* ============================
   WP CORE CLASSES
   ============================ */
.alignnone  { margin: 10px 0; }
.aligncenter { display: block; margin: 20px auto; }
.alignleft  { float: left; margin: 0 20px 15px 0; }
.alignright { float: right; margin: 0 0 15px 20px; }

.wp-caption {
  max-width: 100%;
  background: var(--ap-bg3);
  border: 1px solid var(--ap-border);
  padding: 4px;
  border-radius: 4px;
}

.wp-caption-text {
  font-size: 11px;
  color: var(--ap-g3);
  text-align: center;
  padding: 6px;
}

.sticky {
  border: 2px solid var(--ap-orange);
  border-radius: var(--ap-radius);
  padding: 14px;
}

.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.gallery-item { overflow: hidden; border-radius: 4px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1100px) {
  .ap-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .ap-cards-grid--4col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .ap-grid-main,
  .ap-article-layout,
  .ap-author-page-header { flex-direction: column; }

  .ap-grid-main,
  .ap-article-layout {
    grid-template-columns: 1fr;
  }

  .ap-sidebar { position: static; }
  .ap-hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .ap-hero-item.ap-hero-main { grid-row: auto; }
  .ap-footer__grid { grid-template-columns: 1fr 1fr; }
  .ap-article-layout { grid-template-columns: 1fr; }
  .ap-author-page-header { flex-direction: column; align-items: center; text-align: center; }

  .ap-header__menu-toggle { display: flex; }
  .ap-nav.mobile-open { display: block; }
  .ap-nav .ap-nav__inner { flex-direction: column; align-items: flex-start; padding: 10px 22px; }
  .ap-nav__menu { flex-direction: column; width: 100%; }
  .ap-nav__menu > li > a { padding: 10px 0; border-bottom: 1px solid var(--ap-border); margin-bottom: 0; }
  .ap-nav__spacer { display: none; }
}

@media (max-width: 600px) {
  .ap-cards-grid,
  .ap-cards-grid--2col { grid-template-columns: 1fr; }
  .ap-article__title { font-size: 22px; }
  .ap-footer__grid { grid-template-columns: 1fr; }
  .ap-hero-item__title-main { font-size: 16px; }
  .ap-author-page-header { padding: 18px; }
}

@media print {
  .ap-ticker, .ap-header, nav, .ap-sidebar, .ap-footer,
  .ap-share-row, .ap-article__btm-share, #ap-scroll-top { display: none !important; }
  body { background: #fff; color: #000; }
  .ap-article__content { color: #000; }
}

/* ============================
   AUTHOR CARD — Enhanced
   ============================ */
.ap-author-card {
  background: var(--ap-bg3);
  border: 2px solid var(--ap-border);
  border-radius: var(--ap-radius);
  overflow: hidden;
  margin-top: 24px;
}

.ap-author-card__banner {
  height: 110px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.ap-author-card__banner--default {
  background: linear-gradient(135deg, var(--ap-bg4) 0%, var(--ap-bg5) 100%);
}

.ap-author-card__banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,.6) 100%);
}

.ap-author-card__body {
  padding: 0 20px 20px;
}

.ap-author-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: -36px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.ap-author-card__av-link {
  flex-shrink: 0;
}

.ap-author-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--ap-orange);
  object-fit: cover;
  display: block;
  background: var(--ap-bg4);
}

.ap-author-card__info {
  flex: 1;
  min-width: 0;
  padding-top: 36px;
}

.ap-author-card__name {
  font-size: 17px;
  font-weight: 900;
  color: var(--ap-white);
  font-family: var(--ap-font-h);
  margin-bottom: 5px;
  line-height: 1.2;
}

.ap-author-card__badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.ap-author-card__stats {
  display: flex;
  gap: 16px;
}

.ap-author-card__stat {
  text-align: center;
}

.ap-author-card__stat-n {
  font-size: 16px;
  font-weight: 900;
  color: var(--ap-orange);
  font-family: var(--ap-font-h);
  line-height: 1;
  display: block;
}

.ap-author-card__stat-l {
  font-size: 10px;
  color: var(--ap-g3);
  margin-top: 2px;
  display: block;
}

.ap-author-card__bio {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ap-g2);
  margin-bottom: 14px;
}

.ap-author-card__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ap-author-card__all-link {
  font-size: 12px;
  color: var(--ap-g3);
  text-decoration: none;
  margin-right: auto;
}

.ap-author-card__all-link:hover { color: var(--ap-orange); }

/* SOCIAL LINKS — Author */
.ap-author-socials {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ap-author-soc-link {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
  flex-shrink: 0;
}

.ap-author-soc-link:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  color: #fff;
}

/* ============================
   AUTHOR PAGE — Full Header
   ============================ */
.ap-author-page {
  border-radius: var(--ap-radius);
  overflow: hidden;
  border: 2px solid var(--ap-border);
  margin-bottom: 24px;
  background: var(--ap-bg3);
}

.ap-author-page__banner {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.ap-author-page__banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(5,12,24,.8));
}

.ap-author-page__content {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 0 24px 24px;
}

.ap-author-page__avatar-wrap {
  margin-top: -50px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.ap-author-page__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--ap-orange);
  object-fit: cover;
  display: block;
  background: var(--ap-bg4);
}

.ap-author-page__info {
  flex: 1;
  min-width: 0;
  padding-top: 16px;
}

.ap-author-page__name {
  font-size: 24px !important;
  font-weight: 900 !important;
  color: var(--ap-white) !important;
  font-family: var(--ap-font-h) !important;
  margin-bottom: 8px !important;
  padding: 0 !important;
  border: none !important;
}

.ap-author-page__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ap-author-page__bio {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ap-g2);
  margin-bottom: 14px;
}

.ap-author-page__row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ap-author-page__stats {
  display: flex;
  gap: 20px;
}

.ap-author-stat__n {
  font-size: 22px;
  font-weight: 900;
  color: var(--ap-orange);
  font-family: var(--ap-font-h);
  display: block;
  line-height: 1;
}

.ap-author-stat__l {
  font-size: 11px;
  color: var(--ap-g3);
  display: block;
  margin-top: 3px;
}

/* ============================
   SEARCH OVERLAY
   ============================ */
.ap-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 24, .92);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.ap-search-overlay[hidden] { display: none; }

.ap-search-overlay__box {
  width: 100%;
  max-width: 600px;
  padding: 30px 24px;
  background: var(--ap-bg2);
  border: 2px solid var(--ap-border);
  border-radius: 12px;
  position: relative;
  margin: 0 16px;
}

.ap-search-overlay__close {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--ap-bg4);
  border: 1px solid var(--ap-border);
  color: var(--ap-g2);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}

.ap-search-overlay__close:hover {
  background: var(--ap-orange);
  color: #fff;
  border-color: var(--ap-orange);
}

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

.search-field {
  flex: 1;
  background: var(--ap-bg4);
  border: 2px solid var(--ap-border);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--ap-white);
  font-family: var(--ap-font-b);
  direction: rtl;
  transition: border-color .15s;
}

.search-field:focus {
  outline: none;
  border-color: var(--ap-orange);
}

.search-submit {
  background: var(--ap-orange);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--ap-font-b);
  transition: background .15s;
  white-space: nowrap;
}

.search-submit:hover { background: var(--ap-orange2); }

/* ============================
   ADS
   ============================ */
.ap-ad {
  text-align: center;
  margin: 16px 0;
  overflow: hidden;
  border-radius: 6px;
}

.ap-ad-header {
  border-bottom: 1px solid var(--ap-border);
  padding-bottom: 10px;
  margin-bottom: 0;
}

/* ============================
   TOAST
   ============================ */
#ap-toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--ap-bg3);
  border: 2px solid var(--ap-border);
  border-right: 3px solid var(--ap-orange);
  color: var(--ap-g1);
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  transition: all .25s;
  pointer-events: none;
  max-width: 280px;
  font-family: var(--ap-font-b);
  direction: rtl;
}

#ap-toast.ap-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ============================
   MOBILE NAV
   ============================ */
.ap-header__menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ap-header__menu-toggle.open span:nth-child(2) { opacity: 0; }
.ap-header__menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .ap-nav { display: none; }
  .ap-nav.open {
    display: block;
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    z-index: 199;
    background: var(--ap-bg3);
    border-bottom: 2px solid var(--ap-border);
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
  }
  .ap-nav.open .ap-nav__inner { flex-direction: column; align-items: flex-start; padding: 12px 22px; }
  .ap-nav__menu { flex-direction: column; width: 100%; }
  .ap-nav__menu > li > a { padding: 11px 0; border-bottom: 1px solid var(--ap-border); border-bottom-width: 1px !important; }
  .ap-nav__spacer, .ap-nav__socials { display: none; }
  .ap-author-page__content { flex-direction: column; align-items: center; text-align: center; }
  .ap-author-page__row { justify-content: center; }
  .ap-author-page__avatar-wrap { margin-top: -50px; }
  .ap-author-card__head { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .ap-author-page__banner { height: 130px; }
  .ap-author-page__name { font-size: 20px !important; }
}

/* =========================================
   v3.0 — LIVE NEWS
   ========================================= */
.ap-live-wrap {
  border: 2px solid var(--ap-orange);
  border-radius: var(--ap-radius);
  overflow: hidden;
  margin: 20px 0;
}
.ap-live-header {
  background: var(--ap-orange);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.ap-live-badge-wrap { display: flex; align-items: center; gap: 10px; }
.ap-live-badge { background: #fff; color: #DC2626; font-size: 11px; font-weight: 900; padding: 3px 8px; border-radius: 4px; animation: ap-blink 1.2s infinite; }
@keyframes ap-blink { 0%,100%{opacity:1} 50%{opacity:.5} }
.ap-live-title { font-size: 14px; font-weight: 700; color: #fff; }
.ap-live-meta { display: flex; gap: 12px; align-items: center; font-size: 12px; color: rgba(255,255,255,.85); }
.ap-live-admin-post { background: var(--ap-bg3); padding: 12px 14px; border-bottom: 1px solid var(--ap-border); }
.ap-live-admin-row { display: flex; flex-direction: column; gap: 8px; }
.ap-live-input { width: 100%; background: var(--ap-bg4); border: 1px solid var(--ap-border); border-radius: 5px; padding: 8px 12px; color: var(--ap-g1); font-family: var(--ap-font-b); font-size: 13px; resize: vertical; direction: rtl; }
.ap-live-admin-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ap-live-break-label { font-size: 12px; color: var(--ap-g2); display: flex; align-items: center; gap: 5px; cursor: pointer; }
.ap-live-break-label input { accent-color: #DC2626; }
.ap-live-post-btn { background: var(--ap-orange); color: #fff; border: none; padding: 7px 18px; border-radius: 5px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
.ap-live-feed { max-height: 500px; overflow-y: auto; background: var(--ap-bg); }
.ap-live-update { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--ap-border); }
.ap-live-update--breaking { background: rgba(220,38,38,.06); border-right: 3px solid #DC2626; }
.ap-live-update--new { animation: ap-slide-in .4s ease; }
@keyframes ap-slide-in { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:none} }
.ap-live-update__time { font-size: 11px; color: var(--ap-orange); font-weight: 700; font-family: var(--ap-font-h); white-space: nowrap; padding-top: 2px; min-width: 34px; }
.ap-live-update__body p { font-size: 13px; line-height: 1.7; color: var(--ap-g1); margin: 0; }
.ap-live-update__author { font-size: 11px; color: var(--ap-g3); margin-top: 4px; display: block; }
.ap-live-empty { text-align: center; padding: 40px; color: var(--ap-g3); font-size: 13px; }

/* =========================================
   v3.0 — COMMENTS
   ========================================= */
.ap-comments-section { margin-top: 28px; }
.ap-comments-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.ap-comments-sort { display: flex; gap: 6px; align-items: center; }
.ap-sort-btn { background: var(--ap-bg4); border: 1px solid var(--ap-border); color: var(--ap-g2); padding: 5px 12px; border-radius: 4px; font-size: 12px; cursor: pointer; font-family: inherit; transition: all .15s; }
.ap-sort-btn.active,.ap-sort-btn:hover { background: var(--ap-orange); color: #fff; border-color: var(--ap-orange); }
.ap-live-dot { font-size: 11px; color: #DC2626; font-weight: 700; animation: ap-blink 1.5s infinite; }
.ap-comment-form-box { background: var(--ap-bg3); border: 1px solid var(--ap-border); border-radius: var(--ap-radius); padding: 16px; margin-bottom: 20px; }
.ap-comment-form-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; color: var(--ap-g2); }
.ap-comment-input { width: 100%; background: var(--ap-bg4); border: 2px solid var(--ap-border); border-radius: 5px; padding: 9px 12px; color: var(--ap-g1); font-family: var(--ap-font-b); font-size: 13px; direction: rtl; transition: border-color .15s; }
.ap-comment-input:focus { outline: none; border-color: var(--ap-orange); }
.ap-comment-textarea { width: 100%; background: var(--ap-bg4); border: 2px solid var(--ap-border); border-radius: 5px; padding: 10px 13px; color: var(--ap-g1); font-family: var(--ap-font-b); font-size: 14px; direction: rtl; resize: vertical; min-height: 90px; transition: border-color .15s; }
.ap-comment-textarea:focus { outline: none; border-color: var(--ap-orange); }
.ap-comment-form-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; flex-wrap: wrap; gap: 8px; }
.ap-char-counter { font-size: 11px; color: var(--ap-g3); }
.ap-btn-post-comment { background: var(--ap-orange); color: #fff; border: none; padding: 9px 22px; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.ap-btn-post-comment:hover { background: var(--ap-orange2); }
.ap-comment { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--ap-border); position: relative; }
.ap-comment--new { animation: ap-slide-in .35s ease; background: rgba(245,96,10,.03); }
.ap-comment__av { flex-shrink: 0; position: relative; }
.ap-comment__av img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ap-border); display: block; }
.ap-comment__av-badge { position: absolute; bottom: -3px; right: -3px; background: var(--ap-orange); color: #fff; font-size: 10px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--ap-bg); }
.ap-comment__head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.ap-comment__name { font-size: 14px; font-weight: 700; color: var(--ap-white); }
.ap-comment__time { font-size: 11px; color: var(--ap-g3); margin-right: auto; }
.ap-comment__text { font-size: 13px; line-height: 1.7; color: var(--ap-g1); margin-bottom: 8px; }
.ap-comment__actions { display: flex; gap: 8px; align-items: center; }
.ap-cmt-vote { background: var(--ap-bg4); border: 1px solid var(--ap-border); color: var(--ap-g2); padding: 4px 10px; border-radius: 4px; font-size: 12px; cursor: pointer; transition: all .15s; }
.ap-cmt-vote:hover { border-color: var(--ap-orange); color: var(--ap-orange); }
.ap-cmt-vote--down:hover { border-color: #DC2626; color: #DC2626; }
.ap-cmt-reply-btn { background: none; border: none; color: var(--ap-g3); font-size: 12px; cursor: pointer; font-family: inherit; }
.ap-cmt-reply-btn:hover { color: var(--ap-orange); }
.ap-cmt-del { background: none; border: none; color: var(--ap-g3); font-size: 12px; cursor: pointer; margin-right: auto; }
.ap-cmt-del:hover { color: #DC2626; }
.ap-comment-badge { background: #7C3AED; color: #fff; font-size: 9px; padding: 2px 7px; border-radius: 20px; font-weight: 700; }
.ap-inline-reply { margin-top: 10px; display: flex; gap: 8px; align-items: flex-end; }
.ap-reply-input { flex: 1; background: var(--ap-bg4); border: 1px solid var(--ap-border); border-radius: 5px; padding: 7px 10px; color: var(--ap-g1); font-family: inherit; font-size: 12px; resize: none; direction: rtl; }
.ap-reply-send { background: var(--ap-orange); color: #fff; border: none; padding: 7px 16px; border-radius: 5px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ap-replies { padding-right: 28px; }
.ap-no-comments { text-align: center; padding: 30px; color: var(--ap-g3); }

/* =========================================
   v3.0 — SUBSCRIPTION WALL
   ========================================= */
.ap-premium-preview { position: relative; }
.ap-premium-preview::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(transparent, var(--ap-bg)); }
.ap-sub-wall { margin: 24px 0; border-radius: var(--ap-radius); overflow: hidden; border: 2px solid var(--ap-border); }
.ap-sub-wall__box { padding: 28px 22px; background: var(--ap-bg3); text-align: center; }
.ap-sub-wall__icon { font-size: 36px; margin-bottom: 10px; }
.ap-sub-wall__title { font-size: 20px; font-weight: 900; color: var(--ap-white); font-family: var(--ap-font-h); margin-bottom: 8px; }
.ap-sub-wall__desc { font-size: 13px; color: var(--ap-g2); max-width: 480px; margin: 0 auto 20px; line-height: 1.7; }
.ap-sub-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; max-width: 560px; margin: 0 auto 16px; }
.ap-sub-plan { background: var(--ap-bg4); border: 2px solid var(--ap-border); border-radius: var(--ap-radius); padding: 18px 16px; text-align: center; position: relative; transition: border-color .15s; }
.ap-sub-plan:hover { border-color: var(--ap-orange); }
.ap-sub-plan--popular { border-color: var(--ap-orange); box-shadow: 0 0 20px rgba(245,96,10,.15); }
.ap-sub-plan__popular-badge { position: absolute; top: -12px; right: 50%; transform: translateX(50%); background: var(--ap-orange); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 12px; border-radius: 20px; white-space: nowrap; }
.ap-sub-plan__icon { font-size: 24px; margin-bottom: 6px; }
.ap-sub-plan__name { font-size: 14px; font-weight: 700; color: var(--ap-white); margin-bottom: 8px; }
.ap-sub-plan__price { margin-bottom: 12px; }
.ap-sub-plan__amount { font-size: 28px; font-weight: 900; color: var(--ap-orange); font-family: var(--ap-font-h); }
.ap-sub-plan__currency { font-size: 12px; color: var(--ap-g2); }
.ap-sub-plan__period { font-size: 11px; color: var(--ap-g3); }
.ap-sub-plan__features { text-align: right; margin-bottom: 14px; padding: 0; list-style: none; }
.ap-sub-plan__features li { font-size: 12px; color: var(--ap-g2); padding: 3px 0; }
.ap-sub-plan__btn { display: block; padding: 9px 16px; border-radius: 6px; font-size: 13px; font-weight: 700; color: #fff; text-decoration: none; transition: opacity .15s; }
.ap-sub-plan__btn:hover { opacity: .85; color: #fff; }
.ap-sub-wall__login { font-size: 12px; color: var(--ap-g3); margin-top: 12px; }
.ap-sub-wall__login a { color: var(--ap-orange); }

/* =========================================
   v3.0 — TRANSLATION BAR
   ========================================= */
.ap-translate-bar { background: var(--ap-bg3); border: 1px solid var(--ap-border); border-radius: 6px; padding: 10px 14px; margin: 14px 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ap-translate-bar__label { font-size: 12px; color: var(--ap-g2); font-weight: 700; white-space: nowrap; }
.ap-translate-bar__langs { display: flex; gap: 6px; flex-wrap: wrap; }
.ap-lang-btn { background: var(--ap-bg4); border: 1px solid var(--ap-border); color: var(--ap-g2); padding: 5px 12px; border-radius: 4px; font-size: 12px; cursor: pointer; font-family: inherit; transition: all .15s; }
.ap-lang-btn:hover,.ap-lang-btn.active { background: var(--ap-orange); color: #fff; border-color: var(--ap-orange); }
.ap-translate-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ap-g2); }
.ap-translate-spinner { animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to{transform:rotate(360deg)} }
.ap-translate-note { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--ap-g3); }

/* =========================================
   v3.0 — PUSH PROMPT
   ========================================= */
.ap-push-prompt {
  position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%);
  background: var(--ap-bg3); border: 2px solid var(--ap-border); border-radius: 10px;
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; z-index: 9000;
  box-shadow: 0 8px 32px rgba(0,0,0,.4); font-size: 13px; color: var(--ap-g1);
  transition: bottom .4s ease; white-space: nowrap; direction: rtl;
  border-right: 3px solid var(--ap-orange);
}
.ap-push-prompt.ap-push-visible { bottom: 22px; }
.ap-push-prompt button { padding: 6px 14px; border-radius: 5px; font-size: 12px; font-weight: 700; cursor: pointer; border: none; font-family: inherit; }
.ap-push-prompt button:first-of-type { background: var(--ap-orange); color: #fff; }
.ap-push-prompt button:last-of-type { background: var(--ap-bg4); color: var(--ap-g3); }

/* =========================================
   v3.0 — TOAST VARIANTS
   ========================================= */
#ap-toast.ap-toast-err  { border-right-color: #DC2626; }
#ap-toast.ap-toast-ok   { border-right-color: #16A34A; }

/* =========================================
   v3.0 — RESPONSIVE
   ========================================= */
@media (max-width: 600px) {
  .ap-sub-plans { grid-template-columns: 1fr; }
  .ap-translate-bar { flex-direction: column; align-items: flex-start; }
  .ap-comment-form-footer { flex-direction: column; align-items: flex-end; }
}

/* ============================================================
   🌞 النمط النهاري (Light Mode)
   ============================================================ */

/* Light mode variables — override everything */
body.ap-light {
  --ap-bg:      #F5F7FA;
  --ap-bg2:     #FFFFFF;
  --ap-bg3:     #EEF1F6;
  --ap-bg4:     #E2E7EF;
  --ap-bg5:     #D6DCE8;
  --ap-orange:  #E8530A;
  --ap-orange2: #C44508;
  --ap-white:   #1A1A2E;
  --ap-g1:      #2C3E55;
  --ap-g2:      #5A6E85;
  --ap-g3:      #8FA3B8;
  --ap-border:  #D0D9E6;
  --ap-red:     #DC2626;
  --ap-green:   #16A34A;
}

/* Body background */
body.ap-light { background: var(--ap-bg); color: var(--ap-g1); }

/* Header */
body.ap-light .ap-header { background: #fff; border-bottom: 1px solid var(--ap-border); box-shadow: 0 2px 12px rgba(0,0,0,.07); }
body.ap-light .ap-header-top { background: var(--ap-bg3); border-bottom: 1px solid var(--ap-border); }
body.ap-light .ap-logo-text { color: #1A1A2E; }
body.ap-light .ap-logo-sub  { color: var(--ap-g2); }

/* Navigation */
body.ap-light .ap-nav { background: #fff; }
body.ap-light .nlink  { color: #2C3E55; }
body.ap-light .nlink:hover, body.ap-light .nlink.active { color: var(--ap-orange); }
body.ap-light .ap-dropdown { background: #fff; border: 1px solid var(--ap-border); box-shadow: 0 6px 24px rgba(0,0,0,.1); }
body.ap-light .ap-dropdown a { color: #2C3E55; border-bottom-color: var(--ap-border); }
body.ap-light .ap-dropdown a:hover { background: var(--ap-bg3); color: var(--ap-orange); }

/* Breaking ticker */
body.ap-light .ap-ticker { background: var(--ap-orange); }
body.ap-light .ap-ticker-label { background: rgba(0,0,0,.15); }

/* Search overlay */
body.ap-light .ap-search-overlay { background: rgba(255,255,255,.97); }
body.ap-light .ap-search-overlay .search-field { background: var(--ap-bg3); border-color: var(--ap-border); color: var(--ap-white); }

/* Cards */
body.ap-light .ap-card { background: #fff; border: 1px solid var(--ap-border); box-shadow: 0 2px 8px rgba(0,0,0,.05); }
body.ap-light .ap-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); border-color: var(--ap-orange); }
body.ap-light .ap-card__title a { color: #1A1A2E; }
body.ap-light .ap-card__title a:hover { color: var(--ap-orange); }
body.ap-light .ap-card__meta { color: var(--ap-g2); }
body.ap-light .ap-card__excerpt { color: var(--ap-g2); }
body.ap-light .ap-card__footer { border-top-color: var(--ap-border); }

/* Hero cards */
body.ap-light .ap-hero-item .ap-card__body { background: linear-gradient(transparent, rgba(0,0,0,.75)); }

/* Section titles */
body.ap-light .ap-section-title { color: #1A1A2E; }

/* Sidebar */
body.ap-light .ap-widget { background: #fff; border: 1px solid var(--ap-border); box-shadow: 0 2px 8px rgba(0,0,0,.04); }
body.ap-light .ap-widget__title { color: #1A1A2E; border-bottom-color: var(--ap-border); }
body.ap-light .ap-trend-item { border-bottom-color: var(--ap-border); }
body.ap-light .ap-trend-item a { color: #2C3E55; }
body.ap-light .ap-trend-item a:hover { color: var(--ap-orange); }
body.ap-light .ap-trend-num { background: var(--ap-bg3); color: var(--ap-g2); }

/* Article single */
body.ap-light .ap-article__title { color: #1A1A2E; }
body.ap-light .ap-article__summary { color: var(--ap-g2); border-right-color: var(--ap-orange); background: var(--ap-bg3); }
body.ap-light .ap-article__meta-bar { border-top-color: var(--ap-border); border-bottom-color: var(--ap-border); }
body.ap-light .ap-article__author-name { color: #1A1A2E; }
body.ap-light .ap-article__content { color: #2C3E55; }
body.ap-light .ap-article__content h2,
body.ap-light .ap-article__content h3 { color: #1A1A2E; }
body.ap-light .ap-article__content p  { color: #374151; line-height: 1.9; }
body.ap-light .ap-article__content a  { color: var(--ap-orange); }
body.ap-light .ap-article__content blockquote,
body.ap-light .ap-quote { background: var(--ap-bg3); border-right-color: var(--ap-orange); color: #2C3E55; }

/* Author card */
body.ap-light .ap-author-card { background: #fff; border: 1px solid var(--ap-border); }
body.ap-light .ap-author-card__name { color: #1A1A2E; }
body.ap-light .ap-author-card__bio  { color: var(--ap-g2); }

/* Comments */
body.ap-light .ap-comments-section { border-top-color: var(--ap-border); }
body.ap-light .ap-comment { border-bottom-color: var(--ap-border); }
body.ap-light .ap-comment__name { color: #1A1A2E; }
body.ap-light .ap-comment__text { color: #374151; }
body.ap-light .ap-comment-form-box { background: #fff; border-color: var(--ap-border); }
body.ap-light .ap-comment-textarea,
body.ap-light .ap-comment-input  { background: var(--ap-bg3); border-color: var(--ap-border); color: #1A1A2E; }
body.ap-light .ap-cmt-vote { background: var(--ap-bg3); border-color: var(--ap-border); color: var(--ap-g2); }

/* Translation bar */
body.ap-light .ap-translate-bar { background: var(--ap-bg3); border-color: var(--ap-border); }
body.ap-light .ap-lang-btn { background: #fff; border-color: var(--ap-border); color: var(--ap-g2); }

/* Subscription wall */
body.ap-light .ap-sub-wall { border-color: var(--ap-border); }
body.ap-light .ap-sub-wall__box { background: #fff; }
body.ap-light .ap-sub-wall__title { color: #1A1A2E; }
body.ap-light .ap-sub-plan { background: var(--ap-bg3); border-color: var(--ap-border); }
body.ap-light .ap-sub-plan--popular { border-color: var(--ap-orange); }

/* Live news */
body.ap-light .ap-live-feed { background: #fff; }
body.ap-light .ap-live-update { border-bottom-color: var(--ap-border); }
body.ap-light .ap-live-update__body p { color: #374151; }
body.ap-light .ap-live-admin-post { background: var(--ap-bg3); border-bottom-color: var(--ap-border); }
body.ap-light .ap-live-input { background: #fff; border-color: var(--ap-border); color: #1A1A2E; }

/* Footer */
body.ap-light .ap-footer      { background: #1A2B45; } /* stays dark for contrast */
body.ap-light .ap-footer-btm  { background: #111E30; }

/* Toast */
body.ap-light #ap-toast { background: #1A2B45; color: #fff; }

/* Progress bar */
body.ap-light #ap-progress { background: var(--ap-orange); }

/* Breadcrumb */
body.ap-light .ap-breadcrumb a { color: var(--ap-g2); }
body.ap-light .ap-breadcrumb span { color: var(--ap-g3); }

/* Tags */
body.ap-light .ap-tag { background: var(--ap-bg3); color: var(--ap-g2); border-color: var(--ap-border); }
body.ap-light .ap-tag:hover { background: var(--ap-orange); color: #fff; border-color: var(--ap-orange); }

/* Pagination */
body.ap-light .ap-pagination a,
body.ap-light .ap-pagination span { background: #fff; border-color: var(--ap-border); color: var(--ap-g2); }
body.ap-light .ap-pagination a:hover,
body.ap-light .ap-pagination .current { background: var(--ap-orange); color: #fff; border-color: var(--ap-orange); }

/* Archive / Category header */
body.ap-light .ap-archive-header { background: var(--ap-bg3); border-bottom-color: var(--ap-border); }
body.ap-light .ap-archive-title { color: #1A1A2E; }

/* Search results */
body.ap-light .ap-search-result { background: #fff; border-color: var(--ap-border); }
body.ap-light .ap-search-result:hover { border-color: var(--ap-orange); }

/* Admin bar notice - light mode indicator */
body.ap-light #wpadminbar { filter: brightness(0.95); }

/* ============================================================
   🌓 زر تبديل النمط
   ============================================================ */
.ap-mode-toggle {
  background: none;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 4px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ap-g1);
  transition: all .2s;
  font-family: var(--ap-font-b);
  white-space: nowrap;
}
.ap-mode-toggle:hover {
  border-color: var(--ap-orange);
  color: var(--ap-orange);
}
body.ap-light .ap-mode-toggle {
  border-color: rgba(0,0,0,.15);
  color: #5A6E85;
}
body.ap-light .ap-mode-toggle:hover {
  border-color: var(--ap-orange);
  color: var(--ap-orange);
}
.ap-mode-toggle__icon { font-size: 15px; line-height: 1; }
.ap-mode-toggle__label { font-size: 11px; }
