/* Daily Trends Media - Modern Light Theme
   Inspired by optimism.com: generous whitespace, big typography, soft shapes */

:root {
  /* Brand colors from logo */
  --brand-blue: #0865F5;
  --brand-purple: #6511DE;
  --brand-orange: #FF4A24;
  --brand-navy: #071835;
  
  /* UI colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FC;
  --bg-accent: #F0F4FF;
  --text-primary: #071835;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --border-light: #E2E8F0;
  
  /* Gradient */
  --gradient-brand: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-purple) 50%, var(--brand-orange) 100%);
  
  /* Spacing */
  --max-width: 1200px;
  --section-padding: clamp(4rem, 10vw, 8rem);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  
  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.8;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus {
  color: var(--brand-purple);
}

img {
  max-width: 100%;
  height: auto;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background: var(--brand-blue);
  color: white;
  padding: 12px 24px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
  color: white;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

/* Header - Simple logo only */
header {
  padding: 2rem 0;
}

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

.logo {
  display: block;
}

.logo img,
.logo svg {
  height: 96px;
  width: auto;
}

@media (max-width: 768px) {
  .logo img,
  .logo svg {
    height: 64px;
  }
}

@media (max-width: 480px) {
  .logo img,
  .logo svg {
    height: 52px;
  }
}

/* Main content */
main {
  flex: 1;
}

/* Hero section */
.hero {
  padding: var(--section-padding) 0;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Gradient text effect */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Categories section */
.categories-section {
  padding: var(--section-padding) 0;
  padding-top: 0;
}

.categories-title {
  text-align: center;
  margin-bottom: 3rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 900px) {
  .categories-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.category-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), background-color var(--transition-medium);
  cursor: default;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(7, 24, 53, 0.08);
  background: var(--bg-primary);
}

.category-card:focus-within {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.category-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: var(--gradient-brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.category-icon svg {
  width: 24px;
  height: 24px;
}

.category-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.category-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 639px) {
  .category-card {
    padding: 1.25rem 1rem;
  }
  
  .category-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
  }
  
  .category-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .category-name {
    font-size: 0.9rem;
  }
  
  .category-desc {
    font-size: 0.8rem;
  }
}

/* Stats/highlight section */
.highlight-section {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  margin: 0 clamp(1rem, 3vw, 2rem);
}

.highlight-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.highlight-content h2 {
  margin-bottom: 1.5rem;
}

.highlight-content p {
  margin-bottom: 1rem;
}

.highlight-content p:last-child {
  margin-bottom: 0;
}

/* Feature cards (if needed later) */
.features {
  padding: var(--section-padding) 0;
}

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

.feature-card {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(7, 24, 53, 0.08);
}

.feature-card h3 {
  margin-bottom: 1rem;
}

.feature-card p {
  font-size: 1rem;
}

/* Icon decoration */
.icon-decoration {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  padding: 3rem 0;
  margin-top: auto;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  display: block;
}

.footer-logo img,
.footer-logo svg {
  height: 32px;
  width: auto;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand-blue);
}

.footer-address {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-style: normal;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Legal pages */
.legal-page {
  padding: var(--section-padding) 0;
}

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

.legal-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.legal-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}

.legal-header .last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-body h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
}

.legal-body h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-body p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.legal-body ul,
.legal-body ol {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  font-size: 1rem;
}

.legal-body a {
  word-break: break-word;
}

.legal-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Table of contents */
.toc {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.toc h2 {
  font-size: 1rem;
  margin-bottom: 1rem;
  margin-top: 0;
  padding-top: 0;
  color: var(--text-primary);
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 2rem;
}

.toc li {
  margin-bottom: 0.5rem;
  break-inside: avoid;
}

.toc a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.toc a:hover {
  color: var(--brand-blue);
}

/* Form styles for Do Not Sell page */
.form-page {
  padding: var(--section-padding) 0;
}

.form-container {
  max-width: 560px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.form-header .last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-intro {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.form-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 5vw, 2.5rem);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-group label .required {
  color: var(--brand-orange);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(8, 101, 245, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 2rem;
  background: var(--brand-blue);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.submit-btn:hover,
.submit-btn:focus {
  background: var(--brand-purple);
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(0);
}

.form-notice {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-blue);
}

.form-notice p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.6;
}

/* 404 page */
.error-page {
  padding: var(--section-padding) 0;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-content h1 {
  font-size: clamp(5rem, 15vw, 10rem);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1;
}

.error-content h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1rem;
}

.error-content p {
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--brand-blue);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

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

/* Responsive */
@media (max-width: 768px) {
  .toc ul {
    columns: 1;
  }
  
  .footer-links {
    gap: 1.5rem;
  }
  
  .highlight-section {
    border-radius: var(--radius-lg);
    margin: 0 1rem;
  }
}

@media (max-width: 480px) {
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print styles */
@media print {
  header, footer {
    display: none;
  }
  
  .legal-content {
    max-width: 100%;
  }
}
