/**
 * TS Product Showcase Page Specific Styles
 * Enqueued only for TS Product Showcase landing templates
 */

.tsproduct-topbar {
  background: linear-gradient(90deg, #ff9f1c 0%, #ff4d8d 52%, #ff7a18 100%);
  overflow: hidden;
  position: relative;
}

.tsproduct-topbar-marquee {
  overflow: hidden;
}

.tsproduct-topbar-marquee__inner {
  display: flex;
  white-space: nowrap;
  animation: tsproduct-marquee 30s linear infinite;
}

.tsproduct-topbar-marquee__text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 0;
}

.tsproduct-topbar-marquee__separator {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.28);
  margin: 0 20px;
}

@keyframes tsproduct-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.tsproduct-header {
  background: #190d2f;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tsproduct-header.scrolled {
  background: rgba(25, 13, 47, 0.98);
  box-shadow: 0 12px 30px rgba(7, 5, 20, 0.35);
}

.tsproduct-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 32px;
}

.tsproduct-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.tsproduct-logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, #ffb300 0%, #ff4d8d 100%);
  box-shadow: 0 12px 24px rgba(255, 77, 141, 0.28);
}

.tsproduct-logo-text {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tsproduct-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.tsproduct-nav__list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tsproduct-nav__item a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.tsproduct-nav__item a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.tsproduct-nav__item i {
  font-size: 14px;
  color: #ff9f1c;
}

.tsproduct-nav__item--dropdown {
  position: relative;
}

.tsproduct-nav__dropdown-arrow {
  font-size: 8px;
  margin-left: 2px;
  transition: transform 0.2s ease;
  color: rgba(255, 255, 255, 0.5);
}

.tsproduct-nav__item--dropdown:hover .tsproduct-nav__dropdown-arrow {
  transform: rotate(180deg);
}

.tsproduct-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: #151126;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.tsproduct-nav__item--dropdown:hover .tsproduct-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tsproduct-dropdown li {
  margin: 0;
}

.tsproduct-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.tsproduct-dropdown a:hover {
  background: rgba(255, 159, 28, 0.14);
  color: #fff;
}

.tsproduct-dropdown a i {
  color: #ff9f1c;
}

.tsproduct-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tsproduct-header__cta {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tsproduct-header__cta--outline {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.tsproduct-header__cta--outline:hover {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.05);
}

.tsproduct-header__cta--primary {
  background: linear-gradient(135deg, #ffb300 0%, #ff4d8d 100%);
  color: #fff;
  border: none;
  box-shadow: 0 10px 24px rgba(255, 77, 141, 0.28);
}

.tsproduct-header__cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 77, 141, 0.38);
}

.tsproduct-header__cta i {
  font-size: 13px;
}

.tsproduct-header__mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  transition: all 0.2s ease;
}

.tsproduct-header__mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.tsproduct-header__mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.tsproduct-header__mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.tsproduct-header__mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.tsproduct-header__mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.tsproduct-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: #0f1019;
  z-index: 1000;
  padding: 90px 24px 24px;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.tsproduct-mobile-menu.active {
  right: 0;
}

.tsproduct-mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tsproduct-mobile-menu__nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.tsproduct-mobile-menu__nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.tsproduct-mobile-menu__nav a i {
  color: #ff9f1c;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.tsproduct-footer {
  margin-top: 80px;
}

.tsproduct-newsletter {
  background: linear-gradient(135deg, #ff9f1c 0%, #ff4d8d 100%);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

.tsproduct-newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16), transparent 34%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.12), transparent 36%);
}

.tsproduct-newsletter-box {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 0 12px;
}

.tsproduct-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.tsproduct-newsletter-title {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
}

.tsproduct-newsletter-desc {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  margin: 0 0 24px;
  line-height: 1.6;
}

.tsproduct-newsletter-form__inner {
  display: flex;
  gap: 14px;
}

.tsproduct-newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  background: #fff;
}

.tsproduct-newsletter-input::placeholder {
  color: #727f9f;
}

.tsproduct-newsletter-btn {
  padding: 14px 28px;
  background: #111320;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tsproduct-newsletter-btn:hover {
  background: #1b1f33;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 15, 29, 0.28);
}

.tsproduct-footer-bottom {
  background: #0f1019;
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tsproduct-footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.tsproduct-footer-logo img {
  height: 36px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.tsproduct-footer-logo:hover img {
  opacity: 1;
}

.tsproduct-footer-nav {
  display: flex;
  gap: 28px;
}

.tsproduct-footer-nav a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.tsproduct-footer-nav a:hover {
  color: #fff;
}

.tsproduct-socials {
  display: flex;
  gap: 12px;
}

.tsproduct-socials a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

.tsproduct-socials a:hover {
  background: #ff4d8d;
  border-color: #ff4d8d;
  color: #fff;
  transform: translateY(-2px);
}

.tsproduct-footer-copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

.tsproduct-footer-copyright span {
  color: rgba(255, 255, 255, 0.2);
}

body.tsproduct-menu-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .tsproduct-nav {
    display: none;
  }

  .tsproduct-header__actions .tsproduct-header__cta:not(.tsproduct-header__mobile-toggle) {
    display: none;
  }

  .tsproduct-header__mobile-toggle {
    display: flex;
  }

  .tsproduct-footer-links {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .tsproduct-newsletter-form__inner {
    flex-direction: column;
  }

  .tsproduct-newsletter-btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .tsproduct-header__inner {
    padding: 12px 0;
    gap: 16px;
  }

  .tsproduct-logo-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 12px;
  }

  .tsproduct-logo-text {
    font-size: 16px;
  }

  .tsproduct-mobile-menu {
    width: 100%;
    right: -100%;
    padding-top: 80px;
  }

  .tsproduct-newsletter {
    padding: 50px 0;
  }

  .tsproduct-newsletter-title {
    font-size: 22px;
  }

  .tsproduct-newsletter-desc {
    font-size: 15px;
  }

  .tsproduct-footer-nav {
    flex-direction: column;
    gap: 16px;
  }

  .tsproduct-socials {
    justify-content: center;
    gap: 10px;
  }

  .tsproduct-footer-bottom {
    padding: 32px 0;
  }
}
