/**
 * About Page Styles
 * 
 * Matches explore/browse/leaderboard page styling patterns.
 * Uses glassmorphism effects, blue accents, and consistent section headers.
 */

/* ============================================================================
   Page Layout
   ============================================================================ */

.about-page {
  min-height: 100vh;
  background: var(--color-bg-primary);
  padding-bottom: 4rem;
}

/* ============================================================================
   Section Header - Hero Style (matches main Sports Index title)
   ============================================================================ */

.about-section {
  padding-top: 2.5rem;
  border-top: none;
  margin-top: 0;
}

.about-header-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.25rem;
}

.about-section .section-header {
  border-bottom: none;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-section .section-title {
  margin: 0;
  display: flex;
  align-items: center;
  border-bottom: none !important;
  font-size: 2.5rem;
  font-weight: 700;
}

.about-section .section-emoji {
  margin-right: 0.5rem;
  font-size: 1.5rem;
}

.about-section .section-title-text {
  position: relative;
  display: inline-block;
  padding-bottom: 0;
  color: var(--color-primary);
  text-shadow: 0 0 20px rgba(0, 168, 255, 0.35);
  transition: text-shadow 0.3s ease;
}

/* Remove the underline effect */
.about-section .section-title-text::after {
  display: none;
}

/* Responsive sizing to match explore-hero-title */
@media (max-width: 768px) {
  .about-section .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .about-section .section-title {
    font-size: 1.75rem;
  }
}

/* ============================================================================
   Platform Introduction
   ============================================================================ */

.about-intro {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 1rem;
  padding: 0 1rem;
}

/* Search bar positioned below subtitle */
.about-search-section {
  margin-bottom: 1.5rem;
}

.intro-text {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 0;
  text-align: center;
  max-width: 600px;
  min-height: 1.5em; /* Prevent layout shift */
  display: inline-block;
}

#intro-typewriter {
  display: inline;
}

.intro-cursor {
  display: inline;
  color: var(--color-primary, #00a8ff);
  font-weight: 300;
  animation: introCursorBlink 1s infinite;
  margin-left: 2px;
}

@keyframes introCursorBlink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* ============================================================================
   User Type Tabs
   ============================================================================ */

.about-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.about-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-tab:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.about-tab.active {
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.2), rgba(0, 168, 255, 0.1));
  border-color: rgba(0, 168, 255, 0.4);
  color: #fff;
  box-shadow: 
    0 0 20px rgba(0, 168, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tab-icon {
  font-size: 1.25rem;
}

.tab-label {
  white-space: nowrap;
}

/* ============================================================================
   Tab Content Panels
   ============================================================================ */

.about-content {
  position: relative;
}

.about-panel {
  display: none;
  animation: panelFadeIn 0.4s ease-out;
}

.about-panel.active {
  display: block;
}

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

/* Panel Hero */
.panel-hero {
  text-align: center;
  padding: 2.5rem 1rem;
  margin-bottom: 2rem;
  background: rgba(0, 168, 255, 0.03);
  border: 1px solid rgba(0, 168, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.panel-icon-large {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(0, 168, 255, 0.3));
}

.panel-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem 0;
  text-shadow: 0 0 30px rgba(0, 168, 255, 0.3);
}

.panel-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================================
   Features Grid
   ============================================================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.feature-card {
  background: rgba(0, 168, 255, 0.04);
  border: 1px solid rgba(0, 168, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.feature-card:hover {
  background: rgba(0, 168, 255, 0.08);
  border-color: rgba(0, 168, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 
    0 0 30px rgba(0, 168, 255, 0.15),
    0 10px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 10px rgba(0, 168, 255, 0.2));
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.5rem 0;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================================
   Panel CTA Buttons
   ============================================================================ */

.panel-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 0;
  flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 160px;
}

.btn-cta-primary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  box-shadow: none;
}

.btn-cta-primary:hover {
  background: rgba(0, 168, 255, 0.1);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 168, 255, 0.3);
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ============================================================================
   Bottom Section - Differentiators
   ============================================================================ */

.about-bottom-section {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.05), rgba(0, 168, 255, 0.02));
  border: 1px solid rgba(0, 168, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bottom-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2rem 0;
  text-shadow: 0 0 20px rgba(0, 168, 255, 0.3);
}

.differentiators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.diff-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.diff-icon {
  font-size: 2rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(0, 168, 255, 0.3));
}

.diff-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.35rem 0;
}

.diff-content p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 768px) {
  .about-tabs {
    gap: 0.375rem;
  }
  
  .about-tab {
    padding: 0.625rem 1rem;
    font-size: 0.85rem;
  }
  
  .tab-icon {
    font-size: 1rem;
  }
  
  .panel-hero {
    padding: 1.5rem 1rem;
  }
  
  .panel-icon-large {
    font-size: 3rem;
  }
  
  .panel-title {
    font-size: 1.35rem;
  }
  
  .panel-subtitle {
    font-size: 0.95rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feature-card {
    padding: 1.25rem;
  }
  
  .panel-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    max-width: 280px;
  }
  
  .about-bottom-section {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .bottom-title {
    font-size: 1.25rem;
  }
  
  .differentiators-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .about-tabs {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .about-tab {
    width: 100%;
    justify-content: center;
  }
  
  .feature-icon {
    font-size: 1.75rem;
  }
  
  .feature-title {
    font-size: 1rem;
  }
}

/* ============================================================================
   Light Mode Overrides
   ============================================================================ */

:root.light-mode .about-section .section-title-text {
  color: #1F6FEB;
  text-shadow: none;
}

:root.light-mode .intro-text {
  color: #666666;
}

:root.light-mode .about-tab.active {
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.2), rgba(31, 111, 235, 0.1));
  border-color: rgba(31, 111, 235, 0.4);
  color: #1F6FEB;
}

:root.light-mode .panel-hero {
  background: rgba(31, 111, 235, 0.05);
  border-color: rgba(31, 111, 235, 0.15);
}

:root.light-mode .panel-title {
  color: #1a1a2e;
  text-shadow: none;
}

:root.light-mode .feature-card {
  background: rgba(31, 111, 235, 0.05);
  border-color: rgba(31, 111, 235, 0.15);
}

:root.light-mode .feature-card:hover {
  background: rgba(31, 111, 235, 0.1);
  border-color: rgba(31, 111, 235, 0.25);
}

:root.light-mode .feature-title {
  color: #1a1a2e;
}

:root.light-mode .btn-cta-primary {
  background: transparent;
  color: #1F6FEB;
  border: 1px solid rgba(31, 111, 235, 0.5);
}

:root.light-mode .btn-cta-primary:hover {
  background: rgba(31, 111, 235, 0.1);
  border-color: #1F6FEB;
  box-shadow: 0 0 15px rgba(31, 111, 235, 0.25);
}

:root.light-mode .btn-cta-secondary {
  background: rgba(0, 0, 0, 0.03);
  color: #1a1a2e;
  border-color: rgba(0, 0, 0, 0.1);
}

:root.light-mode .about-bottom-section {
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.05), rgba(31, 111, 235, 0.02));
  border-color: rgba(31, 111, 235, 0.15);
}

:root.light-mode .bottom-title {
  color: #1a1a2e;
  text-shadow: none;
}

:root.light-mode .diff-content h4 {
  color: #1a1a2e;
}


