/* =========================
   Osnovna podešavanja
   ========================= */

:root {
  color-scheme: dark;

  --red: #f51d1d;
  --bottom: #b12525;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--white);
  background: #000000;
  font-size: 18px;
  line-height: 1.5;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 7px;
}

.container {
  width: min(1120px, calc(100% - 112px));
  margin-inline: auto;
}

/* =========================
   Pozadina i dijamanti
   ========================= */

.page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;

  background: linear-gradient(
    180deg,
    #000000 0%,
    #000000 25%,
    #260909 48%,
    #711818 74%,
    var(--bottom) 100%
  );
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.1;

  /* Svaki dijamant je iste veličine: 12 × 18 px. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='460' height='520' viewBox='0 0 460 520'%3E%3Cpath d='M60 76l6 9-6 9-6-9z' fill='%23b12525'/%3E%3Cpath d='M350 203l6 9-6 9-6-9z' fill='%23e9b957'/%3E%3Cpath d='M160 400l6 9-6 9-6-9z' fill='%23759fa7'/%3E%3Cpath d='M420 480l6 9-6 9-6-9z' fill='%23e7b0b0'/%3E%3C/svg%3E");

  background-repeat: repeat;
  background-size: 460px 520px;
}

/* =========================
   Pristupačnost
   ========================= */

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 12px;
  color: #000000;
  background: var(--white);
}

.skip-link:focus {
  top: 16px;
}

/* =========================
   Header i logo
   ========================= */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 24px;
}

.brand {
  display: block;
  flex-shrink: 0;
  width: 122px;
}

.brand img {
  display: block;
  width: 100%;
  height: 105px;
  object-fit: contain;
}

/* =========================
   Navigacija
   ========================= */

.nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 6vw, 78px);
}

.nav a {
  display: inline-block;
  padding-block: 8px;
  font-weight: 700;
  font-size: 23px;

  transition:
    transform 180ms ease,
    color 180ms ease;
}

.nav a:focus-visible {
  color: var(--red);
  transform: scale(1.12);
}

/* =========================
   Uvodna sekcija
   ========================= */

.hero {
  padding-block: 65px 87px;
}

h1 {
  max-width: 790px;
  font-size: clamp(32px, 3.8vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.hero p,
.section-intro {
  margin-top: 20px;
  font-size: clamp(20px, 2.3vw, 27px);
  line-height: 1.4;
}

h2 {
  font-size: clamp(32px, 3.5vw, 42px);
  line-height: 1.15;
}

.section-intro {
  margin-top: 12px;
}

/* =========================
   Lista igara
   ========================= */

.game-list {
  display: grid;
  gap: 52px;
  margin-top: 48px;
}

.game {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 52px;
  align-items: stretch;
}

.game-image {
  width: 100%;
  aspect-ratio: 7 / 10;
  border-radius: 22px;
  background: #d9d9d9;
  overflow: hidden;
}

.game-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-block: 0 10px;
}

h3 {
  margin-bottom: 22px;
  font-size: 34px;
  line-height: 1.2;
}

.game-content p {
  margin-bottom: 22px;
  font-size: 21px;
  line-height: 1.35;
}

.game-content p:last-of-type {
  margin-bottom: 30px;
}

/* Dugmad ostaju status „uskoro“, bez akcije na klik. */
.coming-soon {
  display: inline-block;
  margin-top: auto;
  border: 3px solid #c91414;
  border-radius: 22px;
  padding: 11px 16px;

  font: 700 20px / 1.3 Arial, sans-serif;
  background: var(--red);
  color: var(--white);
  opacity: 1;
  cursor: default;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

/* =========================
   O nama
   ========================= */

.about {
  padding-block: 60px 125px;
}

.about p {
  max-width: 750px;
  margin-top: 24px;
  font-size: clamp(21px, 2.3vw, 27px);
  line-height: 1.3;
}

/* =========================
   Footer
   ========================= */

.footer {
  border-top: 1px solid rgb(255 255 255 / 18%);
  padding-block: 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-nav {
  grid-column: 2;
  display: flex;
  gap: 46px;
  font-weight: 700;
}

.footer-nav a {
  display: inline-block;

  transition:
    transform 180ms ease,
    color 180ms ease;
}

.footer-nav a:focus-visible {
  transform: scale(1.12);
}

.instagram {
  justify-self: end;
  display: inline-flex;
  padding: 8px;
  color: var(--white);
  opacity: 1;
  transition: transform 180ms ease;
}

.instagram svg {
  width: 40px;
  height: 40px;
}

.instagram:focus-visible {
  transform: scale(1.12);
}

/* =========================
   Hover efekti
   ========================= */

@media (hover: hover) {
  .nav a:hover {
    color: var(--red);
    transform: scale(1.12);
  }

  .footer-nav a:hover {
    transform: scale(1.12);
  }

  .coming-soon:hover {
    transform: scale(1.07);
    box-shadow: 0 7px 22px rgb(0 0 0 / 25%);
  }

  .instagram:hover {
    transform: scale(1.12);
  }
}

/* =========================
   Veliki ekrani
   ========================= */

@media (min-width: 1500px) {
  .hero {
    padding-top: 80px;
  }
}

/* =========================
   Mobilni uređaji
   ========================= */

@media (max-width: 760px) {
  .container {
    width: calc(100% - 40px);
  }

  .header {
    padding-block: 20px;
    gap: 20px;
  }

  .brand {
    width: 94px;
  }

  .brand img {
    height: 88px;
  }

  .nav {
    gap: 20px;
  }

  .nav a {
    font-size: 16px;
  }

  .hero {
    padding-block: 48px 65px;
  }

  h1 {
    font-size: 35px;
  }

  .game-list {
    gap: 58px;
    margin-top: 34px;
  }

  .game {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .game-image {
    width: min(100%, 340px);
    justify-self: center;
  }

  h3 {
    font-size: 30px;
    margin-bottom: 18px;
  }

  .game-content p {
    font-size: 19px;
  }

  .coming-soon {
    font-size: 18px;
  }

  .about {
    padding-block: 68px 75px;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .instagram {
    align-self: center;
  }
}

/* =========================
   Vrlo mali ekrani
   ========================= */

@media (max-width: 380px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  h1 {
    font-size: 31px;
  }
}

/* =========================
   Smanjeno kretanje
   ========================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav a,
  .footer-nav a,
  .coming-soon,
  .instagram {
    transition: none;
  }
}