/* Page-scoped styles for /tippek/ */

.tippek-page {
  display: block;
}

/* Hero */
.tippek-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: var(--space-8) var(--container-padding);
  background-color: var(--color-petrol-900);
  overflow: hidden;
}

.tippek-hero__storm {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.tippek-hero__storm span {
  position: absolute;
  top: -10%;
  display: block;
  width: 4px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  animation: tippek-snowfall linear infinite;
}

.tippek-hero__storm span:nth-child(1) { left: 5%; animation-duration: 7s; animation-delay: 0s; }
.tippek-hero__storm span:nth-child(2) { left: 12%; animation-duration: 9s; animation-delay: 1.2s; }
.tippek-hero__storm span:nth-child(3) { left: 20%; animation-duration: 6s; animation-delay: 0.4s; }
.tippek-hero__storm span:nth-child(4) { left: 28%; animation-duration: 10s; animation-delay: 2.1s; }
.tippek-hero__storm span:nth-child(5) { left: 35%; animation-duration: 8s; animation-delay: 0.9s; }
.tippek-hero__storm span:nth-child(6) { left: 43%; animation-duration: 6.5s; animation-delay: 1.7s; }
.tippek-hero__storm span:nth-child(7) { left: 51%; animation-duration: 9.5s; animation-delay: 0.2s; }
.tippek-hero__storm span:nth-child(8) { left: 59%; animation-duration: 7.5s; animation-delay: 2.6s; }
.tippek-hero__storm span:nth-child(9) { left: 67%; animation-duration: 8.5s; animation-delay: 1.1s; }
.tippek-hero__storm span:nth-child(10) { left: 75%; animation-duration: 6.8s; animation-delay: 0.6s; }
.tippek-hero__storm span:nth-child(11) { left: 83%; animation-duration: 9.2s; animation-delay: 2.3s; }
.tippek-hero__storm span:nth-child(12) { left: 91%; animation-duration: 7.2s; animation-delay: 0.8s; }
.tippek-hero__storm span:nth-child(13) { left: 8%; animation-duration: 8.8s; animation-delay: 3.1s; }
.tippek-hero__storm span:nth-child(14) { left: 16%; animation-duration: 6.3s; animation-delay: 1.9s; }
.tippek-hero__storm span:nth-child(15) { left: 24%; animation-duration: 9.8s; animation-delay: 0.5s; }
.tippek-hero__storm span:nth-child(16) { left: 32%; animation-duration: 7.7s; animation-delay: 2.8s; }
.tippek-hero__storm span:nth-child(17) { left: 40%; animation-duration: 6.1s; animation-delay: 1.4s; }
.tippek-hero__storm span:nth-child(18) { left: 48%; animation-duration: 9.1s; animation-delay: 0.3s; }
.tippek-hero__storm span:nth-child(19) { left: 56%; animation-duration: 7.9s; animation-delay: 2.0s; }
.tippek-hero__storm span:nth-child(20) { left: 64%; animation-duration: 8.2s; animation-delay: 1.6s; }

@keyframes tippek-snowfall {
  0% {
    transform: translateY(-10vh) translateX(0);
    opacity: 0.8;
  }
  100% {
    transform: translateY(110vh) translateX(20px);
    opacity: 0.15;
  }
}

.tippek-hero__panel {
  position: relative;
  z-index: 1;
  width: min(800px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
  padding: var(--space-7) var(--space-5);
  background-color: rgba(232, 244, 250, 0.08);
  border: var(--border-frosted);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.tippek-hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 6vw + 1rem, 3.5rem);
  line-height: 1.1;
  color: var(--color-white);
  text-wrap: balance;
}

.tippek-hero__subtitle {
  margin: 0;
  max-width: 620px;
  font-size: clamp(1rem, 2vw + 0.5rem, 1.25rem);
  line-height: 1.5;
  color: var(--color-ice-100);
  text-wrap: balance;
}

.tippek-hero__cta {
  margin: 0;
  width: auto;
}

/* Intro */
.tippek-intro {
  padding-block: var(--space-8);
  background-color: var(--color-petrol-800);
}

.tippek-intro__card {
  width: min(800px, 100%);
  margin-inline: auto;
  padding: var(--space-6);
  background-color: rgba(232, 244, 250, 0.08);
  border: var(--border-frosted);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.tippek-intro__title {
  margin: 0 0 var(--space-4);
  text-align: left;
}

.tippek-intro__text {
  margin: 0;
  max-width: 70ch;
  text-align: left;
  color: var(--color-ice-100);
}

/* Category sections */
.tippek-category {
  padding-block: var(--space-8);
}

.tippek-category--resources {
  background-color: var(--color-petrol-900);
}

.tippek-category--city {
  background-color: var(--color-petrol-800);
}

.tippek-category--heroes {
  background-color: var(--color-petrol-900);
}

.tippek-category--alliances {
  background-color: var(--color-petrol-800);
}

.tippek-category__title {
  margin: 0 0 var(--space-6);
  text-align: left;
}

.tippek-category__grid {
  display: grid;
  gap: var(--space-5);
  min-width: 0;
}

.tippek-category__grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tippek-category__grid--mixed {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tippek-tip-card {
  min-width: 0;
  padding: var(--space-5);
  background-color: rgba(232, 244, 250, 0.08);
  border: var(--border-frosted);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.tippek-tip-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-raised);
}

.tippek-tip-card--half {
  grid-column: span 1;
}

.tippek-tip-card--full {
  grid-column: 1 / -1;
}

.tippek-tip-card__title {
  margin: 0 0 var(--space-3);
  text-align: left;
}

.tippek-tip-card__text {
  margin: 0;
  max-width: 70ch;
  text-align: left;
  color: var(--color-ice-100);
}

/* Featured */
.tippek-featured {
  padding-block: var(--space-8);
  background-color: var(--color-petrol-900);
}

.tippek-featured__layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-6);
  align-items: center;
  min-width: 0;
}

