/*
Theme Name: SKOT AI
Theme URI: https://ai.skotnicki.it/
Description: Portal + blog o sztucznej inteligencji: newsy, poradniki z poziomami trudności, ścieżki nauki, słownik pojęć, katalog narzędzi i biblioteka promptów. Tryb jasny i ciemny. Klasyczny motyw PHP; typy treści dostarcza mu-plugin „SKOT AI Core”.
Version: 1.0.2
Author: SKOT
Requires PHP: 8.0
Text Domain: skot-ai
Tags: blog, news, education, dark-mode, responsive, custom-front-page
*/

/* =========================================================================
   ZMIENNE (jasny / ciemny)
   ========================================================================= */
:root{
  --bg:#F7F8FB; --surface:#FFFFFF; --surface-2:#EEF1F7; --text:#0E1220; --text-2:#2A3042; --muted:#4F566A;
  --border:#DFE3EC; --accent:#2F4BFF; --accent-hover:#2238D6; --accent-soft:#E9EDFF; --on-accent:#FFFFFF;
  --code:#0E1220; --code-head:#1A2033; --code-text:#E6EAF5; --code-muted:#A6ADBE; --code-border:#3A4360;
  --l1-bg:#DCF2E6; --l1-fg:#0E5535; --l2-bg:#FCE9C4; --l2-fg:#704300; --l3-bg:#EBE2FF; --l3-fg:#47279A;
  --radius:16px; --wrap:1240px;
  --f-body:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-display:"Inter Tight",Inter,system-ui,sans-serif;
  --f-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#0B0E17; --surface:#121725; --surface-2:#1A2033; --text:#EEF1F8; --text-2:#D4D9E6; --muted:#A6ADBE;
    --border:#272E44; --accent:#8EA0FF; --accent-hover:#B0BDFF; --accent-soft:#161D33; --on-accent:#0B0E17;
    --code:#05070D; --code-head:#141A2B;
    --l1-bg:#123526; --l1-fg:#8FE0B5; --l2-bg:#3A2A0C; --l2-fg:#F5C46B; --l3-bg:#2A1F4A; --l3-fg:#C9B6FF;
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#0B0E17; --surface:#121725; --surface-2:#1A2033; --text:#EEF1F8; --text-2:#D4D9E6; --muted:#A6ADBE;
  --border:#272E44; --accent:#8EA0FF; --accent-hover:#B0BDFF; --accent-soft:#161D33; --on-accent:#0B0E17;
  --code:#05070D; --code-head:#141A2B;
  --l1-bg:#123526; --l1-fg:#8FE0B5; --l2-bg:#3A2A0C; --l2-fg:#F5C46B; --l3-bg:#2A1F4A; --l3-fg:#C9B6FF;
  color-scheme:dark;
}

/* =========================================================================
   BAZA
   ========================================================================= */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:400 16px/1.6 var(--f-body);-webkit-font-smoothing:antialiased}
img,video{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-decoration:none}
a:hover{color:var(--accent-hover);text-decoration:underline}
h1,h2,h3,h4{font-family:var(--f-display);font-weight:700;line-height:1.15;letter-spacing:-.015em;margin:0}
p{margin:0}
button{font:inherit}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:4px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip-link:focus{position:fixed;top:8px;left:8px;width:auto;height:auto;clip:auto;z-index:100;background:var(--surface);color:var(--text);padding:10px 16px;border-radius:8px}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
.muted{color:var(--muted)}
.mono{font-family:var(--f-mono)}

/* =========================================================================
   NAGŁÓWEK
   ========================================================================= */
