/* alat-stil.css — zajednicki stil za nove alate
   akademskosavjetovanje.eu
   Koriste ga: generator-naslovnice.html, rokovnik-rada.html (i njihove EN/SL verzije).
   Preuzeto iz postojecih stranica alata da izgled bude istovjetan. */

:root { --navy:#4a6880; --gold:#c69d5c; --gold-bright:#d4af6f; --cream:#f8f7f5; --stone-xpale:#dde8f0; --ink:#1a1a1a; --text-mid:#3a3a3a; --text-soft:#777; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', sans-serif; color: var(--ink); background: var(--cream); line-height: 1.75; font-size: 16px; }
html { scroll-behavior: smooth; }

.legal-header { background: var(--navy); padding: 0 60px; height: 72px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 24px rgba(0,0,0,0.22); }
.legal-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.legal-brand .seal { width: 36px; height: 36px; border: 1.5px solid rgba(255,255,255,0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); }
.legal-brand .seal svg { width: 20px; height: 20px; fill: currentColor; }
.legal-brand .name { font-family: 'Playfair Display', serif; font-size: 16px; }
.legal-back { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 13px; letter-spacing: 0.05em; display: flex; align-items: center; gap: 8px; transition: color 0.2s; }
.legal-back:hover { color: var(--gold-bright); }
.logo-plocica { background:#fff; border-radius:9px; padding:6px 10px; display:flex; align-items:center; box-shadow:0 2px 8px rgba(0,0,0,0.18); }
.logo-plocica img { height:30px; width:auto; display:block; }

.article-hero { background: var(--stone-xpale); padding: 64px 60px 56px; border-bottom: 1px solid rgba(74,104,128,0.1); }
.article-hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.article-meta { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 18px; }
.article-meta .dot { width: 3px; height: 3px; background: rgba(198,157,92,0.6); border-radius: 50%; }
.article-meta .date { color: rgba(74,104,128,0.7); letter-spacing: 0.08em; }
.article-rule { width: 44px; height: 2px; background: var(--gold); margin: 0 auto 22px; }
.article-hero h1 { font-family: 'Playfair Display', serif; font-size: 44px; font-weight: 700; color: var(--navy); line-height: 1.15; margin-bottom: 18px; }
.article-hero h1 em { color: var(--gold-bright); font-style: italic; }
.article-hero .lede { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-style: italic; color: var(--navy); opacity: 0.88; max-width: 620px; margin: 0 auto; line-height: 1.5; }

main { max-width: 720px; margin: 0 auto; padding: 64px 32px 80px; }
main.sire { max-width: 980px; }

article p { margin-bottom: 18px; color: var(--text-mid); }
article h2 { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: var(--navy); line-height: 1.25; margin: 44px 0 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(198,157,92,0.3); }
article h2 em { color: var(--gold-bright); font-style: italic; }
article h3 { font-family: 'Playfair Display', serif; font-size: 21px; font-weight: 700; color: var(--navy); margin: 32px 0 12px; }
article ul, article ol { margin: 14px 0 22px 26px; }
article li { margin-bottom: 8px; color: var(--text-mid); }
article strong { color: var(--navy); font-weight: 500; }
article a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
article a:hover { color: #ae8a50; }

.callout { background: rgba(198,157,92,0.07); border-left: 3px solid var(--gold); padding: 18px 22px; margin: 28px 0; border-radius: 4px; font-size: 15px; line-height: 1.65; }
.callout strong { color: var(--navy); }
.callout .label { display: block; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 6px; }

[hidden] { display: none !important; }
.gc-okvir { background: #fff; border: 1px solid rgba(74,104,128,0.12); border-radius: 8px; padding: 30px; margin: 8px 0 28px; }
.gc-obrazac label { display: block; font-size: 13px; font-weight: 500; color: var(--navy); margin: 14px 0 5px; }
.gc-obrazac input, .gc-obrazac select, .gc-obrazac textarea { width: 100%; padding: 10px 12px; border: 1px solid rgba(74,104,128,0.25); border-radius: 4px; font-family: inherit; font-size: 15px; background: #fdfcfa; color: #2c3e50; }
.gc-obrazac input:focus, .gc-obrazac select:focus, .gc-obrazac textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,157,92,0.15); }
.gc-pomoc { font-size: 12.5px; color: var(--text-soft); margin-top: 4px; line-height: 1.5; }
.red-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.red-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
.gc-gumb-red { text-align: center; margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-cta { display: inline-block; padding: 13px 30px; background: var(--gold); color: #fff; text-decoration: none; border-radius: 4px; font-size: 12.5px; letter-spacing: 0.08em; font-weight: 500; text-transform: uppercase; box-shadow: 0 4px 12px rgba(198,157,92,0.28); transition: background 0.2s, transform 0.15s, box-shadow 0.2s; border: none; cursor: pointer; font-family: inherit; }
.btn-cta:hover { background: #ae8a50; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(198,157,92,0.42); }
.btn-tiho { background: transparent; border: 1px solid var(--navy); color: var(--navy); border-radius: 4px; padding: 12px 24px; font-family: inherit; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; cursor: pointer; transition: background 0.2s, color 0.2s; }
.btn-tiho:hover { background: var(--navy); color: #fff; }

/* --- naslovnica: pretpregled --- */
.nv-raspored { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.nv-pretpregled-okvir { position: sticky; top: 92px; }
.nv-oznaka { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 10px; }
.nv-list { background: #fff; border: 1px solid rgba(74,104,128,0.18); box-shadow: 0 6px 24px rgba(44,64,85,0.1); aspect-ratio: 1 / 1.4142; width: 100%; padding: 7.1% 7.1%; display: flex; flex-direction: column; overflow: hidden; }
.nv-list > div { white-space: pre-line; }
.nv-gore { text-align: center; }
.nv-sredina { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.nv-dolje { text-align: center; }
.nv-mentor { text-align: right; margin-top: 10px; }
.nv-naslov-rada { font-weight: 700; }

/* --- rokovnik --- */
.rk-popis { list-style: none; margin: 18px 0 0; padding: 0; }
.rk-popis li { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 14px 0; border-top: 1px dashed rgba(74,104,128,0.2); margin: 0; align-items: start; }
.rk-popis li:first-child { border-top: none; }
.rk-datum { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; color: var(--gold); letter-spacing: 0.02em; padding-top: 2px; }
.rk-faza { font-size: 15px; color: var(--navy); font-weight: 500; }
.rk-opis { font-size: 13.5px; color: var(--text-mid); line-height: 1.55; margin-top: 3px; }
.rk-trajanje { font-size: 12px; color: var(--text-soft); margin-top: 3px; }
.rk-proslo { opacity: 0.5; }
.rk-sazetak { background: rgba(74,104,128,0.06); border-radius: 6px; padding: 14px 18px; font-size: 14px; color: var(--navy); margin-bottom: 4px; }
.rk-upozorenje { background: #fbeceb; border-left: 3px solid #b5544b; color: #7a2f28; padding: 12px 16px; border-radius: 4px; font-size: 14px; margin-bottom: 18px; }

.gc-greska { background: #fbeceb; border-left: 3px solid #b5544b; color: #7a2f28; padding: 12px 16px; border-radius: 4px; font-size: 14px; }
.gc-napomena { font-size: 13px; color: var(--text-soft); }

.contact-box { background: #fff; border: 1px solid rgba(74,104,128,0.12); border-radius: 8px; padding: 32px; margin-top: 48px; text-align: center; scroll-margin-top: 90px; }
.contact-box .eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 8px; }
.contact-box h3 { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--navy); margin-bottom: 12px; border: none; padding: 0; }
.contact-box h3 em { color: var(--gold-bright); font-style: italic; }
.contact-box p { margin-bottom: 16px; color: var(--text-mid); }
.contact-box .btn-primary { display: inline-block; padding: 12px 28px; background: var(--gold); color: #fff; text-decoration: none; border-radius: 4px; font-size: 12.5px; letter-spacing: 0.08em; font-weight: 500; text-transform: uppercase; transition: background 0.2s, transform 0.15s, box-shadow 0.2s; box-shadow: 0 4px 12px rgba(198,157,92,0.28); }
.contact-box .btn-primary:hover { background: #ae8a50; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(198,157,92,0.42); }

footer { background: #2c4055; color: rgba(255,255,255,0.7); padding: 32px 60px; text-align: center; font-size: 12px; }
footer a { color: var(--gold); text-decoration: none; }
footer a:hover { color: var(--gold-bright); }
.footer-links { margin-bottom: 12px; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 860px) {
  .nv-raspored { grid-template-columns: 1fr; }
  .nv-pretpregled-okvir { position: static; }
}
@media (max-width: 768px) {
  .legal-header { padding: 0 20px; height: 60px; }
  .legal-brand .name { font-size: 14px; }
  .logo-plocica img { height: 24px; }
  .article-hero { padding: 48px 24px 40px; }
  .article-hero h1 { font-size: 30px; }
  .article-hero .lede { font-size: 17px; }
  main { padding: 40px 22px 60px; font-size: 15px; }
  article h2 { font-size: 22px; }
  article h3 { font-size: 18px; }
  .gc-okvir { padding: 20px 16px; }
  .red-2, .red-3 { grid-template-columns: 1fr; }
  .contact-box { padding: 26px 18px; }
  .footer-links { flex-direction: column; gap: 10px; }
  .rk-popis li { grid-template-columns: 1fr; gap: 2px; }
  footer { padding: 24px 20px; }
}

@media print {
  .legal-header, .article-hero, footer, .gc-obrazac, .gc-gumb-red, .contact-box, .ne-ispisuj { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  main { max-width: none; padding: 0; }
  .rk-popis li { break-inside: avoid; }
}
