/* ============================================
   TopDeck.gg Subscribe Page
   ============================================

   Page-specific styles that build on enhancements.css.
   Hero base styles are in enhancements.css.

   ============================================ */

/* ============================================
   HERO SECTION - Subscribe Page Overrides
   ============================================ */

.min-vh-85 {
  min-height: 85vh;
}

/* Larger title for main subscribe page */
.td-hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* Accent spans as block on subscribe page */
.td-hero-accent {
  display: block;
}

/* Tighter subtitle width */
.td-hero-subtitle {
  max-width: 540px;
}

/* Extra margin on subscribe hero CTA */
.td-hero-cta {
  margin-bottom: 2.5rem;
}

/* Trust badge - unique to subscribe */
.td-trust-badge {
  display: inline-block;
}

.td-trust-badge-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(108, 166, 234, 0.1);
  border: 1px solid rgba(108, 166, 234, 0.2);
  border-radius: 100px;
  font-size: 0.875rem;
}

.td-trust-count {
  font-family: var(--td-font-mono);
  font-weight: 600;
  color: #6ca6ea;
}

.td-trust-label {
  color: rgba(255, 255, 255, 0.7);
}

/* Button modifiers */
.td-btn-xl {
  padding: 1.125rem 2.25rem;
  font-size: 1.0625rem;
  border-radius: 12px;
}

.td-btn-full {
  width: 100%;
}

.td-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background-color 0.15s ease;
}

.td-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Proof row - unique to subscribe */
.td-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.td-proof-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.td-proof-icon {
  color: #6ca6ea;
  font-size: 1rem;
}

/* Hero visual - subscribe page specific */
.td-hero-visual {
  position: relative;
}

.td-hero-visual .gallery {
  margin: 0;
}

/* Enhanced shadow for subscribe hero image */
.td-hero-visual .td-hero-image {
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(108, 166, 234, 0.1);
}

/* ============================================
   SOCIAL PROOF
   ============================================ */

.td-social-proof {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.td-proof-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.td-proof-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   SECTION COMMON
   ============================================ */

.td-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.td-section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: #fff;
}

.td-section-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ============================================
   VALUE PROPS
   ============================================ */

.td-value-section {
  padding: 6rem 0;
  background: #0d1117;
}

.td-value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 991px) {
  .td-value-grid {
    grid-template-columns: 1fr;
  }
}

.td-value-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.td-value-card:hover {
  border-color: rgba(108, 166, 234, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.td-value-card.td-value-featured {
  grid-column: span 1;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(108, 166, 234, 0.08) 0%, rgba(108, 166, 234, 0.02) 100%);
  border-color: rgba(108, 166, 234, 0.15);
}

.td-value-card.td-value-featured:hover {
  transform: translateY(-2px);
  border-color: rgba(108, 166, 234, 0.3);
  box-shadow: 0 8px 32px rgba(108, 166, 234, 0.1);
}

.td-value-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 166, 234, 0.15);
  color: #6ca6ea;
  border-radius: 10px;
  font-size: 1.25rem;
}

.td-value-icon.td-icon-info { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.td-value-icon.td-icon-success { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.td-value-icon.td-icon-warning { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.td-value-icon.td-icon-secondary { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.7); }

.td-value-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.td-value-content p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0;
}

.td-value-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6ca6ea;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.td-value-link:hover {
  gap: 0.5rem;
  color: #7db3f0;
}

/* ============================================
   GAMES SECTION
   ============================================ */

.td-games-section {
  padding: 4rem 0;
  background: #161b22;
}

.td-games-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  color: #fff;
}

.td-games-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.td-game-item {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.6;
}

.td-game-item:hover {
  opacity: 1;
  transform: scale(1.15);
}

.td-game-item a {
  display: block;
  line-height: 0;
}

.td-game-item img {
  height: 48px;
  width: auto;
  border-radius: 6px;
}

.td-games-note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.td-games-note a {
  color: #6ca6ea;
  text-decoration: none;
  margin-left: 0.25rem;
}

.td-games-note a:hover {
  text-decoration: underline;
}

/* ============================================
   STEPS SECTION
   ============================================ */

.td-steps-section {
  padding: 6rem 0;
  background: #0d1117;
}

.td-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

@media (max-width: 991px) {
  .td-steps-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

.td-step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.td-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #6ca6ea;
  color: #0a0d12;
  font-family: var(--td-font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.td-step-image {
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 320px;
}

.td-step-image .gallery {
  margin: 0;
}

.td-step-image .gallery-item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
}

.td-step-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.td-step-image .gallery-item:hover img {
  transform: scale(1.02);
}

.td-step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.td-step p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0;
  max-width: 280px;
}

