/* =================================================
   LINKPRO.KZ — NEON UI STYLE (FINAL & CLEAN)
   ================================================= */

/* ---------- ОСНОВНЫЕ ПЕРЕМЕННЫЕ ---------- */
:root {
    --neon: #22d3ee;
    --neon-bg: rgba(34, 211, 238, 0.12);
    --neon-line: rgba(34, 211, 238, 0.65);
    --text-main: #e5e7eb;
}

/* =================================================
   1. МЕНЮ (TOP NAVIGATION)
   ================================================= */

.main-navigation ul li > a {
    position: relative;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.25s ease;
}

.main-navigation ul li > a:hover {
    color: var(--neon);
}

/* линия как в меню */
.main-navigation ul li > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--neon),
        transparent
    );
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.main-navigation ul li > a:hover::after {
    width: 100%;
}

/* активный пункт */
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current-menu-parent > a {
    color: var(--neon);
}

/* =================================================
   2. ВЫПАДАЮЩЕЕ МЕНЮ
   ================================================= */

.main-navigation ul ul {
    background: rgba(10, 15, 25, 0.96);
    border: 1px solid rgba(34, 211, 238, 0.25);
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.15);
    backdrop-filter: blur(6px);
}

.main-navigation ul ul li a {
    transition: background 0.25s ease, color 0.25s ease;
}

.main-navigation ul ul li a:hover {
    background: var(--neon-bg);
    color: var(--neon);
}

/* =================================================
   3. ССЫЛКИ В КОНТЕНТЕ (ТОЛЬКО ПОДЧЁРКИВАНИЕ)
   ================================================= */

.entry-content a {
    color: inherit;
    text-decoration: none;
    position: relative;
}

/* единая линия */
.entry-content a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--neon-line);
    transition: background 0.25s ease;
}

/* hover — усиление линии */
.entry-content a:hover::after {
    background: var(--neon);
}

/* =================================================
   4. КАРТОЧКИ ПОСТОВ (ГЛАВНАЯ)
   ================================================= */

.read-img a.aft-post-image-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    transition: background 0.25s ease;
}

.read-img a.aft-post-image-link:hover {
    background: var(--neon-bg);
}

/* рамка */
.read-img a.aft-post-image-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    transition: border 0.25s ease, box-shadow 0.25s ease;
}

.read-img a.aft-post-image-link:hover::after {
    border-color: var(--neon);
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.55);
}

/* заголовок карточки */
.read-img a.aft-post-image-link:hover
~ .entry-header .entry-title {
    color: var(--neon) !important;
}

/* =================================================
   5. КНОПКИ
   ================================================= */

button,
input[type="submit"],
.wp-block-button__link {
    background: rgba(34, 211, 238, 0.08);
    color: var(--text-main);
    border: 1px solid rgba(34, 211, 238, 0.3);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
    background: rgba(34, 211, 238, 0.18);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
}

/* =================================================
   6. ИСКЛЮЧЕНИЯ (БЕЗ ПОДЧЁРКИВАНИЯ)
   ================================================= */

.main-navigation a::after,
.read-img a::after,
button::after,
.wp-block-button__link::after,
.wp-block-button__link a::after {
    display: none !important;
}

/* =================================================
   7. КУРСОР
   ================================================= */

a,
button,
.read-img a.aft-post-image-link {
    cursor: pointer;
}

/* =========================================
   MENU — RESTORE NEON UNDERLINE
   ========================================= */

.main-navigation ul li > a {
    position: relative;
}

/* неоновая линия в меню */
.main-navigation ul li > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        #22d3ee,
        transparent
    );
    transform: translateX(-50%);
    transition: width 0.3s ease;
    display: block !important;
}

/* hover */
.main-navigation ul li > a:hover::after {
    width: 100%;
}

/* =========================
   ОБЩАЯ ТИПОГРАФИКА СТАТЕЙ
========================= */

article,
.post-content,
.entry-content {
  font-size: 17px;
  line-height: 1.75;
  max-width: 760px;
  margin: auto;
}

/* Адаптив для мобилы */
@media (max-width: 768px) {
  article,
  .post-content,
  .entry-content {
    font-size: 16px;
    line-height: 1.7;
    padding: 0 14px;
  }
}

