/* Modern casino guide — oljarna-sredisce.si / casinozapravidenar.si */

:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #1a2332;
  --muted: #5b677a;
  --line: #e2e8f0;
  --brand: #0f1b2d;
  --brand-2: #162a45;
  --accent: #d4a017;
  --accent-2: #f0c14d;
  --accent-soft: #fff8e6;
  --success: #0f9d58;
  --danger: #c62828;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(15, 27, 45, 0.08);
  --container: 1180px;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.6rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #0b57d0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  padding-left: 1.4em;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(15, 27, 45, 0.18);
}

.header .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 7.2rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__img {
  width: auto;
  height: 4.8rem;
  max-width: 16rem;
  object-fit: contain;
}

.header__nav {
  margin-left: auto;
}

.header__nav ul {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  color: #f5f7fb;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.header__nav a:hover,
.header__nav a:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(240, 193, 77, 0.45);
  text-decoration: none;
}

.search-toggle,
.gift,
.header__menu-toggle {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.search-toggle {
  display: none;
}

.search-toggle svg {
  width: 2rem;
  height: 2rem;
  fill: currentColor;
}

.gift {
  display: none;
}

.header__menu-toggle {
  display: none;
  width: 4rem;
  height: 4rem;
  position: relative;
}

.header__menu-toggle span {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  height: 0.2rem;
  background: #fff;
  border-radius: 1rem;
}

.header__menu-toggle span:first-child {
  top: 1.4rem;
}

.header__menu-toggle span:last-child {
  bottom: 1.4rem;
}

.header__menu-toggle--active span:first-child {
  top: 1.9rem;
  transform: rotate(45deg);
}

.header__menu-toggle--active span:last-child {
  bottom: 1.9rem;
  transform: rotate(-45deg);
}

/* Layout */
.wrapper {
  padding: 0;
}

.intro-home {
  padding: 5.6rem 0 4.8rem;
  background:
    radial-gradient(circle at top right, rgba(240, 193, 77, 0.22), transparent 34%),
    linear-gradient(135deg, #0f1b2d 0%, #1d3557 55%, #274060 100%);
  color: #fff;
  text-align: center;
}

.intro-home__title {
  margin: 0 auto 1.6rem;
  max-width: 18ch;
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.intro-home__text {
  margin: 0 auto;
  max-width: 62rem;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.86);
}

.content {
  padding: 4rem 0 2rem;
}

.content p,
.cols__main p {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 1.7rem;
}

.heading {
  margin: 3.2rem 0 1.6rem;
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1.2;
  color: var(--brand);
  letter-spacing: -0.02em;
}

/* Casino rating widget */
.top-container {
  width: min(100% - 3.2rem, var(--container));
  margin: 2.4rem auto 4rem;
}

.top-title {
  margin: 0 0 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid #c45c3e;
  text-align: center;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: #7a3b1e;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.top-title span {
  color: #c45c3e;
}

#casino-widget-iframe {
  min-height: 320px;
  background: transparent;
}

/* Content blocks */
.pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  margin: 2rem 0;
}

.pros-section,
.cons-section,
.game-card,
.responsible-box,
.warning-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.section-title {
  margin: 0 0 1.2rem;
  font-size: 1.8rem;
  font-weight: 800;
}

.item,
.tip-item,
.warning-item {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.item:last-child,
.tip-item:last-child,
.warning-item:last-child {
  border-bottom: 0;
}

.item-title {
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  margin: 2rem 0;
}

.game-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

/* Author box */
.author-box {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.6rem;
  align-items: center;
  margin: 3.2rem 0;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.author-box:hover {
  text-decoration: none;
  border-color: rgba(212, 160, 23, 0.45);
}

.author-box img {
  width: 12rem;
  height: 12rem;
  object-fit: cover;
  border-radius: 1.2rem;
}

.author-box__name {
  margin: 0 0 0.4rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
}

.author-box__role {
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.author-box__bio {
  margin: 0;
  color: var(--muted);
}

.pros-section {
  border-color: rgba(15, 157, 88, 0.25);
  background: linear-gradient(180deg, #f3fcf7 0%, #ffffff 100%);
}

.cons-section {
  border-color: rgba(198, 40, 40, 0.2);
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
}

.error-page {
  text-align: center;
  padding: 4rem 1.6rem 5rem;
}

.error-page .intro-home__title {
  color: var(--brand);
  max-width: none;
}

.error-page .top-card__btn,
.error-page .btn-home {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #28a745 0%, #1e8a38 100%);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.28);
}

.redirection-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f1b2d 0%, #1d3557 100%);
  color: #fff;
}

.redirection-page .wrapper {
  text-align: center;
  padding: 2rem;
}

.redirection-page h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
}

/* Inner pages */
.breadcrumbs ul {
  display: flex;
  gap: 0.8rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 1.4rem;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.8rem;
  color: #94a3b8;
}

.author-intro,
.author-focus,
.author-method,
.author-faq {
  width: min(100% - 3.2rem, 100rem);
  margin-inline: auto;
  padding: 2rem 0;
}

.author-focus ul,
.author-faq ul {
  padding-left: 1.4em;
}

.author-card {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.4rem 0;
}

.author-photo img {
  width: 16rem;
  height: 16rem;
  object-fit: cover;
  border-radius: 1.6rem;
}

.back-btn button {
  border: 0;
  border-radius: 999px;
  padding: 1rem 1.6rem;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.faq {
  margin-top: 2rem;
}

.faq__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq__label {
  display: block;
  padding: 1.4rem 1.6rem;
  font-weight: 700;
  cursor: pointer;
}

.faq__body {
  display: none;
  margin: 0;
  padding: 0 1.6rem 1.4rem;
  color: var(--muted);
}

.faq__input:checked + .faq__label + .faq__body {
  display: block;
}

.page-content {
  padding: 3rem 0 4rem;
}

.page-content .container {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem;
}

/* Footer */
.footer {
  margin-top: 4rem;
  background: linear-gradient(180deg, #101a2b 0%, #0b1220 100%);
  color: #dbe4f0;
  padding: 4rem 0 2.4rem;
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.footer__nav a {
  color: #fff;
  font-weight: 600;
}

.footer__subtitle {
  margin: 0 0 1.6rem;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-2);
}

.footer__info-imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.footer__info-imgs img {
  height: 4.4rem;
  width: auto;
  background: #fff;
  border-radius: 0.8rem;
  padding: 0.4rem 0.8rem;
}

.footer__desc {
  color: #b7c3d6;
  font-size: 1.5rem;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 1.4rem;
}

.footer__bottom a {
  color: #fff;
}

/* Responsive */
@media (max-width: 960px) {
  .header__menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--brand-2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.2rem 1.6rem 1.6rem;
  }

  .header__nav--active {
    display: block;
  }

  .header__nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .header__nav a {
    justify-content: center;
  }

  .pros-cons,
  .games-grid,
  .author-box,
  .author-card {
    grid-template-columns: 1fr;
  }

  .author-box img,
  .author-photo img {
    width: 100%;
    height: auto;
    max-height: 24rem;
  }

  .page-content .container {
    padding: 2rem;
  }
}