/* ============================================
   PRICING SECTION
   ============================================ */

.td-pricing-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, #0a0d12 0%, #0d1117 100%);
}

.td-pricing-card {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
}

.td-pricing-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
}

@media (max-width: 767px) {
  .td-pricing-inner {
    grid-template-columns: 1fr;
  }
}

.td-pricing-option {
  padding: 2.5rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.td-pricing-option.td-pricing-recommended {
  background: linear-gradient(135deg, rgba(108, 166, 234, 0.1) 0%, rgba(108, 166, 234, 0.03) 100%);
}

.td-pricing-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  background: #6ca6ea;
  color: #0a0d12;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.td-pricing-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.td-pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.td-currency {
  font-size: 1.5rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.td-price {
  font-family: var(--td-font-mono);
  font-size: 4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.td-period {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
}

.td-pricing-savings {
  display: inline-block;
  align-self: center;
  padding: 0.25rem 0.75rem;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.td-pricing-trial {
  font-size: 0.875rem;
  color: #6ca6ea;
  margin-bottom: 1rem;
}

/* Push button to bottom of flex container */
.td-pricing-option .td-btn-primary,
.td-pricing-option button.td-btn-primary {
  margin-top: auto;
}

/* Ensure consistent spacing above button */
.td-pricing-savings + .td-pricing-trial,
.td-pricing-amount + .td-pricing-trial {
  margin-top: 1rem;
}

.td-pricing-savings + button,
.td-pricing-savings + .td-pricing-trial + button {
  margin-top: 1rem;
}

.td-pricing-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.td-pricing-divider span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .td-pricing-divider {
    padding: 1rem 0;
  }

  .td-pricing-divider::before,
  .td-pricing-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 1rem;
  }
}

.td-pricing-features {
  padding: 2rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.td-pricing-features-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-align: center;
}

.td-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem 1.5rem;
}

@media (max-width: 767px) {
  .td-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.td-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.td-feature-item i {
  color: #22c55e;
  font-size: 0.75rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.td-testimonials-section {
  padding: 6rem 0;
  background: rgba(0, 0, 0, 0.2);
}

.td-testimonial-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.td-tab {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.td-tab:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.td-tab.active {
  background: #6ca6ea;
  border-color: #6ca6ea;
  color: #0a0d12;
}

.td-testimonial-content {
  min-height: 400px;
}

.td-testimonial-group {
  display: none;
}

.td-testimonial-group.active {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
  .td-testimonial-group.active {
    grid-template-columns: 1fr;
  }
}

.td-testimonial-card {
  padding: 2rem;
  background: rgba(108, 166, 234, 0.06);
  border: 1px solid rgba(108, 166, 234, 0.1);
  border-radius: 16px;
}

.td-testimonial-quote p {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

.td-testimonial-quote p:last-child {
  margin-bottom: 1.5rem;
}

.td-testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.td-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #1c2128;
}

.td-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 166, 234, 0.2);
  color: #6ca6ea;
}

.td-author-info {
  display: flex;
  flex-direction: column;
}

.td-author-info strong {
  color: #fff;
  font-weight: 600;
}

.td-author-info span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   FAQ
   ============================================ */

.td-faq-section {
  padding: 6rem 0;
  background: #0d1117;
}

#faqAccordion .accordion-item .accordion-button {
  padding: 1.25rem 1.5rem !important;
}

#faqAccordion .accordion-item .accordion-collapse .accordion-body {
  padding: 1.5rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   FINAL CTA
   ============================================ */

.td-final-cta {
  padding: 6rem 0;
  background: linear-gradient(135deg, #1a3a5c 0%, #0d1117 100%);
  position: relative;
  overflow: hidden;
}

.td-final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  height: 100%;
  background: radial-gradient(ellipse at center top, rgba(108, 166, 234, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.td-final-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: #fff;
}

.td-final-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
}

.td-final-note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.td-final-note i {
  color: #22c55e;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 767px) {
  .td-hero-title {
    font-size: 2.5rem;
  }

  .td-hero-subtitle {
    font-size: 1.0625rem;
  }

  .td-hero-cta {
    flex-direction: column;
  }

  .td-btn-primary,
  .td-btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .td-proof-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .td-section-header {
    margin-bottom: 2.5rem;
  }

  .td-pricing-option {
    padding: 2rem 1.5rem;
  }

  .td-price {
    font-size: 3rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }

  .td-testimonial-group.active {
    animation: none;
  }
}