.site-header{background:var(--surface);border-bottom:1px solid var(--border);position:relative;z-index:20}
.site-header__row{min-height:72px;display:flex;align-items:center;gap:16px 32px}
.brand{display:flex;align-items:center;gap:10px;font:700 20px/1 var(--f-display);color:var(--text);letter-spacing:-.01em;white-space:nowrap}
.brand:hover{text-decoration:none;color:var(--text)}
.brand__mark{display:inline-flex;width:32px;height:32px;border-radius:8px;background:var(--accent);color:var(--on-accent);align-items:center;justify-content:center;font-size:15px}
.brand__sub{color:var(--muted);font-weight:600}
.brand img{max-height:40px;width:auto}
.main-nav{flex:1}
.main-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 22px}
.main-nav a{color:var(--text);font-weight:500;font-size:15px;padding:6px 0;display:inline-block}
.main-nav a:hover{color:var(--accent);text-decoration:none}
.main-nav .current-menu-item>a,.main-nav .current-menu-ancestor>a,.main-nav .current_page_item>a,.main-nav a[aria-current]{color:var(--accent)}
.header-tools{display:flex;gap:8px;margin-left:auto}
.icon-btn{height:44px;min-width:44px;padding:0 12px;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--text);display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;font-size:14px;font-weight:500}
.icon-btn:hover{border-color:var(--accent);color:var(--accent)}
.theme-toggle .when-dark{display:none}
:root[data-theme="dark"] .theme-toggle .when-dark{display:inline-flex}
:root[data-theme="dark"] .theme-toggle .when-light{display:none}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .theme-toggle .when-dark{display:inline-flex}
  :root:not([data-theme="light"]) .theme-toggle .when-light{display:none}
}
.theme-toggle span{display:inline-flex;align-items:center;gap:8px}
.menu-toggle{display:none}
.search-panel{border-top:1px solid var(--border);background:var(--surface);padding:16px 0}
.search-panel[hidden]{display:none}
.search-form{display:flex;gap:8px;max-width:640px}
.search-form input[type=search]{flex:1;min-height:44px;border:1px solid var(--border);border-radius:10px;background:var(--bg);color:var(--text);padding:0 14px;font-size:16px}
.btn{min-height:44px;padding:0 18px;border-radius:10px;border:0;background:var(--accent);color:var(--on-accent);font-weight:600;font-size:15px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.btn:hover{background:var(--accent-hover);color:var(--on-accent);text-decoration:none}

@media (max-width:900px){
  .site-header__row{flex-wrap:wrap}
  .menu-toggle{display:inline-flex}
  .main-nav{order:5;flex-basis:100%;display:none;padding-bottom:12px}
  .main-nav.is-open{display:block}
  .main-nav ul{flex-direction:column;gap:0}
  .main-nav a{display:block;padding:12px 0;border-top:1px solid var(--border)}
  .theme-toggle .theme-toggle__label{display:none}
}
@media (max-width:600px){
  .wrap{padding:0 16px}
  .site-header__row{column-gap:10px}
  .brand{font-size:17px;gap:8px}
  .header-tools{gap:6px}
  .section{margin-top:56px}
  .section-head h2,.path h2{font-size:26px}
}

/* =========================================================================
   ELEMENTY WSPÓLNE
   ========================================================================= */
.site-main{padding:40px 0 0}
.section{margin-top:72px}
.section-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:24px}
.section-head h2{font-size:32px}
.section-head p{margin-top:4px;color:var(--muted)}
.more{font-size:14px;font-weight:600}
.pill{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;font-size:13px;font-weight:600;line-height:1.5;background:var(--surface-2);color:var(--text)}
.pill--accent{background:var(--accent);color:var(--on-accent)}
.pill:hover{text-decoration:none}
.lvl-podstawy{background:var(--l1-bg);color:var(--l1-fg)}
.lvl-srednio{background:var(--l2-bg);color:var(--l2-fg)}
.lvl-zaawansowane{background:var(--l3-bg);color:var(--l3-fg)}
.meta{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;font-size:13px;color:var(--muted)}
.placeholder{background:var(--surface-2);display:flex;align-items:center;justify-content:center;color:var(--muted);font:500 13px var(--f-mono)}
.thumb{aspect-ratio:16/9;width:100%;object-fit:cover;background:var(--surface-2)}
.box{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);padding:24px}
.box__head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.box__head h2{font-size:22px}
.editor-hint{border:1px dashed var(--border);border-radius:12px;padding:16px;color:var(--muted);font-size:14px;margin-top:12px}
.filters{display:flex;flex-wrap:wrap;gap:8px}
.filter{min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--border);background:var(--surface);color:var(--text);font-weight:600;font-size:14px;cursor:pointer;display:inline-flex;align-items:center}
.filter:hover{border-color:var(--text);text-decoration:none;color:var(--text)}
.filter[aria-pressed="true"],.filter.is-active{background:var(--text);color:var(--bg);border-color:var(--text)}

