/**
 * Layout Styles - Premium Scandinavian Minimalist
 */

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: 1400px;
}

/* ===== MAIN LAYOUT ===== */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

/* ===== GRID SYSTEM ===== */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--6 { grid-template-columns: repeat(6, 1fr); }

.grid--auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--auto-fit-sm {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* ===== FLEXBOX UTILITIES ===== */
.flex { display: flex; }
.flex--center { justify-content: center; align-items: center; }
.flex--between { justify-content: space-between; align-items: center; }
.flex--start { justify-content: flex-start; align-items: center; }
.flex--end { justify-content: flex-end; align-items: center; }
.flex--wrap { flex-wrap: wrap; }
.flex--col { flex-direction: column; }

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

/* ===== SECTION SPACING ===== */
.section {
  padding: var(--space-4xl) 0;
}

.section--sm {
  padding: var(--space-2xl) 0;
}

.section--lg {
  padding: calc(var(--space-4xl) * 1.5) 0;
}

.section--alt {
  background-color: var(--gray-50);
}

.section--dark {
  background-color: var(--gray-900);
  color: var(--white);
}

/* ===== SECTION HEADER ===== */
.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header--center {
  text-align: center;
}

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--gray-900);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--gray-900);
  margin-bottom: var(--space-md);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--gray-600);
  max-width: 600px;
}

.section-header--center .section-description {
  margin: 0 auto;
}

/* ===== PAGE HEADER ===== */
.page-header {
  position: relative;
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
  background: linear-gradient(135deg, var(--royal-blue) 0%, var(--royal-blue-light) 100%);
  color: var(--white);
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-header__content {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: var(--white);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

.page-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  max-width: 700px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-lg);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb__separator {
  color: rgba(255, 255, 255, 0.4);
}

/* ===== TWO-COLUMN LAYOUT ===== */
.layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-2xl);
}

.layout-sidebar--left {
  grid-template-columns: 320px 1fr;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid--4,
  .grid--5,
  .grid--6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .layout-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4,
  .grid--5,
  .grid--6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  .page-header {
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
  }

  .page-header h1 {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 480px) {
  .grid--2,
  .grid--3,
  .grid--4,
  .grid--5,
  .grid--6 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .section-title {
    font-size: var(--text-2xl);
  }
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--gray-900);
  color: var(--gray-400);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--white);
  font-weight: var(--font-bold);
  font-size: var(--text-xl);
  margin-bottom: var(--space-lg);
  text-decoration: none;
}

.footer__logo svg {
  color: var(--gold);
}

.footer__description {
  line-height: var(--leading-relaxed);
  font-size: var(--text-sm);
}

.footer__links {}

.footer__title {
  color: var(--white);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-lg);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__list a {
  font-size: var(--text-sm);
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__list a:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--gray-800);
}

.footer__copyright {
  font-size: var(--text-sm);
  margin: 0;
}

.footer__disclaimer {
  font-size: var(--text-sm);
  margin: 0;
}

.footer__disclaimer a {
  color: var(--gold);
  text-decoration: underline;
}

.footer__disclaimer a:hover {
  color: var(--gold-light);
}

.footer__badges {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.footer__badges svg {
  color: var(--gray-500);
}

@media (max-width: 992px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__logo {
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Responsive images */
img { max-width: 100%; height: auto; }

/* Mobile overflow prevention */
@media (max-width: 768px) {
  body, .site-wrapper, .site-main, main { overflow-x: hidden; max-width: 100%; }
  .container, .art-content, .article-content, .article-body, .prose, section { overflow-wrap: break-word; word-break: break-word; }
  .casino-features, .features { min-width: auto !important; }
  .feature, .bonus-text, .casino-cta, .kw-pill, .keyword-pill { white-space: normal !important; }
}
