/* Novinky page styles */

.novinky-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-base);
}

.novinky-hero__background {
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/featured-news-hero.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.novinky-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 11, 13, 0.85) 0%, rgba(10, 11, 13, 0.6) 50%, rgba(10, 11, 13, 0.3) 100%);
  z-index: 1;
}

.novinky-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding-mobile);
  padding-block: var(--space-3xl);
}

.novinky-hero__text {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
}

.novinky-hero__eyebrow {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.875rem;
  color: var(--accent-volt);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.novinky-hero__eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background-color: var(--accent-volt);
  transform: rotate(-15deg);
  transform-origin: left center;
}

.novinky-hero__headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
  max-width: 100%;
}

.novinky-hero__summary {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0;
}

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

.novinky-hero__date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.novinky-hero__tag {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--accent-volt);
  border: 1px solid var(--accent-volt);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--corner-radius-small);
}

.novinky-hero__cta {
  margin-top: var(--space-xs);
}

.novinky-section-heading {
  position: relative;
  margin-bottom: var(--space-2xl);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.novinky-section-heading--center {
  justify-content: center;
  text-align: center;
}

.novinky-section-heading__number {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.8;
  color: var(--accent-volt);
  opacity: 0.15;
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.novinky-section-heading__title {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
  padding-top: var(--space-sm);
}

.novinky-latest__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.novinky-card {
  background-color: var(--bg-steel);
  border: var(--border-default);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--corner-clip)), calc(100% - var(--corner-clip)) 100%, 0 100%);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.novinky-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-volt);
}

.novinky-card__content {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  flex: 1;
  min-width: 0;
}

.novinky-card__date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.novinky-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0;
  max-width: 300px;
}

.novinky-card__excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  max-width: 300px;
  flex: 1;
}

.novinky-card__link {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.875rem;
  color: var(--accent-volt);
  text-decoration: none;
  transition: color var(--transition-fast);
  margin-top: auto;
}

.novinky-card__link:hover {
  color: var(--accent-volt-dim);
}

.novinky-highlight__layout {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: var(--space-2xl);
  align-items: center;
}

.novinky-highlight__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
  min-width: 0;
}

.novinky-highlight__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin: 0;
}

.novinky-highlight__excerpt {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0;
}

.novinky-highlight__cta {
  margin-top: var(--space-xs);
}

.novinky-highlight__media {
  min-width: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--corner-clip)), calc(100% - var(--corner-clip)) 100%, 0 100%);
}

.novinky-highlight__image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-fast);
}

.novinky-highlight__media:hover .novinky-highlight__image {
  transform: scale(1.02);
}

.novinky-tournaments__panel {
  background-color: var(--bg-steel);
  border: var(--border-default);
  border-left: 2px solid var(--accent-volt);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--corner-clip)), calc(100% - var(--corner-clip)) 100%, 0 100%);
  padding: var(--space-xl);
  max-width: 800px;
}

.novinky-tournaments__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.novinky-tournament-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: var(--border-default);
  transition: background-color var(--transition-fast);
  min-width: 0;
}

.novinky-tournament-item:last-child {
  border-bottom: none;
}

.novinky-tournament-item:hover {
  background-color: var(--bg-steel-raised);
}

.novinky-tournament-item__time {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  min-width: 0;
}

.novinky-tournament-item__day {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.novinky-tournament-item__hour {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent-volt);
  line-height: 1;
}

.novinky-tournament-item__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
}

.novinky-tournament-item__name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0;
}

.novinky-tournament-item__desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  max-width: 600px;
}

.novinky-newsletter__content {
  max-width: 600px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.novinky-newsletter__description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0;
}

.novinky-newsletter__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: stretch;
}

.novinky-newsletter__form input {
  width: 100%;
  background-color: var(--bg-steel-raised);
  border: 1px solid var(--border-steel);
  border-radius: var(--corner-radius-small);
  color: var(--text-primary);
  padding: var(--space-sm) var(--space-md);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.novinky-newsletter__form input:focus {
  outline: none;
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 2px var(--accent-volt-soft);
}

.novinky-newsletter__form input:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
  border-color: var(--focus-ring);
}

.novinky-newsletter__submit {
  width: 100%;
}

.novinky-newsletter__message {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  min-height: 1.5em;
}

.novinky-newsletter__message--success {
  color: var(--accent-volt);
}

.novinky-newsletter__message--error {
  color: var(--danger);
}

.novinky-cta {
  position: relative;
  overflow: hidden;
}

.novinky-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-15deg);
  width: 2px;
  height: 100%;
  background-color: var(--accent-volt);
  opacity: 0.3;
  z-index: 0;
}

.novinky-cta__block {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.novinky-cta__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
}

.novinky-cta__text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0;
}

.novinky-cta__button {
  margin-top: var(--space-xs);
}

@media (min-width: 768px) {
  .novinky-hero__content {
    padding-inline: var(--container-padding-desktop);
  }

  .novinky-newsletter__form {
    flex-direction: row;
    align-items: center;
  }

  .novinky-newsletter__form input {
    flex: 1;
    min-width: 0;
  }

  .novinky-newsletter__submit {
    width: auto;
    flex-shrink: 0;
  }
}

@media (max-width: 1023px) {
  .novinky-latest__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .novinky-highlight__layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .novinky-highlight__media {
    order: 2;
  }

  .novinky-highlight__text {
    order: 1;
  }
}

@media (max-width: 767px) {
  .novinky-hero {
    min-height: 60vh;
  }

  .novinky-hero__content {
    padding-block: var(--space-2xl);
  }

  .novinky-hero__headline {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .novinky-latest__grid {
    grid-template-columns: 1fr;
  }

  .novinky-section-heading {
    margin-bottom: var(--space-xl);
  }

  .novinky-section-heading__number {
    font-size: clamp(3rem, 12vw, 5rem);
    top: -0.25rem;
    left: -0.25rem;
  }

  .novinky-tournaments__panel {
    padding: var(--space-lg);
  }

  .novinky-tournament-item {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .novinky-cta::before {
    left: 20%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .novinky-card,
  .novinky-highlight__image {
    transition: none;
  }

  .novinky-card:hover,
  .novinky-highlight__media:hover .novinky-highlight__image {
    transform: none;
  }
}