.tippek-featured__content {
  min-width: 0;
}

.tippek-featured__title {
  margin: 0 0 var(--space-4);
  text-align: left;
}

.tippek-featured__text {
  margin: 0;
  max-width: 70ch;
  text-align: left;
  color: var(--color-ice-100);
}

.tippek-featured__media {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--color-ice-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--color-petrol-800);
}

.tippek-featured__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tippek-featured__caption {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: var(--color-ice-200);
  text-align: left;
}

/* Summary */
.tippek-summary {
  padding-block: var(--space-8);
  background-color: var(--color-petrol-900);
}

.tippek-summary__panel {
  width: min(600px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
  padding: var(--space-7) var(--space-5);
  background-color: rgba(232, 244, 250, 0.08);
  border: var(--border-frosted);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.tippek-summary__title {
  margin: 0;
  text-align: center;
}

.tippek-summary__text {
  margin: 0;
  max-width: 70ch;
  text-align: center;
  color: var(--color-ice-100);
}

.tippek-summary__cta {
  margin: 0;
  width: auto;
}

/* Tablet */
@media (max-width: 900px) {
  .tippek-category__grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tippek-category__grid--three .tippek-tip-card:last-child {
    grid-column: 1 / -1;
  }

  .tippek-featured__layout {
    grid-template-columns: 1fr;
  }

  .tippek-featured__media {
    order: -1;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .tippek-hero {
    min-height: 440px;
    padding-block: var(--space-6);
  }

  .tippek-hero__panel {
    padding: var(--space-5) var(--space-4);
  }

  .tippek-hero__title {
    font-size: clamp(1.75rem, 8vw + 0.25rem, 2.25rem);
  }

  .tippek-hero__subtitle {
    font-size: 1rem;
  }

  .tippek-hero__cta,
  .tippek-summary__cta {
    width: 100%;
  }

  .tippek-intro,
  .tippek-category,
  .tippek-featured,
  .tippek-summary {
    padding-block: var(--space-6);
  }

  .tippek-intro__card,
  .tippek-summary__panel {
    padding: var(--space-4);
  }

  .tippek-category__grid--three,
  .tippek-category__grid--mixed {
    grid-template-columns: 1fr;
  }

  .tippek-category__grid--three .tippek-tip-card:last-child,
  .tippek-tip-card--half,
  .tippek-tip-card--full {
    grid-column: auto;
  }

  .tippek-tip-card {
    padding: var(--space-4);
  }

  .tippek-featured__layout {
    gap: var(--space-4);
  }

  .tippek-featured__media {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tippek-hero__storm span {
    animation: none;
  }

  .tippek-tip-card {
    transition: none;
  }

  .tippek-tip-card:hover {
    transform: none;
    box-shadow: var(--shadow-card);
  }
}
