/* ShredBase Website Styles - Mobile-first, Responsive */

/* CSS Variables - Brand Colors from Flutter App */
:root {
  /* Primary Brand Colors */
  --color-trail-sand: #C6A875;
  --color-olive-shred: #4A5534;
  --color-earth-anthracite: #222421;
  --color-dirt-brown: #7A6243;
  --color-moss-light: #70855C;
  --color-rock-grey: #A6A9A1;
  
  /* Derived Colors */
  --color-surface-dark: #1A1B19;
  --color-border-grey: #2F312E;
  
  /* Semantic Colors */
  --color-primary: var(--color-olive-shred);
  --color-secondary: var(--color-dirt-brown);
  --color-tertiary: var(--color-moss-light);
  --color-background: var(--color-earth-anthracite);
  --color-surface: var(--color-surface-dark);
  --color-text-primary: #FFFFFF;
  --color-text-secondary: var(--color-rock-grey);
  --color-text-accent: var(--color-trail-sand);
  
  /* Typography */
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 16px;
  
  /* Max Widths */
  --max-width-content: 1200px;
  --max-width-text: 800px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  color: var(--color-text-accent);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 2rem;
  font-weight: var(--font-weight-extrabold);
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
}

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

a:hover {
  opacity: 0.8;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-narrow {
  width: 100%;
  max-width: var(--max-width-text);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header / Topbar */
.header {
  background-color: var(--color-surface-dark);
  border-bottom: 1px solid var(--color-border-grey);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.logo {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-accent);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.nav-link {
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-semibold);
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-text-accent);
}

.nav-link.active {
  color: var(--color-text-accent);
}

/* Mobile Menu Toggle (for small screens) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-xs);
}

/* Hero Section */
.hero {
  padding: var(--spacing-2xl) 0;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text-accent);
  margin-bottom: var(--spacing-md);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 24px;
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: 16px;
  text-align: center;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-accent);
  border: 1px solid var(--color-border-grey);
}

.btn-secondary:hover {
  background-color: var(--color-surface-dark);
  border-color: var(--color-text-accent);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Sections */
.section {
  padding: var(--spacing-2xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.feature-item {
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid var(--color-border-grey);
}

.feature-title {
  color: var(--color-text-accent);
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-sm);
}

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

/* Contact Section */
.contact {
  text-align: center;
  background-color: var(--color-surface-dark);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.contact-email {
  font-size: 1.125rem;
  color: var(--color-text-accent);
  font-weight: var(--font-weight-semibold);
}

/* Footer */
.footer {
  background-color: var(--color-surface-dark);
  border-top: 1px solid var(--color-border-grey);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-2xl);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
}

.footer-link:hover {
  color: var(--color-text-accent);
}

.footer-text {
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: var(--font-weight-light);
}

/* Legal Pages */
.legal-page {
  padding: var(--spacing-xl) 0;
  min-height: calc(100vh - 200px);
}

.legal-content {
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}

.legal-content h1 {
  margin-bottom: var(--spacing-lg);
  hyphens: auto;
  word-break: break-word;
  overflow-wrap: break-word;
}

.legal-content h2 {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.legal-content h3 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.legal-content p {
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  color: var(--color-text-primary);
}

.legal-content li {
  margin-bottom: var(--spacing-xs);
}

/* TODO Placeholder */
.todo-placeholder {
  background-color: rgba(198, 168, 117, 0.1);
  border: 2px dashed var(--color-trail-sand);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  text-align: center;
  color: var(--color-text-accent);
  font-weight: var(--font-weight-semibold);
}

.todo-placeholder::before {
  content: "⚠️ TODO: ";
  font-weight: var(--font-weight-bold);
}

/* Responsive Design */
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  
  .nav {
    gap: var(--spacing-xl);
  }
  
  .menu-toggle {
    display: none;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--spacing-xl);
  }
  
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero {
    padding: var(--spacing-2xl) 0 calc(var(--spacing-2xl) * 1.5);
  }
}

@media (max-width: 767px) {
  .menu-toggle {
    display: block;
    flex-shrink: 0;
  }
  
  .nav {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--color-surface-dark);
    border-bottom: 1px solid var(--color-border-grey);
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    margin-top: 0;
    z-index: 99;
  }
  
  .nav.active {
    display: flex !important;
  }
  
  .header {
    position: relative;
  }
  
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }
  
  .logo {
    flex-shrink: 0;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}

