/**
 * TS Team Member Page Specific Styles
 * Enqueued only for tsteam page templates
 */

/* Top Bar with Marquee */
.tsteam-topbar {
  background: linear-gradient(90deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  overflow: hidden;
  position: relative;
}

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

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

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

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

@keyframes tsteam-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Main Header */
.tsteam-header {
  background: #1E0E51;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tsteam-header.scrolled {
  background: rgba(30, 14, 81, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.tsteam-header__logo img {
  height: 36px;
  width: auto;
  transition: transform 0.2s ease;
}

.tsteam-header__logo:hover img {
  transform: scale(1.02);
}

/* Desktop Navigation */
.tsteam-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

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

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

.tsteam-nav__item a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.tsteam-nav__item i {
  font-size: 14px;
  color: #a146da;
}

/* Dropdown */
.tsteam-nav__item--dropdown {
  position: relative;
}

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

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

.tsteam-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: #1a1f33;
  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;
}

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

.tsteam-dropdown li {
  margin: 0;
}

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

.tsteam-dropdown a:hover {
  background: rgba(112, 63, 214, 0.2);
  color: white;
}

.tsteam-dropdown a i {
  color: #a146da;
}

/* Header Actions */
.tsteam-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tsteam-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;
}

.tsteam-header__cta--outline {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
}

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

.tsteam-header__cta--primary {
  background: linear-gradient(135deg, #703fd6 0%, #a146da 100%);
  color: white;
  border: none;
}

.tsteam-header__cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(112, 63, 214, 0.4);
}

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

/* Mobile Toggle */
.tsteam-header__mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  transition: all 0.2s ease;
}

.tsteam-header__mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

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

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

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

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

/* Mobile Menu */
.tsteam-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: #0f131f;
  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);
}

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

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

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

.tsteam-mobile-menu__nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

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

/* Footer */
.tsteam-footer {
  margin-top: 80px;
}

.tsteam-newsletter {
  background: linear-gradient(135deg, #703fd6 0%, #a146da 100%);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

.tsteam-newsletter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.tsteam-newsletter-title {
  color: white;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
}

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

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

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

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

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

.tsteam-newsletter-btn:hover {
  background: #1a1f33;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

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

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

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

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

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

.tsteam-footer-nav a:hover {
  color: white;
}

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

.tsteam-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;
}

.tsteam-socials a:hover {
  background: #703fd6;
  border-color: #703fd6;
  color: white;
  transform: translateY(-2px);
}

.tsteam-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;
}

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

/* Overlay when mobile menu is open */
body.tsteam-menu-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
  .tsteam-nav {
    display: none;
  }

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

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

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

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

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

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

  .tsteam-header__logo img {
    height: 30px;
  }

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

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

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

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

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

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

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