/* =============================================
   VODIČ KROZ LICENCE — style.css
   Web Dizajn Masterclass
   ============================================= */

/* ── VARIJABLE ── */
:root {
  --bg: #f0f4f0;
  --ink: #0d1f0d;
  --green: #1a5c2a;
  --green-mid: #2d8c44;
  --green-light: #d4edda;
  --green-pale: #eaf5ec;
  --accent: #e8f542;
  --accent-dark: #c4d010;
  --muted: #5a7060;
  --border: #c8dac8;
  --card: #ffffff;
  --card2: #f7faf7;
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── HERO ── */
.hero {
  background: var(--ink);
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 245, 66, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 245, 66, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 3rem 2rem;
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s ease forwards;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  color: #f0f4f0;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.35s ease forwards;
}

.hero h1 .outline {
  -webkit-text-stroke: 2px var(--accent);
  color: transparent;
}

.hero-desc {
  font-size: 0.95rem;
  color: #6a8a6a;
  line-height: 1.75;
  max-width: 440px;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s ease forwards;
}

.hero-bottom {
  border-top: 1px solid #1e3a1e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.8s ease forwards;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-stat strong {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat span {
  font-size: 0.7rem;
  color: #4a6a4a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4a6a4a;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #2a4a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #4a6a4a;
  animation: bounceY 2s 1.5s ease-in-out infinite;
}

@keyframes bounceY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(4px); }
}

/* ── NAVIGACIJA ── */
nav {
  background: var(--ink);
  border-bottom: 1px solid #1e3a1e;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a6a4a;
  text-decoration: none;
  padding: 0.9rem 1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── MAIN ── */
main {
  max-width: 880px;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SEKCIJA ── */
.section {
  margin-bottom: 5.5rem;
}

.sec-head {
  margin-bottom: 2rem;
}

.sec-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-mid);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.sec-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--green-mid);
}

.sec-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.75rem;
  max-width: 640px;
}

/* ── LISTA S BROJEVIMA ── */
.mlist {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.mitem {
  background: var(--card);
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  transition: background 0.2s, padding-left 0.3s;
  cursor: default;
}

.mitem:hover {
  background: var(--green-pale);
  padding-left: 2.25rem;
}

.mitem-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-light);
  line-height: 1;
  transition: color 0.3s;
}

.mitem:hover .mitem-num {
  color: var(--green);
}

.mitem-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 0.3rem;
}

.mitem-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.mitem-body {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── KONCEPTI KARTICE ── */
.big3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.bigcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform 0.3s ease, border-color 0.3s;
}

.bigcard:hover {
  transform: translateY(-8px);
  border-color: var(--green-mid);
}

.bigcard-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.bigcard:hover .bigcard-accent {
  transform: scaleX(1);
}

.bigcard-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 1.1rem;
  transition: background 0.3s;
}

.bigcard:hover .bigcard-icon {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

.bigcard-tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.65rem;
  border: 1px solid;
}