/* =========================================================================
   STRONA GŁÓWNA
   ========================================================================= */
.hero{display:flex;flex-wrap:wrap;gap:32px}
.hero__main{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:18px}
.hero__main .thumb,.hero__main .placeholder{border-radius:var(--radius);border:1px solid var(--border);aspect-ratio:16/9}
.hero__title{font-size:clamp(30px,4vw,46px);line-height:1.08;letter-spacing:-.02em}
.hero__title a{color:var(--text)}
.hero__lead{font-size:18px;color:var(--muted);max-width:62ch}
.latest{flex:1 1 340px;min-width:0;display:flex;flex-direction:column}
.latest__head{display:flex;justify-content:space-between;align-items:baseline;padding-bottom:12px;border-bottom:2px solid var(--text)}
.latest__head h2{font-size:20px}
.latest__item{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid var(--border);color:var(--text)}
.latest__item:hover{text-decoration:none}
.latest__item:hover .latest__title{color:var(--accent)}
.latest__time{flex:0 0 56px;font:500 13px var(--f-mono);color:var(--muted);padding-top:3px}
.latest__cat{font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--accent)}
.latest__title{display:block;font-weight:600;font-size:16px;line-height:1.35}

.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px}
.card{display:flex;flex-direction:column;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);overflow:hidden;color:var(--text)}
.card:hover{text-decoration:none;border-color:var(--accent)}
.card[hidden]{display:none}
.card .thumb,.card .placeholder{aspect-ratio:16/9;border-radius:0}
.card__body{padding:20px;display:flex;flex-direction:column;gap:10px}
.card__title{font:700 21px/1.25 var(--f-display);letter-spacing:-.01em}
.card__desc{color:var(--muted);font-size:15px}

.path{padding:40px;border-radius:20px;background:var(--accent-soft)}
.path h2{font-size:32px}
.path__intro{margin:6px 0 28px;color:var(--muted);max-width:60ch}
.path__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px}
.path__step{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:8px;color:var(--text);height:100%}
.path__step:hover{text-decoration:none;border-color:var(--accent)}
.path__num{font:500 13px var(--f-mono);color:var(--accent)}
.path__title{font-weight:700;font-size:17px;line-height:1.3}
@media (max-width:600px){.path{padding:24px}}

.trio{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:24px}
@media (max-width:380px){.trio{grid-template-columns:1fr}}
.gloss{margin:16px 0 0}
.gloss>div{padding:12px 0;border-top:1px solid var(--border)}
.gloss dt{font-weight:700}
.gloss dt a{color:var(--text)}
.gloss dd{margin:2px 0 0;font-size:14px;color:var(--muted)}
.tools{margin-top:16px;display:flex;flex-direction:column;gap:10px}
.tool{display:flex;align-items:center;gap:14px;padding:12px;border-radius:12px;background:var(--surface-2);color:var(--text)}
.tool:hover{text-decoration:none;outline:1px solid var(--accent)}
.tool__ini{flex:0 0 40px;height:40px;border-radius:10px;background:var(--surface);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px;overflow:hidden}
.tool__ini img{width:100%;height:100%;object-fit:cover}
.tool__txt{flex:1;display:flex;flex-direction:column;min-width:0}
.tool__name{font-weight:600}
.tool__use{font-size:13px;color:var(--muted)}
.tool__price{font-size:12px;font-weight:600;color:var(--muted);border:1px solid var(--border);border-radius:6px;padding:2px 8px;white-space:nowrap}

