/**
 * Modern Design System
 * Main stylesheet with CSS variables and base styles
 */

:root {
  /* Color Palette - Neutral & Modern */
  --color-primary: #3a3a3c;
  --color-primary-dark: #2c2c2e;
  --color-primary-light: #48484a;
  --color-accent: #7fc98e;
  --color-accent-light: #a1d1ae;

  /* Neutral Colors */
  --color-background: #fafafa;
  --color-surface: #ffffff;
  --color-surface-glass: rgba(255, 255, 255, 0.7);
  --color-surface-hover: rgba(255, 255, 255, 0.9);
  --color-border: rgba(0, 0, 0, 0.06);
  --color-text: #1c1c1e;
  --color-text-secondary: #636366;
  --color-text-muted: #8e8e93;

  /* Gradients - Liquid & Subtle */
  --gradient-liquid: linear-gradient(135deg,
    rgba(58, 58, 60, 0.03) 0%,
    rgba(127, 201, 142, 0.08) 50%,
    rgba(161, 209, 174, 0.05) 100%);
  --gradient-hero: linear-gradient(180deg,
    rgba(250, 250, 250, 1) 0%,
    rgba(245, 245, 247, 1) 100%);
  --gradient-glass: linear-gradient(135deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.1) 100%);
  --gradient-accent: linear-gradient(135deg,
    rgba(127, 201, 142, 0.12) 0%,
    rgba(161, 209, 174, 0.08) 100%);

  /* Spacing System */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Shadows - Softer, iOS-style */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.1);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.08);

  /* Border Radius - More rounded */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max-width-content: 1200px;
  --max-width-text: 65ch;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

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

a:hover {
  color: var(--color-accent);
}

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

.content {
  flex: 1;
  padding: var(--space-2xl) 0;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
}

.header-logo img {
  height: 50px;
  width: 50px;
  border-radius: var(--radius-md);
}

.header-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

/* Language Switcher */
.language-switcher {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-xs);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.flag {
  font-size: var(--text-2xl);
  cursor: pointer;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.flag:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.6);
}

.flag.active {
  background: rgba(127, 201, 142, 0.15);
  box-shadow: 0 0 0 1px rgba(127, 201, 142, 0.3);
}

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

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

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

.footer-links a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

.footer-divider {
  color: var(--color-text-muted);
}

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

/* Buttons - Glassmorphism */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-slow);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-accent);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: var(--color-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--color-surface-hover);
  border-color: rgba(127, 201, 142, 0.5);
  color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --text-4xl: 2rem;
    --text-3xl: 1.5rem;
    --text-2xl: 1.25rem;
    --header-height: 64px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .header-title {
    font-size: var(--text-base);
  }

  .header-logo img {
    height: 40px;
    width: 40px;
  }

  .header-nav {
    gap: var(--space-md);
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .footer-divider {
    display: none;
  }
}
