/* Page-owned styles for tematicke-vecery */

.tv-hero {
  background-color: var(--bg-alt);
  color: var(--bg-base);
  padding-block: clamp(4rem, 10vw, 8rem) clamp(3rem, 8vw, 6rem);
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.tv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(166, 106, 75, 0.15), transparent 45%),
              radial-gradient(circle at 20% 80%, rgba(38, 54, 71, 0.3), transparent 50%);
  pointer-events: none;
}

.tv-hero__inner {
  position: relative;
  z-index: 1;
}

.tv-hero__content {
  max-width: 66.666%; /* 8/12 columns */
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tv-hero__title {
  font-size: var(--text-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--bg-base);
  margin: 0;
}

.tv-hero__lead {
  font-size: var(--text-h4);
  line-height: 1.5;
  color: rgba(242, 240, 234, 0.9);
  margin: 0;
  max-width: 40em;
}

.tv-concept {
  background-color: var(--bg-base);
}

.tv-concept__content {
  max-width: 50%; /* 6/12 columns */
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.tv-concept__title {
  margin: 0;
}

.tv-concept__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.tv-concept__subtitle {
  color: var(--accent-blue);
  margin: 0;
}

.tv-concept__item p {
  margin: 0;
}

.tv-types {
  background-color: var(--bg-base);
}

.tv-types__title {
  margin-block-end: var(--space-md);
}

.tv-types__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xs);
}

.tv-card {
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.tv-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 4px 20px rgba(37, 40, 42, 0.1);
}

.tv-card::after {
  content: "♠";
  position: absolute;
  top: var(--space-2xs);
  right: var(--space-2xs);
  font-size: 1.5rem;
  color: var(--accent-copper);
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.tv-card:hover::after {
  opacity: 0.6;
}

.tv-card--poker {
  border-color: rgba(115, 121, 104, 0.5);
}

.tv-card--poker::after {
  content: "♦";
  color: var(--accent-green);
}

.tv-card__icon {
  font-size: 1.75rem;
  color: var(--accent-copper);
  line-height: 1;
}

.tv-card--poker .tv-card__icon {
  color: var(--accent-green);
}

.tv-card__title {
  margin: 0;
}

.tv-card__text {
  margin: 0;
  max-width: 35ch;
}

.tv-dates {
  background-color: var(--bg-alt);
  color: var(--bg-base);
}

.tv-dates__title {
  color: var(--bg-base);
  margin-block-end: var(--space-2xs);
}

.tv-dates__intro {
  color: rgba(242, 240, 234, 0.85);
  margin-block-end: var(--space-md);
  max-width: 60ch;
}

.tv-dates__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.tv-date-item {
  display: grid;
  grid-template-columns: 2fr 7fr 3fr;
  gap: var(--space-2xs);
  align-items: center;
  padding-block: var(--space-2xs);
  border-bottom: 1px solid rgba(242, 240, 234, 0.15);
}

.tv-date-item:last-child {
  border-bottom: none;
}

.tv-date-item__date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4xs);
  min-width: 0;
}

.tv-date-item__day {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  line-height: 1;
  color: var(--accent-copper);
}

.tv-date-item__month {
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(242, 240, 234, 0.7);
}

.tv-date-item__info {
  min-width: 0;
}

.tv-date-item__name {
  color: var(--bg-base);
  margin: 0;
}

.tv-date-item__desc {
  color: rgba(242, 240, 234, 0.85);
  margin: 0;
  max-width: 60ch;
}

.tv-date-item__action {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.tv-gallery {
  background-color: var(--bg-base);
}

.tv-gallery__title {
  margin-block-end: var(--space-2xs);
}

.tv-gallery__intro {
  margin-block-end: var(--space-md);
  max-width: 60ch;
}

.tv-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xs);
}

.tv-gallery__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  min-width: 0;
}

.tv-gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.tv-gallery__caption {
  font-size: var(--text-caption);
  line-height: 1.4;
  color: var(--text-secondary);
  max-width: 30ch;
}

.tv-practical {
  background-color: var(--bg-base);
}

.tv-practical__content {
  max-width: 50%; /* 6/12 columns */
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tv-practical__title {
  margin: 0;
}

.tv-practical__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  margin: 0;
}

.tv-practical__list li {
  display: flex;
  gap: var(--space-3xs);
  align-items: baseline;
}

.tv-practical__list strong {
  color: var(--accent-blue);
  font-weight: 600;
  white-space: nowrap;
}

.tv-cta {
  background-color: var(--bg-alt);
  color: var(--bg-base);
  text-align: center;
}

.tv-cta__content {
  max-width: 50%; /* 6/12 columns */
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.tv-cta__title {
  color: var(--bg-base);
  margin: 0;
}

.tv-cta__text {
  color: rgba(242, 240, 234, 0.85);
  margin: 0;
}

.tv-cta__text a {
  color: var(--accent-copper);
}

.tv-cta__text a:hover {
  color: var(--bg-base);
}

.tv-cta__button {
  animation: tv-pulse 2.4s ease-in-out infinite;
}

@keyframes tv-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(166, 106, 75, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(166, 106, 75, 0);
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .tv-hero__content {
    max-width: 75%;
  }

  .tv-concept__content,
  .tv-practical__content,
  .tv-cta__content {
    max-width: 66.666%;
  }

  .tv-date-item {
    grid-template-columns: 2fr 6fr 4fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .tv-hero {
    min-height: 50vh;
    padding-block: var(--space-lg) var(--space-md);
  }

  .tv-hero__content {
    max-width: 100%;
  }

  .tv-hero__title {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
  }

  .tv-hero__lead {
    font-size: var(--text-body);
  }

  .tv-concept__content,
  .tv-practical__content,
  .tv-cta__content {
    max-width: 100%;
  }

  .tv-types__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xs);
  }

  .tv-card__text {
    max-width: none;
  }

  .tv-dates__intro {
    max-width: none;
  }

  .tv-date-item {
    grid-template-columns: 1fr;
    gap: var(--space-3xs);
    padding-block: var(--space-2xs);
  }

  .tv-date-item__date {
    flex-direction: row;
    align-items: baseline;
    gap: var(--space-3xs);
  }

  .tv-date-item__day {
    font-size: var(--text-h3);
  }

  .tv-date-item__action {
    justify-content: flex-start;
  }

  .tv-date-item__action .btn {
    width: 100%;
  }

  .tv-gallery__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xs);
  }

  .tv-gallery__caption {
    max-width: none;
  }

  .tv-practical__list li {
    flex-direction: column;
    gap: var(--space-4xs);
  }

  .tv-practical__list strong {
    white-space: normal;
  }

  .tv-cta__button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .tv-hero {
    min-height: auto;
    padding-block: var(--space-md) var(--space-sm);
  }

  .tv-hero__title {
    font-size: 2.25rem;
  }

  .tv-types__grid {
    gap: var(--space-2xs);
  }

  .tv-gallery__grid {
    gap: var(--space-2xs);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tv-cta__button {
    animation: none;
  }
}
