/**
 * Author Profile Theme — основные стили.
 * Палитра и типографика заданы переменными в style.css (:root).
 */

/* ---------- Шапка ---------- */
.site-header{ background: var(--apt-bg); border-bottom: 1px solid var(--apt-border); position: sticky; top: 0; z-index: 100; }
.site-header__inner{ display:flex; align-items:center; justify-content:space-between; gap:20px; padding:14px 20px; }
.site-branding__name{ font-family: var(--apt-font-heading); font-weight:700; font-size:20px; color: var(--apt-navy); }
.primary-menu{ list-style:none; display:flex; gap:22px; margin:0; padding:0; flex-wrap:wrap; }
.primary-menu a{ color: var(--apt-text); font-weight:600; font-size:15px; }
.primary-menu a:hover{ color: var(--apt-maroon); text-decoration:none; }

/* ---------- Кнопки / бейджи ---------- */
.button{ display:inline-block; padding:12px 22px; border-radius:8px; font-weight:700; text-decoration:none; }
.button--primary{ background: var(--apt-maroon); color:#fff; }
.button--primary:hover{ background: var(--apt-navy); color:#fff; }
.button--ghost{ background:transparent; color: var(--apt-navy); border:2px solid var(--apt-navy); }
.button--ghost:hover{ background: var(--apt-navy); color:#fff; }
.badge{ display:inline-block; background: var(--apt-bg-alt); color: var(--apt-navy); border:1px solid var(--apt-border); border-radius:999px; padding:2px 12px; font-size:12px; font-weight:700; margin-right:6px; }

/* ---------- Hero ---------- */
.apt-hero{ padding: 56px 0 48px; background: var(--apt-bg-alt); }
.apt-hero__inner{ display:flex; gap:40px; align-items:center; flex-wrap:wrap; }
.apt-hero__photo{ flex:0 0 auto; width:220px; height:220px; border-radius:50%; overflow:hidden; box-shadow: var(--apt-shadow); border:4px solid #fff; }
.apt-hero__photo img{ width:100%; height:100%; object-fit:cover; }
.apt-hero__body{ flex:1 1 420px; min-width:260px; }
.apt-hero__name{ margin-bottom:.2em; }
.apt-hero__role{ font-size:20px; font-weight:700; color: var(--apt-maroon); margin-bottom:.2em; }
.apt-hero__company{ color: var(--apt-text-muted); margin-bottom:1em; }
.apt-hero__actions{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:18px; }
.apt-social{ list-style:none; display:flex; gap:10px; padding:0; margin:0; flex-wrap:wrap; }
.apt-social li a{ display:inline-flex; align-items:center; background:#fff; border:1px solid var(--apt-border); border-radius:999px; padding:7px 16px; font-size:14px; font-weight:600; color: var(--apt-navy); }
.apt-social li a:hover{ border-color: var(--apt-maroon); color: var(--apt-maroon); text-decoration:none; }
.apt-social--footer li a{ background: transparent; border-color: rgba(255,255,255,.25); color:#fff; }
.apt-social--large li a{ padding:10px 20px; font-size:15px; }

/* ---------- Секции ---------- */
.apt-section{ padding: 56px 0; }
.apt-section--alt{ background: var(--apt-bg-alt); }
.apt-section__intro{ color: var(--apt-text-muted); max-width: 70ch; margin-top:-8px; }
.apt-triplets{ color: var(--apt-text-muted); font-size:15px; border-left:3px solid var(--apt-maroon); padding-left:14px; margin-top:1.4em; }

/* ---------- Биография ---------- */
.apt-bio{ display:grid; grid-template-columns: 2fr 1fr; gap:40px; align-items:start; }
.apt-bio__facts{ background:#fff; border:1px solid var(--apt-border); border-radius: var(--apt-radius); padding:22px 26px; box-shadow: var(--apt-shadow); }
.apt-bio__facts dt{ font-size:12px; text-transform:uppercase; letter-spacing:.04em; color: var(--apt-text-muted); font-weight:700; margin-top:14px; }
.apt-bio__facts dt:first-child{ margin-top:0; }
.apt-bio__facts dd{ margin:2px 0 0; font-weight:600; }

/* ---------- Вкладки/фильтры ---------- */
.apt-tabs{ display:flex; gap:10px; flex-wrap:wrap; margin: 22px 0 28px; }
.apt-tab{ background:#fff; border:1px solid var(--apt-border); border-radius:999px; padding:9px 20px; font-weight:600; cursor:pointer; color: var(--apt-text); font-size:15px; }
.apt-tab.is-active{ background: var(--apt-navy); border-color: var(--apt-navy); color:#fff; }
.apt-tab:hover{ border-color: var(--apt-maroon); }

/* ---------- Карточки публикаций ---------- */
.card-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap:20px; }
.card{ background:#fff; border:1px solid var(--apt-border); border-radius: var(--apt-radius); padding:20px 22px; box-shadow: var(--apt-shadow); display:flex; flex-direction:column; }
.card h3{ font-size:18px; margin-bottom:.35em; }
.card h3 a{ color: var(--apt-navy); }
.card h3 a:hover{ color: var(--apt-maroon); }
.card-meta{ font-size:13px; color: var(--apt-text-muted); margin-bottom:.6em; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.card-excerpt{ font-size:15px; color: var(--apt-text-muted); flex:1; }
.apt-filter-item{ transition: opacity .15s ease; }
.apt-filter-item[hidden]{ display:none; }

/* ---------- Видео ---------- */
.video-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap:22px; }
.media-card{ background:#fff; border:1px solid var(--apt-border); border-radius: var(--apt-radius); overflow:hidden; box-shadow: var(--apt-shadow); }
.lite-embed{ position:relative; width:100%; aspect-ratio:16/9; background:#111 center/cover no-repeat; cursor:pointer; }
.lite-embed::before{ content:""; position:absolute; inset:0; background:rgba(0,0,0,.25); transition:background .2s; }
.lite-embed:hover::before{ background:rgba(0,0,0,.4); }
.lite-embed .play-btn{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:64px; height:64px; border-radius:50%; background: var(--apt-maroon); display:flex; align-items:center; justify-content:center; box-shadow:0 4px 16px rgba(0,0,0,.35); }
.lite-embed .play-btn::after{ content:""; border-style:solid; border-width:11px 0 11px 18px; border-color:transparent transparent transparent #fff; margin-left:4px; }
.lite-embed iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.media-embed-wrap{ position:relative; width:100%; aspect-ratio:16/9; }
.media-embed-wrap iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.media-card__body{ padding:14px 18px; }
.media-card__body h3{ font-size:16px; margin-bottom:.3em; }
.media-card__meta{ font-size:13px; color: var(--apt-text-muted); display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin:0; }

/* ---------- Цитаты ---------- */
.quote-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap:20px; }
.quote-card{ background:#fff; border:1px solid var(--apt-border); border-left:4px solid var(--apt-maroon); border-radius: var(--apt-radius); padding:22px 24px; margin:0; box-shadow: var(--apt-shadow); }
.quote-card p{ font-size:18px; font-style:italic; color: var(--apt-navy); margin-bottom:.7em; }
.quote-card footer{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; font-size:13px; color: var(--apt-text-muted); }
.quote-card cite{ font-style:normal; }

/* ---------- Контакты ---------- */
.apt-contact-email{ margin: 18px 0; }

/* ---------- Подвал ---------- */
.site-footer{ background: var(--apt-navy); color:#e7e7e7; padding: 40px 0; margin-top: 20px; }
.footer-inner{ display:flex; flex-wrap:wrap; gap:20px; justify-content:space-between; align-items:center; }
.footer-menu{ list-style:none; display:flex; gap:16px; margin:0; padding:0; }
.footer-menu a{ color:#e7e7e7; }
.footer-copy{ font-size:14px; color:#b7c0cb; }

/* ---------- Хлебные крошки ---------- */
.apt-breadcrumbs{ font-size:13px; color: var(--apt-text-muted); margin:16px 0; }

/* ---------- Прочее (page/single/archive) ---------- */
.page-content-wrap{ display:grid; grid-template-columns: 2fr 1fr; gap:40px; padding: 40px 0 60px; }
.page-content-wrap.no-sidebar{ grid-template-columns: 1fr; max-width: 80ch; margin:0 auto; }
.widget-title{ font-size:16px; }
.widget{ margin-bottom:28px; }
