/* TVStack frontend helpers */

.tv-section {
  padding: var(--tv-section-padding-desktop);
}

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

.tv-content {
  width: min(100%, var(--tv-content));
  margin-inline: auto;
}

.tv-card {
  background: var(--tv-surface);
  color: var(--tv-text);
  border: var(--tv-border-width) solid var(--tv-border);
  border-radius: var(--tv-radius);
  padding: clamp(20px, 3vw, 36px);
}

.tv-button,
.elementor-button.tv-button,
a.tv-button,
button.tv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  border-radius: var(--tv-button-radius);
  background: var(--tv-primary);
  color: #fff;
  text-decoration: none;
  padding: .9em 1.25em;
  line-height: 1;
  font-family: var(--tv-font-button);
  font-weight: 800;
  border: var(--tv-border-width) solid transparent;
  transition: transform .18s ease, filter .18s ease, background .18s ease, color .18s ease;
}

.tv-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.tv-button-outline {
  background: transparent;
  color: var(--tv-primary);
  border-color: currentColor;
}

.tv-button-outline:hover {
  background: var(--tv-primary);
  color: #fff;
}

.tv-full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.tv-no-radius,
.tv-no-radius img,
.tv-no-radius iframe,
.tv-no-radius .elementor-widget-container {
  border-radius: 0 !important;
}

.tv-glow {
  box-shadow: 0 0 24px color-mix(in srgb, var(--tv-primary) 35%, transparent);
}

.tv-dashed {
  border: var(--tv-border-width) dashed var(--tv-primary);
}

.tv-muted {
  color: var(--tv-muted);
}

.tv-surface {
  background: var(--tv-surface);
}

.tv-hide {
  display: none !important;
}

.tv-portfolio-notice {
  background: var(--tv-primary);
  color: #fff;
  font: 700 13px/1.3 var(--tv-font-body);
  padding: 10px 16px;
  text-align: center;
  position: relative;
  z-index: 99999;
}

.tv-footer-credit {
  background: var(--tv-surface-alt);
  color: var(--tv-muted);
  font: 600 12px/1.3 var(--tv-font-body);
  padding: 12px 16px;
  text-align: center;
}

.tv-notice {
  border-left: 4px solid var(--tv-primary);
  background: var(--tv-surface);
  color: var(--tv-text);
  padding: 14px 16px;
  border-radius: calc(var(--tv-radius) / 1.5);
}

/* Elementor/Astra helpers */
.elementor-widget-image img,
.elementor-swiper,
.elementor-image-carousel-wrapper {
  border-radius: inherit;
}

.ast-container,
.site-content .ast-container {
  max-width: var(--tv-container);
}

@media (max-width: 921px) {
  .tv-section {
    padding: var(--tv-section-padding-tablet);
  }

  .tv-hide-tablet {
    display: none !important;
  }
}

@media (max-width: 700px) {
  .tv-section {
    padding: var(--tv-section-padding-mobile);
  }

  .tv-hide-mobile {
    display: none !important;
  }
}

@media (min-width: 701px) {
  .tv-show-mobile {
    display: none !important;
  }
}
