/* =========================================================================
   Blog (/blog/ in /blog/<slug>/) v slogu Apple Newsroom, na skupnem sistemu
   produktna-stran.css (body.ws-page). Vsak članek ima barvni preliv po temi in
   svojo ikono, zato kartice niso enake kljub temu, da nimajo fotografij.
   ========================================================================= */

/* Prelivi in barve kategorij po temi članka */
.wb-theme-web { --wb-a: #6b9cff; --wb-b: #1a55d6; }
.wb-theme-seo { --wb-a: #5ee08f; --wb-b: #0f8f4c; }
.wb-theme-ai { --wb-a: #b98cff; --wb-b: #6a3df0; }
.wb-theme-auto { --wb-a: #5fd8e0; --wb-b: #0a7f99; }
.wb-theme-app { --wb-a: #ffb45c; --wb-b: #f0602a; }
.wb-theme-email { --wb-a: #ff8ab3; --wb-b: #d6336c; }
.wb-theme-voice { --wb-a: #ffb340; --wb-b: #ff375f; }
.wb-cat { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--ws-blue); }
.wb-cat-seo { color: #0f8f4c; }
.wb-cat-ai { color: #6a3df0; }
.wb-cat-auto { color: #0a7f99; }
.wb-cat-app { color: #d4521f; }
.wb-cat-email { color: #c42a5f; }
.wb-cat-voice { color: #d92f52; }

.wb-visual {
    position: relative; display: grid; place-items: center; overflow: hidden;
    background: radial-gradient(120% 120% at 15% 10%, var(--wb-a, #6b9cff), var(--wb-b, #1a55d6) 70%);
    color: #fff;
}
.wb-visual::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 80% 90%, rgba(255, 255, 255, 0.22), transparent 70%); }
.wb-visual i { position: relative; z-index: 1; font-size: clamp(2.5rem, 2rem + 2vw, 4rem); filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.18)); }

/* ------------------------------------------------------- Seznam člankov */
.wb-head { padding: clamp(120px, 15vh, 168px) 0 clamp(36px, 5vw, 56px); background: var(--ws-white); }
.wb-head h1 { max-width: 900px; font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.5rem); line-height: 1.04; letter-spacing: -0.04em; color: var(--ws-ink); }
.wb-head-lead { max-width: 640px; margin-top: 20px; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.4; color: var(--ws-muted); }
.wb-head-count { margin-top: 12px; font-size: 0.9375rem; color: var(--ws-muted); }
.wb-filter { display: flex; gap: 6px; width: fit-content; max-width: 100%; margin-top: 36px; padding: 4px; border-radius: 980px; background: var(--ws-mist); overflow-x: auto; scrollbar-width: none; }
.wb-filter::-webkit-scrollbar { display: none; }
.ws-page main .wb-filter a { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 980px; font-size: 0.9375rem; font-weight: 500; color: var(--ws-ink); text-decoration: none; transition: background-color 0.2s; }
.ws-page main .wb-filter a:hover { background: rgba(0, 0, 0, 0.05); text-decoration: none; }
.ws-page main .wb-filter a[aria-current="page"] { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }

.wb-list { padding: clamp(40px, 5vw, 64px) 0 clamp(96px, 12vw, 150px); background: var(--ws-mist); scroll-margin-top: 64px; }
.wb-feature, .wb-card { position: relative; overflow: hidden; border-radius: var(--ws-radius); background: var(--ws-white); transition: transform 0.4s var(--ws-ease), box-shadow 0.4s var(--ws-ease); }
.wb-feature:hover, .wb-card:hover { transform: scale(1.012); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.2); }
.wb-feature h3 a, .wb-card h3 a { color: var(--ws-ink) !important; text-decoration: none !important; }
.wb-feature h3 a::after, .wb-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.wb-feature :focus-visible, .wb-card :focus-visible { outline: 2px solid var(--ws-blue); outline-offset: -4px; }

.wb-feature { display: grid; grid-template-columns: 1.25fr 1fr; margin-bottom: 20px; }
.wb-feature .wb-visual { min-height: 380px; }
.wb-feature .wb-visual i { font-size: clamp(3.5rem, 2rem + 4vw, 6.5rem); }
.wb-feature-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 52px); }
.wb-feature h3 { margin-top: 10px; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; }
.wb-feature-text { margin-top: 14px; font-size: 1.0625rem; line-height: 1.5; color: var(--ws-muted); }
.wb-meta { margin-top: 18px; font-size: 0.875rem; color: var(--ws-muted); }

.wb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wb-card { display: flex; flex-direction: column; }
.wb-card .wb-visual { aspect-ratio: 16 / 10; }
.wb-card-copy { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 26px; }
.wb-card h3 { margin-top: 8px; font-size: 1.25rem; line-height: 1.22; letter-spacing: -0.02em; }
.wb-card .wb-meta { margin-top: auto; padding-top: 16px; }

.wb-empty { padding: 56px 32px; border-radius: var(--ws-radius); background: var(--ws-white); text-align: center; }
.wb-empty p { margin: 10px 0 24px; color: var(--ws-muted); }

/* Temen zaključni poziv (seznam in članek) */
.wb-cta { text-align: center; }
.wb-cta h2 { font-size: clamp(2.5rem, 1.4rem + 4.5vw, 5rem); line-height: 1; letter-spacing: -0.045em; color: #f5f5f7; }
.wb-cta p { max-width: 560px; margin: 18px auto 0; font-size: 1.1875rem; line-height: 1.45; color: var(--ws-muted-dark); }

/* -------------------------------------------------------------- Članek */
.wb-narrow { width: min(820px, 100% - 48px); margin-inline: auto; }
.wb-art-head { padding: clamp(112px, 14vh, 152px) 0 0; background: var(--ws-white); }
.wb-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 0.8125rem; color: var(--ws-muted); }
.ws-page main .wb-crumbs a { color: var(--ws-muted); }
.wb-crumbs > * + *::before { content: '›'; margin-right: 8px; color: #c7c7cc; }
.wb-art-head h1 { margin-top: 10px; font-size: clamp(2.25rem, 1.3rem + 3.4vw, 3.75rem); line-height: 1.06; letter-spacing: -0.035em; color: var(--ws-ink); }
.wb-lead { margin-top: 20px; font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem); line-height: 1.42; color: var(--ws-muted); }
.wb-byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 0.9375rem; }
.wb-avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ws-ink); color: #fff; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0; }
.ws-page main .wb-byline a { font-weight: 600; color: var(--ws-ink); }
.wb-byline-meta { display: block; font-size: 0.875rem; color: var(--ws-muted); }
.wb-art-visual { aspect-ratio: 21 / 9; margin-top: clamp(36px, 5vw, 56px); border-radius: var(--ws-radius); }
.wb-art-visual i { font-size: clamp(3.5rem, 2rem + 5vw, 7rem); }

.wb-art-body { display: grid; grid-template-columns: 220px minmax(0, 700px); justify-content: center; gap: clamp(40px, 6vw, 80px); width: min(1080px, 100% - 48px); margin: 0 auto; padding: clamp(48px, 6vw, 80px) 0 clamp(80px, 10vw, 120px); }
.wb-side { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 28px; }
.wb-side-title { margin: 0 0 10px; font-size: 0.8125rem; font-weight: 600; color: var(--ws-muted); }
.wb-toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--ws-line); }
.wb-toc li { margin: 0; }
.ws-page main .wb-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 0.875rem; line-height: 1.35; color: var(--ws-muted); }
.ws-page main .wb-toc a:hover { color: var(--ws-ink); border-left-color: var(--ws-ink); text-decoration: none; }
.wb-service { padding: 18px; border-radius: 18px; background: var(--ws-mist); }
.wb-service-name { margin: 0 0 8px; font-weight: 600; line-height: 1.3; }
.ws-page main .wb-service a { font-size: 0.9375rem; font-weight: 500; }
.wb-toc-mobile { display: none; }

/* Besedilo članka */
.wb-content { min-width: 0; font-size: 1.1875rem; line-height: 1.65; color: #333336; }
.wb-content > section { scroll-margin-top: 88px; }
.wb-content > * + * { margin-top: 1.1em; }
.wb-content p { margin: 0; }
.wb-content section > * + * { margin-top: 1em; }
.wb-content > p + p { margin-top: 1em; }
.wb-content .wb-intro { font-size: 1.3125rem; line-height: 1.55; color: var(--ws-ink); }
.wb-content h2 { margin: 2.2em 0 0.6em; font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); line-height: 1.15; letter-spacing: -0.028em; color: var(--ws-ink); }
.wb-content section:first-of-type h2 { margin-top: 1.6em; }
.ws-page main .wb-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wb-content strong { color: var(--ws-ink); font-weight: 600; }
.wb-content ul, .wb-content ol { margin: 1em 0 0 !important; padding-left: 1.3em !important; list-style: revert !important; }
.wb-content li { margin-top: 0.45em; padding-left: 0.2em; }
.wb-content li::marker { color: var(--ws-muted); }

.wb-table-wrap { margin: 1.6em 0 0; overflow-x: auto; border-radius: 18px; background: var(--ws-mist); }
.wb-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; }
.wb-table caption { padding: 16px 20px 4px; caption-side: top; text-align: left; font-size: 0.8125rem; font-weight: 600; color: var(--ws-muted); }
.wb-table th, .wb-table td { padding: 13px 20px; text-align: left; vertical-align: top; border-top: 1px solid rgba(0, 0, 0, 0.07); }
.wb-table thead th { border-top: 0; font-weight: 600; color: var(--ws-ink); }
.wb-table tbody th { font-weight: 500; color: var(--ws-ink); }
.wb-table td { color: #424245; }

.wb-figure { margin: 1.6em 0 0; }
.wb-figure img { display: block; width: 100%; height: auto; border-radius: 18px; background: var(--ws-mist); }
.wb-figure figcaption { margin-top: 10px; font-size: 0.875rem; line-height: 1.45; color: var(--ws-muted); }

.wb-checklist ul { list-style: none !important; padding-left: 0 !important; }
.wb-checklist li { position: relative; padding-left: 34px; }
.wb-checklist li::before { content: ''; position: absolute; left: 0; top: 0.28em; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #c7c7cc; }

.wb-takeaways { margin-top: 2.4em !important; padding: 28px 32px; border-radius: var(--ws-radius); background: var(--ws-mist); }
.wb-takeaways h2 { margin: 0 0 0.4em; font-size: 1.375rem; }
.wb-takeaways ul { list-style: none !important; padding-left: 0 !important; }
.wb-takeaways li { position: relative; padding-left: 30px; }
.wb-takeaways li::before { content: ''; position: absolute; left: 0; top: 0.32em; width: 18px; height: 18px; background: no-repeat center/18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232367F5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

.wb-faq details { border-bottom: 1px solid var(--ws-line); }
.wb-faq h2 + details { border-top: 1px solid var(--ws-line); }
.wb-faq summary { position: relative; padding: 20px 40px 20px 0; list-style: none; cursor: pointer; font-size: 1.125rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; color: var(--ws-ink); }
.wb-faq summary::-webkit-details-marker { display: none; }
.wb-faq summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--ws-ink), var(--ws-ink)) center/14px 1.5px no-repeat, linear-gradient(var(--ws-ink), var(--ws-ink)) center/1.5px 14px no-repeat; transition: transform 0.3s var(--ws-ease); }
.wb-faq details[open] summary::after { transform: rotate(45deg); }
.wb-faq details p { padding: 0 40px 22px 0; font-size: 1.0625rem; color: var(--ws-muted); }

