/* ==========================================================================
   FUTURE WAVE ANALYSIS — Support Page Stylesheet (Phase 6)
   Voluntary Community Backing, Visual Support Cards, Transparency & Ethics
   ========================================================================== */

/* 1. Hero Section */
.support-hero {
  padding: 3.5rem 0 2.25rem;
  text-align: center;
  position: relative;
}

.support-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tide);
  background: var(--tide-bg);
  border: 1px solid var(--tide-border);
  margin-bottom: 1.25rem;
}

.support-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  color: var(--foreground);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.support-subtitle {
  color: var(--mist);
  font-size: 1.15rem;
  max-width: 48rem;
  margin: 0 auto 1.5rem;
  line-height: 1.65;
}

.support-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: var(--foreground);
  background: var(--bg-panel-2);
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-strong);
  font-weight: 500;
}

.support-hero-badge svg {
  color: var(--bull);
  flex-shrink: 0;
}

/* 2. Visual Amounts Selector & Notice */
.support-amounts-wrapper {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  margin: 0 auto 3rem;
  max-width: 56rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-card);
}

.support-section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.4rem;
}

.support-section-sub {
  font-size: 0.95rem;
  color: var(--mist);
  margin-bottom: 1.5rem;
}

.support-pills-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.support-amount-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-panel-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  user-select: none;
}

.support-amount-pill .pill-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--mist);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.support-amount-pill:hover {
  border-color: var(--tide);
  background: var(--tide-bg);
  color: var(--tide);
  transform: translateY(-2px);
}

.support-amount-pill.active {
  border-color: var(--tide);
  background: var(--tide-bg);
  color: var(--tide);
  box-shadow: 0 0 15px var(--tide-glow);
}

.support-amount-pill.active .pill-sub {
  color: var(--tide);
}

.support-custom-box {
  display: none;
  margin: 1rem auto 1.25rem;
  max-width: 20rem;
}

.support-custom-box.is-active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

.support-custom-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.support-custom-prefix {
  position: absolute;
  left: 1rem;
  color: var(--tide);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  pointer-events: none;
}

.support-custom-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.25rem;
  background: var(--bg-ink);
  border: 1.5px solid var(--tide);
  border-radius: var(--radius-md);
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  outline: none;
  text-align: left;
}

.support-custom-input:focus {
  box-shadow: 0 0 12px var(--tide-glow);
}

/* Clearly state: Support is optional. No subscription required. */
.support-optional-notice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.65rem 1.35rem;
  background: var(--bull-bg);
  border: 1px solid var(--bull-border);
  border-radius: var(--radius-full);
  color: var(--bull);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.support-optional-notice svg {
  flex-shrink: 0;
}

/* 3. Support Cards Grid */
.support-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.support-card {
  background: var(--bg-panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  box-shadow: var(--shadow-card);
}

.support-card:hover {
  transform: translateY(-5px);
  border-color: var(--tide-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.support-card.featured {
  border-color: var(--tide);
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.05) 0%, var(--bg-panel) 100%);
  box-shadow: 0 0 25px var(--tide-glow);
}

.support-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tide);
  color: var(--primary-fg);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 10px rgba(45, 212, 191, 0.4);
  white-space: nowrap;
}

.support-card-header {
  margin-bottom: 1.25rem;
}

.support-card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.support-card.featured .support-card-icon-wrap {
  border-color: var(--tide-border);
  background: var(--tide-bg);
}

.support-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mist);
  margin-bottom: 0.4rem;
}

.support-card.featured .support-card-tag {
  color: var(--tide);
}

.support-card-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--foreground);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.support-card-desc {
  font-size: 0.95rem;
  color: var(--mist);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.support-card-amount-box {
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.support-card-amount-val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--foreground);
}

.support-card.featured .support-card-amount-val {
  color: var(--tide);
}

.support-card-amount-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mist-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.support-card-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1.5px solid var(--line-strong);
  background: var(--bg-panel-2);
  color: var(--foreground);
}

.support-card-btn:hover {
  background: var(--tide-bg);
  border-color: var(--tide);
  color: var(--tide);
  transform: translateY(-2px);
}

.support-card.featured .support-card-btn {
  background: var(--tide);
  color: var(--primary-fg);
  border-color: var(--tide);
  box-shadow: 0 4px 14px rgba(45, 212, 191, 0.25);
}

