/*
Theme Name: Eduboom Blog
Theme URI: https://eduboom.pl
Author: Еduboom / Ucha.se
Description: Lightweight multi-market blog theme for the eduboom network.
Version: 1.5.6
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: eduboom-blog
*/

/* =========================================================
   DESIGN TOKENS — реалните стойности от CSS-а на eduboom.pl
   (:root променливите на платформата, Jul 2026)
   ========================================================= */
:root{
  --c-ink:        #0d2a27;  /* --text-primary / vblack */
  --c-ink-soft:   #5d7681;  /* --gray-default */
  --c-teal:       #2ec4b6;  /* --v-cyan */
  --c-teal-dark:  #239e92;  /* производна за hover/линкове */
  --c-yellow:     #f7b801;  /* лого "edu" — от SVG-то на платформата */
  --c-orange:     #ffad3e;  /* --orange-default (CTA) */
  --c-orange-2:   #ffcb82;  /* --orange-light (CTA градиент) */
  --c-blue:       #00a6fb;  /* --blue-default (Pomoc бутона) */
  --c-cream:      #f9fafb;  /* --accent-background-color */
  --c-bg:         #ffffff;
  --c-border:     #ececec;  /* --border-color */
  --c-footer-bg:  #091215;  /* --v-theme-footer-bg (9,18,21) */
  --c-footer-ink: #dae1e4;  /* --text-light-gray */

  /* Sofia Pro идва от Typekit kit-а на eduboom.pl (domain-locked):
     на пилотния домейн пада към Montserrat, в production на /blog/ работи. */
  --font-display: 'sofia-pro', 'Montserrat', system-ui, sans-serif;
  --font-body:    'sofia-pro', 'Montserrat', system-ui, sans-serif;
  --font-alt:     'Montserrat', system-ui, sans-serif; /* междупазарни линкове */

  --radius-card:  20px;
  --radius-pill:  999px;
  --shadow-card:  0 6px 24px rgba(29,43,54,.08);
  --header-h:     73px;   /* 72px min-height + 1px border */
  --maxw:         1200px;
  --maxw-article: 760px;
}

/* ============ Reset-lite & base ============ */
*,*::before,*::after{box-sizing:border-box}
html{scroll-padding-top:calc(var(--header-h) + 16px)}
body{margin:0;font-family:var(--font-body);color:var(--c-ink);background:var(--c-bg);line-height:1.65;font-size:17px}
img{max-width:100%;height:auto;display:block}
a{color:var(--c-teal-dark);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3{font-family:var(--font-display);line-height:1.2;color:var(--c-ink);margin:0 0 .5em}
:focus-visible{outline:3px solid var(--c-teal);outline-offset:2px;border-radius:4px}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px}

/* ============ Header: лого + 1 CTA ============ */
.site-header{background:var(--c-bg);border-bottom:1px solid rgba(29,43,54,.06);
  position:sticky;top:0;z-index:100}
/* при логнат админ WP слага admin bar — sticky-то се съобразява с него */
.admin-bar .site-header{top:32px}
@media screen and (max-width:782px){.admin-bar .site-header{top:46px}}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;min-height:72px}
.brand img{height:28px;width:auto;display:block}
/* Действия вдясно: вторичен "Blog" + основен CTA (същият модел като
   "Mam konto" / "Rozpocznij" на платформата) */
.header-actions{display:flex;align-items:center;gap:10px}
.btn-ghost{display:inline-block;font-weight:700;padding:10px 24px;border-radius:var(--radius-pill);
  border:2px solid var(--c-orange);color:var(--c-ink);background:transparent;
  transition:background-color .15s ease,color .15s ease}
