/**
 * Gomicale - Support Page Stylesheet
 * Color palette matches the React Native app
 */

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  /* Primary Colors (from app) */
  --primary: #45B7A0;
  --primary-dark: #3A9B87;
  --primary-light: #6FCDB8;
  --primary-bg: rgba(69, 183, 160, 0.08);

  /* Secondary Colors */
  --secondary: #FF6B35;
  --secondary-dark: #E65A2A;
  --secondary-light: #FF8555;

  /* Garbage Type Colors */
  --garbage-burnable: #FF6B35;
  --garbage-non-burnable: #6C757D;
  --garbage-plastic: #4ECDC4;
  --garbage-recyclable: #45B7A0;
  --garbage-paper: #8B5FBF;
  --garbage-bulky: #D4A373;
  --garbage-hazardous: #E63946;

  /* Background & Surface */
  --bg: #F8F9FA;
  --bg-white: #FFFFFF;
  --bg-dark: #121212;

  /* Text */
  --text: #212529;
  --text-secondary: #6C757D;
  --text-light: #ADB5BD;
  --text-inverse: #FFFFFF;

  /* Borders & Dividers */
  --border: #DEE2E6;
  --divider: #E9ECEF;

  /* Status */
  --success: #28A745;
  --warning: #FFC107;
  --error: #DC3545;
  --info: #17A2B8;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);

  /* Spacing (8px grid) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-xxxl: 64px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: 800px;
}

/* ============================================
   Header
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.header__logo svg {
  width: 32px;
  height: 32px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header__nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.header__nav-link:hover {
  color: var(--primary);
  background: var(--primary-bg);
}

.header__lang {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.header__lang:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: var(--space-xxxl) 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg) 100%);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--primary-bg);
  border: 1px solid rgba(69, 183, 160, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: var(--space-lg);
}

.hero__badge svg {
  width: 16px;
  height: 16px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-md);
}

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

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__app-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-xl);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__app-icon svg {
  width: 64px;
  height: 64px;
  color: var(--text-inverse);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn--primary {
  background: var(--primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 14px rgba(69, 183, 160, 0.35);
}

.btn--primary:hover {
  background: var(--primary-dark);
  color: var(--text-inverse);
  box-shadow: 0 6px 20px rgba(69, 183, 160, 0.45);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--bg-white);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--sm {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.875rem;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: var(--space-xxxl) 0;
}

.section--alt {
  background: var(--bg-white);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-xxl);
}

.section__label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
}

.section__desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   Feature Cards
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card__icon--home {
  background: rgba(69, 183, 160, 0.12);
  color: var(--primary);
}

.feature-card__icon--schedule {
  background: rgba(255, 107, 53, 0.12);
  color: var(--secondary);
}

.feature-card__icon--dictionary {
  background: rgba(139, 95, 191, 0.12);
  color: var(--garbage-paper);
}

.feature-card__icon--settings {
  background: rgba(23, 162, 184, 0.12);
  color: var(--info);
}

.feature-card__icon--notification {
  background: rgba(255, 193, 7, 0.12);
  color: var(--warning);
}

.feature-card__icon--search {
  background: rgba(78, 205, 196, 0.12);
  color: var(--garbage-plastic);
}

.feature-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.feature-card__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   Garbage Type Tags
   ============================================ */
.garbage-types {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-lg);
}

.garbage-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-inverse);
}

.garbage-tag--burnable { background: var(--garbage-burnable); }
.garbage-tag--non-burnable { background: var(--garbage-non-burnable); }
.garbage-tag--plastic { background: var(--garbage-plastic); }
.garbage-tag--recyclable { background: var(--garbage-recyclable); }
.garbage-tag--paper { background: var(--garbage-paper); }
.garbage-tag--bulky { background: var(--garbage-bulky); }
.garbage-tag--hazardous { background: var(--garbage-hazardous); }

/* ============================================
   Screenshots / Mockup
   ============================================ */
.screenshots {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.screenshot {
  width: 220px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.screenshot:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.screenshot__header {
  padding: var(--space-md);
  background: var(--primary);
  color: var(--text-inverse);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.screenshot__body {
  padding: var(--space-md);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.screenshot__line {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--divider);
}

.screenshot__line--short { width: 60%; }
.screenshot__line--medium { width: 80%; }
.screenshot__line--long { width: 100%; }

.screenshot__card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  margin-top: var(--space-xs);
}

.screenshot__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: var(--space-xs);
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--text-light);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: var(--space-lg);
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   Contact / CTA
   ============================================ */
.cta {
  text-align: center;
  padding: var(--space-xxxl) 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-inverse);
}

.cta__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.cta__desc {
  font-size: 1.0625rem;
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn--secondary {
  background: var(--bg-white);
  color: var(--primary-dark);
  border: none;
}

.cta .btn--secondary:hover {
  background: var(--bg);
  color: var(--primary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: var(--space-xxl) 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.footer__logo svg {
  width: 28px;
  height: 28px;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer__link:hover {
  color: var(--primary);
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* ============================================
   Policy Pages
   ============================================ */
.policy {
  padding: var(--space-xxxl) 0;
}

.policy__header {
  margin-bottom: var(--space-xxl);
}

.policy__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.policy__date {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.policy__content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-top: var(--space-xxl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--primary-bg);
}

.policy__content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.policy__content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.policy__content ul {
  list-style: disc;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.policy__content ul li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xs);
}

/* ============================================
   Language Selector Dropdown
   ============================================ */
.lang-selector {
  position: relative;
}

.lang-selector__current {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  background: transparent;
  transition: all var(--transition-fast);
}

.lang-selector__current:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.lang-selector__current svg {
  width: 14px;
  height: 14px;
}

.lang-selector__dropdown {
  position: absolute;
  top: calc(100% + var(--space-xs));
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
  z-index: 200;
}

.lang-selector:hover .lang-selector__dropdown,
.lang-selector.active .lang-selector__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-selector__option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.lang-selector__option:first-child {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.lang-selector__option:last-child {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.lang-selector__option:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.lang-selector__option.active {
  color: var(--primary);
  font-weight: 600;
}

/* ============================================
   Mobile Menu Toggle
   ============================================ */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--text);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .header__nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero {
    padding: var(--space-xxl) 0;
  }

  .hero__app-icon {
    width: 96px;
    height: 96px;
  }

  .hero__app-icon svg {
    width: 48px;
    height: 48px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .section {
    padding: var(--space-xxl) 0;
  }

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

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

  .screenshot {
    width: 100%;
    max-width: 280px;
  }

  .footer__links {
    flex-direction: column;
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .feature-card {
    padding: var(--space-lg);
  }
}

/* ============================================
   Print
   ============================================ */
@media print {
  .header,
  .cta,
  .hero__actions {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}