.support-card.featured .support-card-btn:hover {
  background: var(--tide-hover);
  border-color: var(--tide-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(45, 212, 191, 0.4);
}

/* 4. Why Support Section */
.support-why-section {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-card);
}

.support-why-header {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2.5rem;
}

.support-why-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--foreground);
  margin-top: 0.4rem;
  margin-bottom: 0.75rem;
}

.support-why-sub {
  color: var(--mist);
  font-size: 1.05rem;
  line-height: 1.6;
}

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

.support-why-card {
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.support-why-card:hover {
  transform: translateY(-3px);
  border-color: var(--tide-border);
}

.support-why-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--tide-bg);
  border: 1px solid var(--tide-border);
  color: var(--tide);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.support-why-card-content h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.45rem;
}

.support-why-card-content p {
  font-size: 0.925rem;
  color: var(--mist);
  line-height: 1.6;
}

/* 5. Transparency Section */
.support-transparency-card {
  background: var(--bg-panel-2);
  border: 1.5px solid var(--tide-border);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2.5rem;
  margin-bottom: 3.5rem;
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.support-transparency-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--tide);
}

.support-transparency-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--tide-bg);
  border: 1px solid var(--tide-border);
  color: var(--tide);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.support-transparency-body {
  flex-grow: 1;
}

.support-transparency-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.support-transparency-statement {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tide);
  line-height: 1.55;
  margin-bottom: 0.65rem;
  background: var(--tide-bg);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--tide);
}

.support-transparency-sub {
  font-size: 0.925rem;
  color: var(--mist);
  line-height: 1.6;
}

/* 6. Explore Navigation Strip */
.support-explore-strip {
  text-align: center;
  padding: 2rem 0;
}

.support-explore-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.4rem;
}

.support-explore-sub {
  color: var(--mist);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.support-explore-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.support-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--foreground);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.support-explore-btn:hover {
  border-color: var(--tide);
  color: var(--tide);
  background: var(--tide-bg);
  transform: translateY(-2px);
}

/* 7. RTL Support (Arabic) */
[dir="rtl"] .support-custom-prefix {
  left: auto;
  right: 1rem;
}

[dir="rtl"] .support-custom-input {
  padding: 0.75rem 2.25rem 0.75rem 1rem;
  text-align: right;
}

[dir="rtl"] .support-transparency-card::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .support-transparency-statement {
  border-left: none;
  border-right: 3px solid var(--tide);
}

/* 8. White Theme Overrides */
[data-theme="white"] .support-amounts-wrapper,
[data-theme="white"] .support-card,
[data-theme="white"] .support-why-section {
  background: #ffffff;
  border-color: #35D1C6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="white"] .support-amount-pill,
[data-theme="white"] .support-card-amount-box,
[data-theme="white"] .support-why-card,
[data-theme="white"] .support-transparency-card,
[data-theme="white"] .support-hero-badge,
[data-theme="white"] .support-explore-btn,
[data-theme="white"] .support-card-icon-wrap {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="white"] .support-amount-pill:hover,
[data-theme="white"] .support-amount-pill.active {
  background: rgba(36, 199, 184, 0.1);
  border-color: #24C7B8;
  color: #169387;
}

[data-theme="white"] .support-card.featured {
  border-color: #24C7B8;
  background: linear-gradient(180deg, rgba(36, 199, 184, 0.06) 0%, #ffffff 100%);
  box-shadow: 0 0 25px rgba(36, 199, 184, 0.2);
}

[data-theme="white"] .support-card-badge {
  background: #24C7B8;
  color: #ffffff;
}

[data-theme="white"] .support-transparency-statement {
  background: rgba(36, 199, 184, 0.1);
  color: #127a70;
  border-color: #24C7B8;
}

[data-theme="white"] .support-custom-input {
  background: #ffffff;
  border-color: #24C7B8;
  color: #071321;
}

/* 9. Mobile Responsiveness */
@media (max-width: 992px) {
  .support-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .support-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .support-hero {
    padding: 2.5rem 0 1.75rem;
  }

  .support-amounts-wrapper {
    padding: 1.5rem 1.25rem;
  }

  .support-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .support-card.featured {
    grid-column: span 1;
  }

  .support-card {
    padding: 1.75rem 1.5rem;
  }

  .support-why-section {
    padding: 2rem 1.25rem;
  }

  .support-why-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .support-transparency-card {
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: 1rem;
  }
}

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