/* blok promptu / kodu */
.skot-code{margin:20px 0 0}
.skot-code__head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 16px;border-radius:12px 12px 0 0;background:var(--code-head);color:var(--code-muted);font:500 13px var(--f-mono)}
.skot-code__head a{color:var(--code-muted)}
.skot-code__copy{min-height:32px;padding:0 12px;border-radius:8px;border:1px solid var(--code-border);background:transparent;color:var(--code-text);font:600 13px var(--f-body);cursor:pointer}
.skot-code__copy:hover{border-color:var(--code-text)}
.skot-code pre,.entry pre,.prompt-day pre{margin:0;padding:18px;border-radius:0 0 12px 12px;background:var(--code);color:var(--code-text);white-space:pre-wrap;word-break:break-word;font:400 14px/1.7 var(--f-mono)}
.prompt-day pre{border-radius:12px;flex:1}
.prompt-day{display:flex;flex-direction:column}
.prompt-day .btn{margin-top:14px}

/* =========================================================================
   WPIS / PORADNIK
   ========================================================================= */
.crumbs{font-size:14px;color:var(--muted)}
.post-head{margin-top:20px;max-width:820px}
.post-head h1{margin-top:14px;font-size:clamp(32px,4vw,48px);line-height:1.08;letter-spacing:-.02em}
.post-head .lead{margin-top:16px;font-size:19px;color:var(--muted)}
.post-cover{margin-top:28px;border-radius:var(--radius);overflow:hidden;max-width:1000px}
.post-layout{margin-top:40px;display:flex;flex-wrap:wrap;gap:48px;align-items:flex-start}
.post-aside{flex:1 1 220px;max-width:260px;font-size:14px}
.post-aside__label{font-weight:700;text-transform:uppercase;letter-spacing:.06em;font-size:12px;color:var(--muted)}
.toc{margin:12px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px}
.toc a{display:block;padding:8px 12px;border-radius:8px;color:var(--text)}
.toc a:hover,.toc a.is-active{background:var(--accent-soft);text-decoration:none;font-weight:600;color:var(--text)}
.progress{margin-top:24px;padding:16px;border-radius:12px;background:var(--surface);border:1px solid var(--border)}
.progress__bar{margin-top:10px;height:8px;border-radius:4px;background:var(--surface-2)}
.progress__bar span{display:block;height:8px;border-radius:4px;background:var(--accent)}
.post-body{flex:999 1 560px;min-width:0;max-width:760px}
.post-body--wide{max-width:820px}
@media (max-width:860px){.post-aside{max-width:none;flex-basis:100%}}
.learn{padding:20px 24px;border-radius:14px;background:var(--surface);border:1px solid var(--border);margin-bottom:32px}
.learn ul{margin:8px 0 0;padding-left:20px;color:var(--text-2)}

.entry{font-size:17px;line-height:1.7;color:var(--text)}
.entry>*+*{margin-top:1.1em}
.entry h2{font-size:28px;margin-top:1.8em;scroll-margin-top:24px}
.entry h3{font-size:22px;margin-top:1.6em}
.entry ul,.entry ol{padding-left:1.4em}
.entry li+li{margin-top:.3em}
.entry blockquote{margin-left:0;padding:16px 20px;border-radius:12px;background:var(--surface-2);font-size:18px}
.entry code{font-family:var(--f-mono);font-size:.9em;background:var(--surface-2);padding:2px 6px;border-radius:6px}
.entry pre code{background:none;padding:0;font-size:inherit}
.entry pre{border-radius:12px;position:relative}
.entry .pre-wrap{position:relative}
.entry .pre-wrap .skot-code__copy{position:absolute;top:10px;right:10px;background:var(--code-head)}
.entry img,.entry figure{border-radius:12px}
.entry figure{margin-left:0;margin-right:0}
.entry figcaption{font-size:14px;color:var(--muted);margin-top:8px}
.entry table{border-collapse:collapse;width:100%;display:block;overflow-x:auto}
.entry th,.entry td{border:1px solid var(--border);padding:8px 12px;text-align:left}
.entry a{text-decoration:underline;text-underline-offset:2px}
.entry .skot-code figcaption{margin:0}
.entry .skot-code__head a{text-decoration:none}
.skot-note{margin-top:20px;padding:16px 18px;border-radius:12px;background:var(--accent-soft);display:flex;gap:12px}
.skot-note__icon{flex:0 0 20px;margin-top:3px;color:var(--accent)}

