/*
Theme Name: Smartklik Lab
Theme URI: https://info.smartklik.si
Author: Smartklik
Description: Hub Smartklik aplikacij (ena stran na produkt) + AuraSEO blog. CPT Aplikacije pod /aplikacije/.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: smartklik-lab
*/

/* =========================================================
   Design tokens — product lab (AuraSEO-aligned)
   ========================================================= */
:root {
  --bg: #09090b;
  --bg-elevated: #0b1320;
  --surface: rgba(17, 24, 39, 0.82);
  --surface-solid: #111827;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --indigo: #6366f1;
  --indigo-soft: rgba(99, 102, 241, 0.16);
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --max: 1120px;
  --nav-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(99, 102, 241, 0.18), transparent 55%),
    radial-gradient(700px 380px at 90% 0%, rgba(16, 185, 129, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg-elevated), var(--bg) 42%);
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #c7d2fe;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 600;
}

p { margin: 0 0 1em; color: var(--text-muted); }

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(9, 9, 11, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--indigo), var(--emerald));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 8px 24px rgba(99,102,241,0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links .current-menu-item > a {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--indigo), #4f46e5);
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-strong);
  color: var(--text) !important;
}

.nav-cta { display: none; }

@media (min-width: 760px) {
  .nav-cta { display: inline-flex; }
}

.nav-toggle {
  display: inline-flex;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
}

@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .nav-links { gap: 0.2rem; }
}

.nav-links.is-open {
  display: flex;
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: calc(var(--nav-h) + 0.5rem);
  flex-direction: column;
  padding: 0.75rem;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 759px) {
  .nav-links { display: none; }
}

main { flex: 1; }

/* Hero */
.hero {
  padding: 4.5rem 0 3rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: #6ee7b7;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 14ch;
  margin-bottom: 0.7rem;
}

.hero-lead {
  font-size: 1.08rem;
  max-width: 42rem;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: 2.5rem 0 3.5rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
}

.section-head p {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
}

/* Cards / grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 700px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.45);
}

.card-media {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(99,102,241,0.35), rgba(16,185,129,0.18)),
    var(--surface-solid);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.05rem 1.1rem 1.2rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-indigo { background: var(--indigo-soft); color: #a5b4fc; }
.badge-emerald { background: var(--emerald-soft); color: #6ee7b7; }
.badge-muted { background: rgba(255,255,255,0.06); color: var(--text-muted); }

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.card p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* Process strip */
.process {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 800px) {
  .process { grid-template-columns: repeat(3, 1fr); }
}

.process-item {
  padding: 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}

.process-item strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.35rem;
}

/* Content pages / posts */
.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.content-narrow {
  width: min(100% - 2rem, 720px);
  margin: 0 auto 3.5rem;
}

.prose {
  font-size: 1.05rem;
}

.prose h2 { margin-top: 1.8rem; font-size: 1.45rem; }
.prose h3 { margin-top: 1.4rem; font-size: 1.2rem; }
.prose a { color: #a5b4fc; text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { color: var(--text-muted); padding-left: 1.2rem; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255,255,255,0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  font-size: 0.9em;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.92rem;
}
.prose th, .prose td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.7rem;
  text-align: left;
}
.prose th { background: rgba(255,255,255,0.04); color: var(--text); }

.project-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.4rem;
  margin-top: auto;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.footer-row a { color: var(--text-muted); }
.footer-row a:hover { color: var(--text); }

/* Forms */
.contact-form {
  display: grid;
  gap: 0.85rem;
  max-width: 520px;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(99,102,241,0.55);
  outline-offset: 1px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.empty-state {
  padding: 2rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-align: center;
}

.card-domain {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.8rem;
  color: #a5b4fc;
  margin: 0 0 0.45rem !important;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.95rem;
}

.btn-sm {
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
}

.card-media-label {
  padding: 1rem;
  text-align: center;
}