/* =========================
   DROP CAP (первая буква)
========================= */

/* Только первый абзац статьи */
.entry-content > p:first-of-type::first-letter {
  float: left;
  font-size: 3.4em;
  line-height: 1;
  padding-right: 10px;
  padding-top: 6px;
  font-weight: 700;
  color: var(--accent);
}

/* =========================
   ПЛАВНОЕ ПОЯВЛЕНИЕ ТЕКСТА
========================= */

.fade-text {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   КРАСИВЫЕ ЗАГОЛОВКИ
========================= */

.entry-content h2,
.entry-content h3 {
  margin-top: 2.5em;
  margin-bottom: 0.6em;
  line-height: 1.3;
  position: relative;
}

.entry-content h2::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 0.4em;
  width: 4px;
  height: 1.2em;
  background: var(--accent);
  border-radius: 2px;
}

/* =========================
   ЦИТАТЫ
========================= */

.entry-content blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  margin: 24px 0;
  font-style: italic;
  opacity: 0.85;
}

.entry-content ul,
.entry-content ol {
  padding-left: 22px;
  margin: 20px 0;
}

.entry-content li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.entry-content ul li::marker {
  color: var(--accent);
}

.entry-content p {
  margin-bottom: 1.4em;
  letter-spacing: 0.01em;
}

.entry-content {
  text-wrap: pretty;
}

/* =========================================
   REMOVE MENU ARROWS (DESKTOP + MOBILE)
   ========================================= */

/* кнопки раскрытия подменю */
.main-navigation .submenu-toggle,
.main-navigation .submenu-toggle * {
    display: none !important;
}

/* стрелки через псевдоэлементы */
.main-navigation li.menu-item-has-children > a::before,
.main-navigation li.menu-item-has-children > a::after {
    display: none !important;
}

/* убираем резерв под стрелки */
.main-navigation li.menu-item-has-children > a {
    padding-right: 16px !important;
}
/* =========================================
   HOMEPAGE POSTS — FULL BLOCK HOVER (REAL)
   ========================================= */

/* основной контейнер карточки */
.read-single.color-pad {
    position: relative;
    transition:
        background 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s ease;
}

/* hover по ВСЕМУ блоку */
.read-single.color-pad:hover {
    background: rgba(34, 211, 238, 0.06);
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.18);
    transform: translateY(-3px);
}

/* картинка — мягче */
.read-single.color-pad:hover .read-img {
    filter: brightness(1.05);
}

/* заголовок */
.read-single.color-pad:hover .read-title a {
    color: #22d3ee;
}

/* дата / мета — слегка */
.read-single.color-pad:hover .read-details {
    opacity: 0.95;
}

/* мобилка — без подъёма */
@media (max-width: 768px) {
    .read-single.color-pad:hover {
        transform: none;
    }
}

/* =====================================================
   SUBSCRIBE MODAL — FINAL VERSION
===================================================== */

/* Overlay */
#subscribe-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

/* Active state */
#subscribe-modal.active {
  display: flex;
  opacity: 1;
}

/* Modal box */
.subscribe-modal-inner {
  position: relative;
  background: #0b1220;
  border-radius: 14px;
  padding: 28px 32px;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 0 40px rgba(0, 180, 255, 0.35);
  cursor: default;
  animation: modalFadeIn 0.25s ease;
}

/* Animation */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Close button */
.subscribe-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  opacity: 0.7;
}

.subscribe-close:hover {
  opacity: 1;
}

/* Success state */
.subscribe-success {
  color: #e6f7ff;
  text-align: center;
}

.subscribe-success h3 {
  color: #00eaff;
  text-shadow: 0 0 10px rgba(0, 234, 255, 0.6);
}

.subscribe-success ul {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.subscribe-success li {
  margin: 6px 0;
  opacity: 0.9;
}

.subscribe-success small {
  display: block;
  margin-top: 10px;
  opacity: 0.7;
}

/* Optional inline subscribe button icon */
.subscribe-inline-btn::before {
  content: "🔔";
  font-size: 18px;
  margin-right: 8px;
}

@media (max-width: 768px) {
  .toc-wrapper {
    transform: scale(0.9);
  }
}
