/* RoastMyStats Web - Styles */
:root {
  --color-primary: #E8366D;
  --color-primary-dark: #C42D5B;
  --color-background: #0A0A0F;
  --color-surface: #1A1A24;
  --color-surface-elevated: #252532;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #A0A0B0;
  --color-text-tertiary: #6B6B7B;
  --color-success: #4CAF50;
  --color-error: #F44336;
  --color-warning: #FFC107;
  --border-radius: 12px;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.logo span {
  color: var(--color-primary);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--color-text-primary);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: radial-gradient(ellipse at top, rgba(232, 54, 109, 0.15) 0%, transparent 50%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-text h1 span {
  color: var(--color-primary);
}

.hero-text p {
  font-size: 20px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: white;
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: var(--color-surface-elevated);
  color: white;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 300px;
  height: 600px;
  background: var(--color-surface);
  border-radius: 40px;
  border: 4px solid var(--color-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  font-size: 14px;
}

/* Features */
.features {
  padding: 120px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-title p {
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 54, 109, 0.3);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(232, 54, 109, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--color-text-secondary);
  font-size: 15px;
}

/* How it works */
.how-it-works {
  padding: 120px 0;
  background: var(--color-surface);
}

.steps {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.step {
  flex: 1;
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.step p {
  color: var(--color-text-secondary);
  font-size: 15px;
}

/* CTA */
.cta {
  padding: 120px 0;
  text-align: center;
}

.cta h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 24px;
}

.cta p {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.app-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.app-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: var(--color-surface);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
}

.app-button:hover {
  background: var(--color-surface-elevated);
  border-color: rgba(255, 255, 255, 0.2);
}

.app-button-text {
  text-align: left;
}

.app-button-text span {
  display: block;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.app-button-text strong {
  display: block;
  font-size: 16px;
  color: var(--color-text-primary);
}

/* Footer */
.footer {
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--color-text-primary);
}

.footer-copy {
  color: var(--color-text-tertiary);
  font-size: 14px;
}

/* Auth Callback Pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.auth-card {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  padding: 48px;
  max-width: 420px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 24px;
}

.auth-icon.success {
  background: rgba(76, 175, 80, 0.15);
  color: var(--color-success);
}

.auth-icon.error {
  background: rgba(244, 67, 54, 0.15);
  color: var(--color-error);
}

.auth-icon.loading {
  background: rgba(232, 54, 109, 0.15);
  color: var(--color-primary);
}

.auth-card h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.auth-card p {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-surface-elevated);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Legal Pages */
.legal-page {
  padding-top: 100px;
  padding-bottom: 60px;
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.legal-content .last-updated {
  color: var(--color-text-tertiary);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.legal-content h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-content p {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.legal-content ul {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .hero-text h1 {
    font-size: 36px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
  }

  .section-title h2 {
    font-size: 32px;
  }

  .cta h2 {
    font-size: 32px;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .app-buttons {
    flex-direction: column;
    align-items: center;
  }
}