.tg-r { color: #7a2020; background: #fdeaea; border-color: #f0b8b8; }
.tg-g { color: #1a4a20; background: #e8f5ea; border-color: #a8d8b0; }
.tg-y { color: #5a4800; background: #faf8e0; border-color: #e0d480; }

.bigcard h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.bigcard p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── TABLICA ── */
.tbl-outer {
  background: var(--ink);
  border-radius: 16px;
  padding: 1px;
  overflow: hidden;
}

.tbl-inner {
  border-radius: 15px;
  overflow: hidden;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
  min-width: 500px;
}

thead tr {
  background: #1a3a1a;
}

thead th {
  padding: 0.9rem 1.2rem;
  text-align: left;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

tbody tr {
  background: var(--card);
  border-bottom: 1px solid #f0ece6;
  transition: background 0.2s;
}

tbody tr:last-child {
  border: none;
}

tbody tr:nth-child(even) {
  background: var(--card2);
}

tbody tr:hover {
  background: var(--green-pale);
}

tbody td {
  padding: 0.85rem 1.2rem;
  color: var(--muted);
  vertical-align: middle;
}

tbody td:first-child {
  font-weight: 500;
  color: var(--ink);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid;
  white-space: nowrap;
}

.py { color: #1a4a20; background: #e8f5ea; border-color: #a8d8b0; }
.pn { color: #7a2020; background: #fdeaea; border-color: #f0b8b8; }
.pw { color: #5a4800; background: #faf8e0; border-color: #e0d480; }
.pm { color: #5a504a; background: #f5f0e8; border-color: #ddd4c4; }

/* ── SOFTVER KARTICE ── */
.softver-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.scard {
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  cursor: default;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

.scard:hover {
  transform: translateY(-6px);
}

.sc-dark  { background: var(--ink);   border: 1px solid #1e3a1e; }
.sc-mid   { background: var(--green); border: 1px solid var(--green); }
.sc-light { background: var(--card);  border: 1px solid var(--border); }

.scard-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  line-height: 1;
}

.sc-dark  .scard-num { color: var(--accent); }
.sc-mid   .scard-num { color: #d4f0d8; }
.sc-light .scard-num { color: var(--green); }

.scard-warn {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.sc-dark  .scard-warn { background: #e8f542; color: var(--ink); }
.sc-mid   .scard-warn { background: #ffffff22; color: #d4f0d8; border: 1px solid #ffffff30; }
.sc-light .scard-warn { background: var(--green-pale); color: var(--green); border: 1px solid var(--green-light); }

.scard h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.sc-dark  h3 { color: #e0f0e0; }
.sc-mid   h3 { color: #fff; }
.sc-light h3 { color: var(--ink); }

.scard p {
  font-size: 0.82rem;
  line-height: 1.65;
}

.sc-dark  p { color: #5a8a5a; }
.sc-mid   p { color: #a8d8b0; }
.sc-light p { color: var(--muted); }

/* ── WARNING BOX ── */
.wbox {
  margin-top: 1.25rem;
  background: var(--accent);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.84rem;
  color: var(--ink);
  line-height: 1.6;
  transition: background 0.25s;
}

.wbox:hover {
  background: var(--accent-dark);
}

.wdot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── TASL KARTICE ── */
.tasl-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 1rem;
}

.tcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.4rem;
  cursor: default;
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.tcard::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.tcard:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 40px rgba(26, 92, 42, 0.12);
  border-color: var(--green-mid);
}

.tcard:hover::after {
  transform: scaleX(1);
}

.tcard-letter {
  font-family: 'Syne', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: var(--green-light);
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.tcard:hover .tcard-letter {
  color: var(--green);
}

.tcard-name {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.tcard-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── CITAT ── */
.qblock {
  background: var(--ink);
  border-radius: 20px;
  padding: 3.5rem 2.5rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.qblock::before {
  content: '"';
  font-family: 'Syne', sans-serif;
  font-size: 16rem;
  font-weight: 800;
  color: #1a3a1a;
  position: absolute;
  top: -2rem;
  right: 1rem;
  line-height: 1;
  transition: color 0.5s;
}

.qblock:hover::before {
  color: #1e4a1e;
}

blockquote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: #d0e8d0;
  line-height: 1.55;
  max-width: 560px;
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}

blockquote em {
  color: var(--accent);
  font-style: normal;
}

.qsource {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #3a6a3a;
  position: relative;
  z-index: 1;
}

.qsource::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* ── CHECKLIST ── */
.clist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.citem {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: default;
  transition: transform 0.3s, border-color 0.3s, background 0.25s;
}

.citem:hover {
  transform: translateY(-5px);
  border-color: var(--green-mid);
  background: var(--green-pale);
}

.cnum {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.3s;
}

.citem:hover .cnum {
  background: var(--green);
}

.ctitle {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.cbody {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #3a5a3a;
}

footer strong {
  color: var(--accent);
}

/* ── ANIMACIJE ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONZIVNOST ── */
@media (max-width: 768px) {
  .hero-content {
    padding: 4rem 1.5rem 1.5rem;
  }

  .hero-bottom {
    padding: 1rem 1.5rem;
  }

  nav {
    padding: 0 0.5rem;
  }

  nav a {
    font-size: 0.65rem;
    padding: 0.8rem 0.6rem;
  }

  .qblock {
    padding: 2.5rem 1.75rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 3rem;
  }

  .sec-title {
    font-size: 1.6rem;
  }

  .tasl-row {
    grid-template-columns: 1fr 1fr;
  }

  .qblock {
    padding: 2rem 1.25rem;
  }

  .qblock::before {
    font-size: 10rem;
  }
}
