/* I18n and Language Specific Styles */

/* Language Switcher Styles */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.language-switcher label {
  font-size: 0.9rem;
  font-weight: 500;
}

.language-switcher select {
  padding: 0.25rem 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  font-size: 0.9rem;
}

.language-switcher select:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.1);
}

/* Language Demo Section */
.language-demo {
  background: #f8fafc;
  padding: 2rem 0;
  border-top: 1px solid #e2e8f0;
  margin-top: 2rem;
}

.language-demo h3 {
  margin-bottom: 1rem;
  color: #334155;
}

.language-demo .language-switcher {
  gap: 1rem;
}

.lang-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  text-decoration: none;
  color: #64748b;
  transition: all 0.2s ease;
}

.lang-link:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.lang-link.active {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: white;
}

/* Navigation Language Switcher */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: #334155;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: #0ea5e9;
}

/* Footer Language Links */
.footer-lang-link {
  display: block;
  margin-bottom: 0.5rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-lang-link:hover {
  color: #cbd5e1;
}

.footer-lang-link.active {
  color: #0ea5e9;
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #cbd5e1;
}

/* Language-specific body classes */
.lang-nl {
  /* Dutch-specific styles */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', "Roboto", sans-serif;
}

.lang-en {
  /* English-specific styles */  
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', "Roboto", sans-serif;
}

/* RTL Support (for future languages) */
[dir="rtl"] .nav-container {
  direction: rtl;
}

[dir="rtl"] .language-switcher {
  margin-left: 0;
  margin-right: auto;
}

/* Responsive Language Switcher */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .language-switcher {
    margin-left: 0;
  }
  
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Test Notice Styling */
.test-notice {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', "Roboto", sans-serif;
  line-height: 1.5;
}

.test-notice strong {
  color: #0c4a6e;
}

/* Basic Layout Styles for Demo */
.hero, .about, .services, .why-choose, .contact-cta {
  padding: 3rem 0;
}

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

.hero-content, .cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-actions, .cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #0ea5e9;
  color: white;
  border: 1px solid #0ea5e9;
}

.btn-primary:hover {
  background: #0284c7;
  border-color: #0284c7;
}

.btn-secondary {
  background: transparent;
  color: #0ea5e9;
  border: 1px solid #0ea5e9;
}

.btn-secondary:hover {
  background: #0ea5e9;
  color: white;
}

.services-grid, .reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card, .reason-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.values-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.values-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.values-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0ea5e9;
  font-weight: bold;
}

.contact-info {
  margin: 2rem 0;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* WEBS-31: Enhanced I18n Styles for Locale-Sensitive Content Rendering */

/* Language Direction Support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

/* Locale-specific typography adjustments */
html[lang="nl"] {
  /* Dutch-specific font preferences */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', "Roboto", 'Helvetica Neue', "Arial", sans-serif;
}

html[lang="en"] {
  /* English-specific font preferences */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
}

/* Content adaptation for different languages */
.i18n-content {
  /* Ensure proper text wrapping for different languages */
  word-wrap: break-word;
  hyphens: auto;
}

/* Dutch language adjustments */
html[lang="nl"] .i18n-content {
  /* Dutch typically needs slightly more line height */
  line-height: 1.65;
}

/* English language adjustments */
html[lang="en"] .i18n-content {
  line-height: 1.6;
}

/* Responsive text sizing based on language */
@media (max-width: 768px) {
  html[lang="nl"] h1 {
    /* Dutch words can be longer, adjust sizing */
    font-size: 2.2rem;
  }
  
  html[lang="en"] h1 {
    font-size: 2.5rem;
  }
}

/* Currency and number formatting display */
.i18n-currency,
.i18n-number {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* Date formatting display */
.i18n-date {
  white-space: nowrap;
}

/* Loading states for dynamic content */
.i18n-loading {
  opacity: 0.6;
  pointer-events: none;
}

.i18n-loading:after {
  content: "...";
  animation: i18n-dots 1.5s infinite;
}

@keyframes i18n-dots {
  0%, 20% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

/* Error states for missing translations */
.i18n-error {
  color: #dc2626;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  font-family: 'Monaco', 'Consolas', monospace;
}

.i18n-error:before {
  content: "⚠️ ";
}

/* Enhanced language switcher for WEBS-31 */
.nav-menu .language-switcher .lang-flag {
  margin-right: 0.5rem;
}

[dir="rtl"] .nav-menu .language-switcher .lang-flag {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* Locale-aware content spacing */
.hero[lang="nl"] h1 {
  /* Dutch headlines may need more breathing room */
  margin-bottom: 1.5rem;
}

.hero[lang="en"] h1 {
  margin-bottom: 1.25rem;
}
