/* ==========================================================================
   TOONEXY DOCS CSS — Kompletni stilovi prema originalnom dizajnu
   ========================================================================== */

.toonexyDocs {
  width: min(100%, 980px);
  position: relative;
  margin: 30px auto 20px;
  padding: clamp(26px, 5vw, 52px);
  overflow: hidden;
  border: 5px solid #171717;
  background: radial-gradient(rgba(23, 23, 23, 0.12) 1px, transparent 1px), #fffdf5;
  background-size: 8px 8px;
  box-shadow: 10px 10px 0 #171717, 20px 20px 0 #e5322d;
}

.toonexyDocs::before,
.toonexyDocs::after {
  position: absolute;
  z-index: 0;
  width: 130px;
  height: 130px;
  border: 5px solid #171717;
  content: "";
  opacity: 0.95;
}

.toonexyDocs::before {
  top: -72px;
  left: -62px;
  background: #ffd52e;
  transform: rotate(19deg);
}

.toonexyDocs::after {
  right: -62px;
  bottom: -72px;
  background: #3d8ee8;
  transform: rotate(19deg);
}

.toonexyDocs > * {
  position: relative;
  z-index: 1;
}

.docsHero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 0 auto 26px;
}

.docsLogoLink {
  display: inline-block;
  border-radius: 28%;
  line-height: 0;
}

.docsLogoLink:focus-visible {
  outline: 3px solid #3d8ee8;
  outline-offset: 5px;
}

.docsLogo {
  display: block;
  width: 112px;
  height: 112px;
  border: 4px solid #171717;
  border-radius: 28%;
  object-fit: cover;
  box-shadow: 5px 5px 0 #171717;
  transform: rotate(-4deg);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.docsLogoLink:hover .docsLogo {
  transform: translate(3px, 3px) rotate(-4deg);
  box-shadow: 2px 2px 0 #171717;
}

.docsHeroText {
  max-width: 540px;
}

.docsBurst {
  display: inline-block;
  margin-bottom: 15px;
  padding: 7px 13px;
  border: 3px solid #171717;
  background: #ffd52e;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  transform: rotate(-4deg);
}

.docsKicker {
  margin: 0 0 13px;
  color: #e5322d;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
}

#docsTitle {
  margin: 0;
  color: #171717;
  font-size: clamp(32px, 6vw, 64px);
  font-style: italic;
  font-weight: 950;
  letter-spacing: -2px;
  line-height: 1;
  text-shadow: 3px 3px 0 #ffd52e, 6px 6px 0 #e5322d;
  text-transform: uppercase;
}

.docsIntro {
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

/* Kartice (Connect, Chat, Share) */
.docsCards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 780px;
  margin: 0 auto 32px;
}

.docsCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: auto;
  margin: 0;
  padding: 18px;
  border: 3px solid #171717;
  border-radius: 0;
  box-shadow: 4px 4px 0 #171717;
  color: #171717;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.docsCardYellow { background: #ffd52e; }
.docsCardBlue   { background: #6eb3ff; }
.docsCardRed    { background: #ff8c88; }

.docsCard:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #171717;
}

.docsCard .cardIcon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 12px;
  border: 2px solid #171717;
  border-radius: 50%;
  background: #ffffff;
  font-size: 16px;
  font-weight: 900;
}

.docsCard .cardTitle {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.docsCard .cardText {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

/* Informacioni tekst i sekcije ispod kartica */
.docsInfo {
  max-width: 780px;
  margin: 0 auto;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.docsInfo h2 {
  margin: 28px 0 10px;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: #171717;
}

.docsInfo p {
  margin: 0 0 12px;
}

.docsInfo ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.docsInfo li {
  margin-bottom: 6px;
}

.docsInfo a {
  color: #e5322d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Sekcija licence na dnu */
.docsLicense {
  max-width: 780px;
  margin: 24px auto 0;
  padding: 14px 16px;
  border: 3px solid #171717;
  background: #ffffff;
  box-shadow: 3px 3px 0 #171717;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.docsCaption {
  margin: 27px 0 0;
  color: #555555;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-align: center;
}

.docsBackLink {
  display: block;
  width: fit-content;
  margin: 22px auto 0;
  color: #171717;
  font-size: 14px;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-align: center;
}

.docsBackLink:hover {
  color: #e5322d;
}

.docsBackLink:focus-visible {
  outline: 3px solid #3d8ee8;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .toonexyDocs {
    margin-top: 18px;
    padding: 20px 12px;
  }
  .docsHero {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .docsHeroText {
    max-width: 100%;
  }
  #docsTitle {
    letter-spacing: -1px;
  }
  .docsCards {
    grid-template-columns: 1fr;
  }
}