/* Sorodni članki dobijo slog "Preberite tudi" iz produktna-stran.css; tu le svetlo ozadje */
body.wb-article .blog-related { background: var(--ws-mist); }
body.wb-article .blog-related .blog-card-v2 { background: var(--ws-white); }

/* -------------------------------------------------------------- Odzivno */
@media (max-width: 1100px) {
    .wb-art-body { grid-template-columns: minmax(0, 700px); }
    .wb-side { display: none; }
    .wb-toc-mobile { display: block; margin-bottom: 1.6em; border-radius: 18px; background: var(--ws-mist); }
    .wb-toc-mobile summary { padding: 16px 20px; cursor: pointer; font-size: 1rem; font-weight: 600; color: var(--ws-ink); }
    .wb-toc-mobile ol { margin: 0 !important; padding: 0 20px 18px 40px !important; font-size: 0.9375rem; line-height: 1.4; }
    .wb-toc-mobile li { margin-top: 0.5em; }
    .ws-page main .wb-toc-mobile a { text-decoration: none; }
}

@media (max-width: 900px) {
    .wb-grid { grid-template-columns: repeat(2, 1fr); }
    .wb-feature { grid-template-columns: 1fr; }
    .wb-feature .wb-visual { min-height: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
    .wb-head { padding-top: 112px; }
    .wb-filter { margin-top: 28px; }
    .wb-grid { grid-template-columns: 1fr; gap: 14px; }
    .wb-art-visual { aspect-ratio: 16 / 10; border-radius: 18px; }
    .wb-narrow { width: calc(100% - 32px); }
    .wb-art-body { width: calc(100% - 32px); }
    .wb-content { font-size: 1.0625rem; }
    .wb-content .wb-intro { font-size: 1.1875rem; }
    .wb-takeaways { padding: 22px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .wb-feature, .wb-card, .wb-feature:hover, .wb-card:hover { transition: none; transform: none; }
}
