/* Dopune za WordPress uz kompajlirani app.css. */

/* Admin traka (samo za prijavljene) ne sme da pomeri karticu van ekrana. */
@media (min-width: 1024px) {
    html:has(body.admin-bar) .ip-page-wrap { height: calc(100dvh - 32px); }
}

/* ---------- Pozadina: svetlosne mrlje i blag sjaj oko kartice ---------- */
.ip-cyber-bg { background: radial-gradient(55% 60% at 88% 4%, rgb(0 212 255 / .34), transparent 70%), radial-gradient(55% 65% at 4% 96%, rgb(98 70 255 / .34), transparent 70%), radial-gradient(35% 40% at 94% 94%, rgb(0 230 190 / .16), transparent 70%), radial-gradient(40% 45% at 6% 8%, rgb(40 90 255 / .16), transparent 70%), linear-gradient(160deg, #0a1226, #070914 50%, #0d0a20); }
.ip-card-shell { box-shadow: 0 40px 90px -30px rgb(0 0 0 / .85), 0 0 0 1px rgb(255 255 255 / .08), 0 0 90px -18px rgb(0 212 255 / .28); }

/* ---------- Stranica usluge ---------- */
.rich-content h2[id] { scroll-margin-top: 1rem; }
.ip-service-body { margin-top: 2rem; }
.ip-service-body > h2:first-child { margin-top: 0; }
.ip-service-body ul:not([class]) { list-style: none; padding-left: 0; }
.ip-service-body ul:not([class]) > li { position: relative; padding-left: 1.6rem; }
.ip-service-body ul:not([class]) > li::before { content: "✓"; position: absolute; left: 0; color: #00d4ff; font-weight: 700; }
.ip-service-body table { min-width: 0; table-layout: auto; width: 100%; }
.ip-service-body table th, .ip-service-body table td { padding: .6rem .7rem; vertical-align: top; }
.ip-service-body .ip-more { margin-bottom: .625rem; }
/* Blog tabele na užim ekranima staju u širinu, umesto da pomeraju ceo odeljak. */
@media (max-width: 1023px) {
    .ip-blog-article-content table { min-width: 0; table-layout: auto; font-size: .6875rem; }
    .ip-blog-article-content table th, .ip-blog-article-content table td { padding: .45rem .4rem; vertical-align: top; overflow-wrap: normal; word-break: normal; }
}
.ip-service-body .ip-more summary::after { content: "+"; font-size: 1.25rem; line-height: 1; color: #00d4ff; }
.ip-service-body .ip-more[open] summary::after { content: "–"; }
.ip-service-body .ip-more p { margin: 0; }

/* ---------- Profil: fotografija, uloga i ikonice ---------- */
.ip-profile-body .ip-profile-avatar-wrap { border-radius: 50%; box-shadow: 0 0 42px -8px rgb(0 212 255 / .5); }
.ip-profile-body .ip-profile-avatar-wrap::before { inset: -5px; width: auto; height: auto; background: conic-gradient(from 215deg, #00d4ff, #386eff 35%, rgb(0 212 255 / .18) 68%, #00d4ff); border-radius: 50%; }
.ip-profile-body .ip-profile-avatar { border-color: var(--color-ip-panel); box-shadow: none; }
.ip-profile-body .ip-profile-name { font-weight: 700; letter-spacing: -.015em; }
.ip-profile-body .ip-typed-roles { display: inline-block; margin-top: .5rem; padding: .2rem .875rem; font-size: .8125rem; font-weight: 600; line-height: 1.5; background: rgb(0 212 255 / .1); border: 1px solid rgb(0 212 255 / .28); border-radius: 999px; }

.ip-profile-social .ip-profile-social-link { --brand: #00d4ff; width: 2.875rem; height: 2.875rem; color: var(--brand); background: color-mix(in srgb, var(--brand) 11%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent); border-radius: .875rem; box-shadow: none; transition: translate .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.ip-profile-social .ip-profile-social-link--instagram { --brand: #ff6b9d; }
.ip-profile-social .ip-profile-social-link--viber { --brand: #9d8bff; }
.ip-profile-social .ip-profile-social-link--whatsapp { --brand: #25d366; }
.ip-profile-social .ip-profile-social-link--mail { --brand: #ffbe55; }
.ip-profile-social .ip-profile-social-link:hover, .ip-profile-social .ip-profile-social-link:focus-visible { translate: 0 -3px; color: #0d1117; background: var(--brand); border-color: var(--brand); box-shadow: 0 12px 22px -12px var(--brand); }
.ip-profile-social .ip-profile-social-link .ip-profile-social-icon { width: 1.3125rem; height: 1.3125rem; color: inherit; }
@media (prefers-reduced-motion: reduce) {
    .ip-profile-social .ip-profile-social-link { transition: none; }
}

/* ---------- CTA kutija (ista na svim stranicama) ---------- */
.ip-cta { position: relative; isolation: isolate; overflow: hidden; margin-top: 2.5rem; padding: 2rem 1.5rem 1.5rem; text-align: center; background: linear-gradient(135deg, rgb(255 255 255 / .095), rgb(255 255 255 / .025)); border-radius: 1.25rem; box-shadow: 0 24px 48px -32px rgb(0 0 0 / .8); }
.ip-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(55% 75% at 100% 0%, rgb(0 212 255 / .24), transparent 70%), radial-gradient(50% 70% at 0% 100%, rgb(56 110 255 / .22), transparent 70%); }
.ip-cta::after { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none; background: linear-gradient(135deg, rgb(255 255 255 / .38), rgb(255 255 255 / .09) 30%, rgb(255 255 255 / .06) 68%, rgb(0 212 255 / .38)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.ip-cta .ip-cta-title { margin: 0; font-size: 1.375rem; font-weight: 700; line-height: 1.3; color: #fff; }
.ip-cta .ip-cta-text { max-width: 34rem; margin: .5rem auto 0; font-size: .9375rem; line-height: 1.65; color: #c4c4ce; }
.ip-cta .ip-cta-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .625rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.ip-cta .ip-cta-options li { display: flex; margin: 0; padding: 0; }
.ip-cta .ip-cta-option { display: flex; align-items: center; justify-content: center; gap: .625rem; width: 100%; padding: .625rem .75rem; text-align: left; color: #fff; text-decoration: none; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .12); border-radius: .875rem; transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.ip-cta .ip-cta-option:hover, .ip-cta .ip-cta-option:focus-visible { transform: translateY(-3px); background: rgb(255 255 255 / .1); border-color: rgb(0 212 255 / .55); }
.ip-cta .ip-cta-icon { display: grid; flex: none; place-items: center; width: 2.25rem; height: 2.25rem; background: rgb(0 212 255 / .14); border: 1px solid rgb(0 212 255 / .32); border-radius: 50%; }
.ip-cta .ip-cta-icon svg { width: 1.125rem; height: 1.125rem; color: #7de8ff; }
.ip-cta .ip-cta-label { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ip-cta .ip-cta-label strong { font-size: .875rem; font-weight: 700; color: inherit; }
.ip-cta .ip-cta-label small { font-size: .75rem; opacity: .72; }
/* Poziv je glavna radnja. */
.ip-cta .ip-cta-option.is-call, .ip-cta .ip-cta-option.is-call:hover, .ip-cta .ip-cta-option.is-call:focus-visible { color: #06141b; background: #00d4ff; border-color: #00d4ff; }
.ip-cta .ip-cta-option.is-call { box-shadow: 0 14px 28px -16px rgb(0 212 255 / .85); }
.ip-cta .is-call .ip-cta-icon { background: #06141b; border-color: #06141b; }
.ip-cta .is-call .ip-cta-icon svg { color: #00d4ff; }
.ip-cta .is-call .ip-cta-label small { font-weight: 600; opacity: .85; }
.ip-cta .is-whatsapp .ip-cta-icon { background: #25d366; border-color: #25d366; }
.ip-cta .is-whatsapp .ip-cta-icon svg { color: #fff; }
.rich-content .ip-cta { margin-block: 2rem; }
/* Uži računar: kolona sadržaja je tesna, pa ikonica ide iznad teksta. */
@media (min-width: 1024px) and (max-width: 1159px) {
    .ip-cta .ip-cta-option { flex-direction: column; gap: .375rem; padding-inline: .5rem; text-align: center; }
}
@media (max-width: 639px) {
    .ip-cta { padding: 1.5rem 1rem 1rem; }
    .ip-cta .ip-cta-title { font-size: 1.1875rem; }
    .ip-cta .ip-cta-options { grid-template-columns: 1fr; gap: .5rem; margin-top: 1rem; }
    .ip-cta .ip-cta-option { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .ip-cta .ip-cta-option { transition: none; }
}
/* Prigušen tekst paginacije sa dovoljnim kontrastom. */
.ip-page-muted { color: #a9a9b4; }
@media (max-width: 639px) {
    .ip-service-body table { font-size: .6875rem; }
    .ip-service-body table th, .ip-service-body table td { padding: .4rem .35rem; }
}

/* Telefon i tablet, početna: naslovna slika se vidi cela, a ostatak profila je zbijen. */
@media (max-width: 1023px) {
    .ip-profile-col:not(.ip-profile-col--inner) .ip-profile-slide { height: min(62vw, 300px); }
    .ip-profile-col:not(.ip-profile-col--inner) .ip-profile-slide-curve { height: 36px; }
    .ip-profile-col:not(.ip-profile-col--inner) .ip-profile-body { padding-bottom: .75rem; }
    .ip-profile-col:not(.ip-profile-col--inner) .ip-profile-avatar-wrap { width: 88px; height: 88px; margin-top: -44px; margin-bottom: .5rem; }
    .ip-profile-col:not(.ip-profile-col--inner) .ip-profile-name { font-size: 1.5rem; line-height: 1.75rem; }
    .ip-profile-col:not(.ip-profile-col--inner) .ip-typed-roles { margin-top: 0; }
    .ip-profile-col:not(.ip-profile-col--inner) .ip-profile-social { margin-top: .625rem; }
    .ip-profile-col:not(.ip-profile-col--inner) .ip-profile-social-link { width: 2.5rem; height: 2.5rem; }
    .ip-profile-col:not(.ip-profile-col--inner) .ip-profile-lnk { min-height: 2.75rem; padding-block: .5rem; }
}

/* Veliki ekrani: profil 400px (umesto 480px), širi sadržaj. */
@media (min-width: 1280px) {
    .ip-profile-col { width: 400px; max-width: 400px; grid-template-rows: minmax(220px, 46%) 1fr auto; }
    .ip-content-col { max-width: 796px; }
}
/* U profilu od 340px natpisi donjih dugmadi ostaju u jednom redu. */
@media (min-width: 1024px) {
    .ip-profile-lnk { padding-inline: .875rem; font-size: .75rem; white-space: nowrap; }
}

/* Poređenje "pre i posle" ([ip_pre_posle]): "posle" se otkriva desno od linije. */
.rich-content .ip-compare, .ip-compare { --pos: 50%; margin: 1.25rem 0; }
.ip-compare-frame { position: relative; overflow: hidden; background: #fff; border: 1px solid rgb(255 255 255 / .16); border-radius: .75rem; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ip-compare-frame:focus-within { outline: 2px solid #00d4ff; outline-offset: 2px; }
.rich-content .ip-compare-frame img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border-radius: 0; object-fit: cover; pointer-events: none; }
.rich-content .ip-compare-frame img.ip-compare-after { clip-path: inset(0 0 0 var(--pos)); }
.ip-compare-label { position: absolute; bottom: .625rem; padding: .25rem .7rem; font-size: .75rem; font-weight: 700; color: #fff; background: rgb(8 12 20 / .82); border-radius: 999px; pointer-events: none; }
.ip-compare-label.is-before { left: .625rem; }
.ip-compare-label.is-after { right: .625rem; color: #06141b; background: #00d4ff; }
.ip-compare-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #00d4ff; box-shadow: 0 0 0 1px rgb(8 12 20 / .25); pointer-events: none; }
.ip-compare-line > span { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; font-size: 1.125rem; font-weight: 700; line-height: 1; white-space: nowrap; color: #06141b; background: #00d4ff; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 6px 18px -6px rgb(0 0 0 / .6); transform: translate(-50%, -50%); }
.ip-compare-range { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }

/* Slike iz editora i uvoza unutar sadržaja. */
.rich-content figure { margin: 0 0 1.5rem; }
.rich-content figure img { margin: 0; }
.rich-content .wp-caption-text, .rich-content figcaption { font-size: .8125rem; color: #9f9fa9; margin-top: .5rem; }
.rich-content .aligncenter { margin-inline: auto; }