.lesson-nav{margin-top:48px;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.lesson-nav a{display:flex;flex-direction:column;gap:4px;padding:18px 20px;border-radius:14px;border:1px solid var(--border);background:var(--surface);color:var(--text)}
.lesson-nav a:hover{text-decoration:none;border-color:var(--accent)}
.lesson-nav .next{background:var(--accent);border-color:var(--accent);color:var(--on-accent);text-align:right}
.lesson-nav .next:hover{background:var(--accent-hover)}
.lesson-nav small{font-size:13px;opacity:.85}
.post-tags{margin-top:40px;padding-top:24px;border-top:1px solid var(--border);display:flex;flex-wrap:wrap;gap:8px;align-items:center}

/* =========================================================================
   ARCHIWA / SŁOWNIK / NARZĘDZIA / PROMPTY
   ========================================================================= */
.archive-head{max-width:820px}
.archive-head h1{font-size:clamp(32px,4vw,44px);letter-spacing:-.02em}
.archive-head .lead{margin-top:10px;font-size:18px;color:var(--muted)}
.archive-bar{margin:28px 0 24px;display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center}
.news-list{display:flex;flex-direction:column}
.news-row{display:flex;gap:24px;padding:24px 0;border-bottom:1px solid var(--border);color:var(--text)}
.news-row:hover{text-decoration:none}
.news-row:hover h2{color:var(--accent)}
.news-row .thumb,.news-row .placeholder{flex:0 0 240px;border-radius:12px;aspect-ratio:16/9}
.news-row h2{font-size:22px;margin:6px 0}
@media (max-width:640px){.news-row{flex-direction:column}.news-row .thumb,.news-row .placeholder{flex-basis:auto}}
.az{display:flex;flex-wrap:wrap;gap:6px;margin:24px 0}
.az a,.az span{min-width:40px;height:40px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;font-weight:600;border:1px solid var(--border);background:var(--surface);color:var(--text)}
.az span{opacity:.4}
.az a:hover{border-color:var(--accent);text-decoration:none}
.az-group{margin-top:32px}
.az-group h2{font-size:28px;color:var(--accent);padding-bottom:8px;border-bottom:2px solid var(--border)}
.tool-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.tool-card{display:flex;flex-direction:column;gap:12px;padding:20px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--text)}
.tool-card:hover{text-decoration:none;border-color:var(--accent)}
.tool-card__top{display:flex;gap:14px;align-items:center}
.tool-card .tool__ini{flex-basis:48px;height:48px}
.tool-facts{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;margin:20px 0;padding:20px;border-radius:14px;background:var(--surface);border:1px solid var(--border)}
.tool-facts dt{color:var(--muted)}
.tool-facts dd{margin:0;font-weight:600}
.prompt-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:24px}
@media (max-width:400px){.prompt-list{grid-template-columns:1fr}}
.prompt-card{display:flex;flex-direction:column;gap:10px}
.prompt-card h2{font-size:20px}
.prompt-card h2 a{color:var(--text)}
.prompt-card .skot-code{margin-top:4px}
.prompt-card pre{max-height:220px;overflow:auto}

.pagination{margin-top:40px;display:flex;flex-wrap:wrap;gap:8px}
.pagination .page-numbers{min-width:44px;height:44px;padding:0 12px;border-radius:10px;border:1px solid var(--border);display:inline-flex;align-items:center;justify-content:center;color:var(--text);background:var(--surface)}
.pagination .current{background:var(--text);color:var(--bg);border-color:var(--text)}
.empty{padding:40px;border-radius:var(--radius);border:1px dashed var(--border);color:var(--muted);text-align:center}

/* =========================================================================
   STOPKA
   ========================================================================= */
.site-footer{margin-top:96px;border-top:1px solid var(--border);background:var(--surface)}
.site-footer__row{padding-top:40px;padding-bottom:40px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:24px;font-size:14px;color:var(--muted)}
.site-footer__brand{font:700 18px var(--f-display);color:var(--text)}
.site-footer ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 24px}
.site-footer a{color:var(--muted)}
.site-footer a:hover{color:var(--accent)}

/* WordPress */
.alignwide{max-width:1000px}
.alignfull{max-width:none}
.wp-block-image figcaption,.wp-caption-text{font-size:14px;color:var(--muted)}
.sticky,.bypostauthor,.gallery-caption{}
