/* WordPress theme extras — admin-extras.css */

/* ── Page hero ──────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, oklch(0.28 0.10 225), oklch(0.20 0.08 220));
  color: #fff; padding: 48px 0 40px;
}
.page-hero__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 0 0 8px; }
.page-hero__sub   { font-size: 1rem; opacity: .8; margin: 0; }
.page-hero__meta  { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; font-size: .85rem; opacity: .8; }
.entry-content { font-size: 1rem; line-height: 1.8; color: oklch(0.25 0.05 225); }
.entry-content h2 { margin-top: 2em; }
.entry-content img { max-width: 100%; border-radius: 8px; }
.news-grid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }

/* ── Polylang language switcher ─────────────────────── */
#lang_switcher { display: flex; gap: 4px; }
.pll-parent-menu-item a.pll-lang-toggle { display: none !important; }
.pll_icon, .pll_icon_kk, .pll_icon_ru { display: inline-block; }
/* Style Polylang switcher like our custom buttons */
.lang-switch .pll-parent-menu-item > a,
.lang-switch ul li a {
  display: inline-block; padding: 3px 8px; border-radius: 4px;
  font-size: 0.78rem; font-weight: 600; color: oklch(0.60 0.04 225);
  text-decoration: none; transition: all .15s;
}
.lang-switch .current-lang > a,
.lang-switch .current-menu-item > a {
  background: oklch(0.32 0.10 225); color: #fff;
}

/* ── Breadcrumbs ────────────────────────────────────── */
.breadcrumbs { font-size: 0.85rem; color: oklch(0.60 0.05 225); margin-bottom: 20px; }
.breadcrumbs a { color: oklch(0.50 0.08 225); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: oklch(0.40 0.05 225); }

/* ── Single book ────────────────────────────────────── */
@media (max-width: 640px) {
  .container [style*='grid-template-columns:200px'] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Pagination ─────────────────────────────────────── */
.pagination .nav-links { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px; font-size: 0.88rem;
  border: 1.5px solid oklch(0.88 0.02 225); color: oklch(0.35 0.05 225);
  text-decoration: none; transition: all .15s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: oklch(0.32 0.10 225); color: #fff; border-color: oklch(0.32 0.10 225);
}
.pagination .page-numbers.dots { border: none; width: auto; }

/* ── WP admin bar adjustment ────────────────────────── */
body.admin-bar .header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .header { top: 46px; } }

/* ── Hero search suggest ────────────────────────────── */
.hero__search-wrap { position: relative; }
.hero__search-suggest li a:hover { color: oklch(0.32 0.10 225) !important; }

/* ── Scroll-to-top ──────────────────────────────────── */
/* (button created dynamically via JS) */

/* ── Cabinet page container ─────────────────────────── */
.alc-cabinet { padding: 40px 0 80px; }
@media (max-width: 900px) { .alc-auth-wrap { padding: 24px 16px 60px; } }

/* ── Print styles ───────────────────────────────────── */
@media print {
  .header, .footer, .topbar, .services-bar, .hero__books-decor { display: none !important; }
  .hero { min-height: auto; padding: 20px 0; }
}