.btn-ghost:hover{background:var(--c-orange);color:#fff;text-decoration:none}
@media(max-width:520px){
  .btn-ghost,.cta-lessons{padding:9px 16px;font-size:15px}
  .brand img{height:24px}
}

.brand-fallback{font-family:var(--font-display);font-weight:800;font-size:26px}
.brand-fallback .b1{color:var(--c-yellow)}
.brand-fallback .b2{color:var(--c-teal)}
.cta-lessons{display:inline-block;background:linear-gradient(90deg,var(--c-orange),var(--c-orange-2));
  color:#fff;font-weight:700;padding:12px 26px;border-radius:var(--radius-pill);
  box-shadow:0 4px 14px rgba(255,150,40,.35);transition:transform .15s ease}
.cta-lessons:hover{transform:translateY(-1px);text-decoration:none;color:#fff}

/* ============ Blog hero (H1) ============ */
.blog-hero{background:var(--c-cream);padding:44px 0 36px;text-align:center}
.blog-hero h1{font-size:clamp(26px,4vw,40px);margin:0}
.blog-hero h1 em{font-style:normal;color:var(--c-teal-dark)}

/* ============ Layout: листинг + sidebar ============ */
.blog-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:36px;padding:40px 0 64px}
@media(max-width:960px){.blog-layout{grid-template-columns:1fr}}

/* Карта на статия */
.post-card{background:var(--c-bg);border:1px solid rgba(29,43,54,.07);border-radius:var(--radius-card);
  box-shadow:var(--shadow-card);overflow:hidden;margin-bottom:32px}
.post-card .thumb{aspect-ratio:1200/630;background:var(--c-cream)}
.post-card .thumb img{width:100%;height:100%;object-fit:cover}
.post-card .body{padding:24px 28px 28px}
.post-meta{font-size:14px;color:var(--c-ink-soft);display:flex;gap:10px;align-items:center;margin-bottom:8px}
.post-meta .dot{width:5px;height:5px;border-radius:50%;background:var(--c-yellow);display:inline-block}
.post-card h2{font-size:24px;margin:0 0 10px}
.post-card h2 a{color:var(--c-ink)}
.post-card h2 a:hover{color:var(--c-teal-dark);text-decoration:none}
.post-card .excerpt{color:var(--c-ink-soft);margin:0 0 18px}
.more-link{display:inline-block;font-weight:700;color:var(--c-ink);border:2px solid var(--c-ink);
  padding:9px 20px;border-radius:var(--radius-pill);font-size:15px}
.more-link:hover{background:var(--c-ink);color:#fff;text-decoration:none}

/* Sidebar */
.blog-sidebar{align-self:start;position:sticky;top:calc(var(--header-h) + 20px)}
.admin-bar .blog-sidebar{top:calc(var(--header-h) + 52px)} /* + WP admin bar */
@media screen and (max-width:782px){.admin-bar .blog-sidebar{top:calc(var(--header-h) + 66px)}}
.blog-sidebar .widget{background:var(--c-cream);border-radius:var(--radius-card);padding:24px 26px;margin-bottom:28px}
.blog-sidebar .widget-title{font-size:15px;letter-spacing:.08em;text-transform:uppercase;color:var(--c-ink-soft);margin-bottom:14px}
.blog-sidebar ul{list-style:none;margin:0;padding:0}
.blog-sidebar li{padding:8px 0;border-bottom:1px dashed rgba(29,43,54,.12)}
.blog-sidebar li:last-child{border-bottom:0}

/* ============ Единична статия ============ */
.article-wrap{max-width:var(--maxw-article);margin:0 auto;padding:44px 20px 24px}
.single-article{padding:8px 0 0}
.single-article h1{font-size:clamp(26px,3.4vw,36px);margin:6px 0 16px}
.article-hero{border-radius:var(--radius-card);overflow:hidden;margin:26px 0 8px}
.entry-content{font-size:18px}
.entry-content h2{font-size:26px;margin-top:1.6em}
.entry-content img{border-radius:14px}
.entry-content ul,.entry-content ol{padding-left:1.3em}

/* Share — голи линкове, нула SDK */
.share-bar{display:flex;align-items:center;gap:10px;margin:10px 0 0;padding:18px 0 0;border-top:1px solid var(--c-border)}
.share-bar .lbl{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--c-ink-soft)}
.share-btn{display:inline-flex;line-height:0;border:0;padding:0;background:none;cursor:pointer;border-radius:50%;
  transition:transform .15s ease,opacity .15s ease;position:relative}
.share-btn img{width:40px;height:40px;display:block}
.share-btn:hover{transform:translateY(-2px);opacity:.85;text-decoration:none}
.share-copy.is-copied::after{content:"✓";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  background:var(--c-teal);color:#fff;border-radius:50%;font-weight:700}
.share-msgr{display:none}
@media(pointer:coarse){.share-msgr{display:inline-flex}}

/* Share в картата на листинга — по-малки икони, без горна линия */
.card-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.share-bar--card{margin:0;padding:0;border-top:0;gap:8px}
.share-bar--card .lbl{display:none}
.share-bar--card .share-btn img{width:32px;height:32px}

/* CTA блок в края на статия */
.article-cta{margin:28px 0 8px;padding:34px 32px;text-align:center;
  background:var(--c-cream);border-radius:var(--radius-card)}
.article-cta h2{font-size:24px;margin-bottom:8px}
.article-cta p{color:var(--c-ink-soft);margin:0 0 20px}

/* ============ Footer — стойностите са от AppFooter CSS-а на eduboom.pl ============ */
.site-footer{background:var(--c-footer-bg);color:#fff;margin-top:40px}
.site-footer .wrap{max-width:1180px}
.site-footer a{color:currentColor;text-decoration:none}
.site-footer a:hover{text-decoration:underline}

.footer-top{display:grid;grid-template-columns:5fr 2fr 4fr;gap:24px;padding:32px 0}
@media(max-width:992px){.footer-top{grid-template-columns:1fr;gap:40px;padding:48px 0 0}}
.footer-logo-img{width:211px;height:auto;max-width:100%}
.footer-col h3{margin:0 0 16px;font-weight:500;font-size:14px;line-height:1;letter-spacing:3px;
  text-transform:uppercase;color:rgba(195,232,228,.4)}
.footer-col ul{list-style:none;margin:0;padding:0}
.footer-col li{font-weight:400;font-size:18px;line-height:1;letter-spacing:2px}
.footer-col li:not(:last-child){padding-bottom:16px}

.footer-socials{display:flex;justify-content:flex-end;gap:8px;padding:32px 0}
@media(max-width:992px){.footer-socials{justify-content:flex-start}}
.social-btn{display:inline-flex;line-height:0;border-radius:50%;transition:transform .15s ease,opacity .15s ease}
.social-btn img{width:40px;height:40px;display:block}
.social-btn:hover{transform:translateY(-2px);opacity:.85}

.footer-markets{display:flex;flex-wrap:wrap;justify-content:center;gap:24px;padding:16px 0}
@media(max-width:992px){.footer-markets{flex-direction:column;align-items:flex-start;gap:16px}}
.footer-markets a{font-family:var(--font-alt);font-weight:400;font-size:16px;line-height:1;
  letter-spacing:-.01em;color:var(--c-teal)}

.footer-divider{border:0;border-top:1px solid rgba(255,255,255,.12);margin:0}

.footer-bottom{display:flex;align-items:center;justify-content:space-between;padding:32px 0;
  color:rgba(255,255,255,.32)}
.footer-bottom .copy{list-style:none;margin:0;padding:0;display:flex}
.footer-bottom .copy li{font-weight:600;font-size:16px;line-height:1;letter-spacing:0}
.footer-bottom .copy li:not(:last-child){padding-right:16px}
.footer-bottom .terms a{color:var(--c-teal);font-weight:400;font-size:12px;line-height:1;
  letter-spacing:3px;text-transform:uppercase}
.footer-bottom .terms a:not(:last-child){margin-right:16px}
@media(max-width:992px){

  .footer-bottom{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    padding:16px 0 32px;
  }

  .footer-bottom .terms{
    order:1;
    margin:0 0 32px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:16px;
    width:100%;
    text-align:left;
  }

  .footer-bottom .terms a:not(:last-child){
    margin-right:0;
  }

  .footer-bottom .copy{
    order:2;
    flex-direction:column;
    align-items:flex-start;
    gap:16px;
    width:100%;
    text-align:left;
    padding-top:32px;
    border-top:1px solid rgba(255,255,255,.12);
  }

  .footer-bottom .copy li:not(:last-child){
    padding-right:0;
  }

  .footer-divider{
    display:none;
  }
}
@media (max-width: 520px) {

  .site-header .wrap,
  body > .wrap,
  .blog-hero .wrap,
  .article-wrap {
    padding-left: clamp(2px, calc(9vw - 26.8px), 20px);
    padding-right: clamp(2px, calc(9vw - 26.8px), 20px);
  }

  .header-actions {
    gap: 6px;
  }

  .btn-ghost,
  .cta-lessons {
    padding: 9px 14px;
    font-size: 15px;
    white-space: nowrap;
  }

  .brand img {
    height: 24px;
  }
}