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

:root {
  --primary-color: #2c3e50;
  --secondary-color: #34495e;
  --accent-color: #3498db;
  --text-color: #333;
  --text-light: #666;
  --border-color: #ddd;
  --bg-color: #fff;
  --bg-alt: #f8f9fa;
  --max-width: 1200px;
  --spacing: 1.5rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
}

/* Header */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 0 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
  margin-bottom: 1.5rem;
}

.site-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.site-title a {
  color: white;
  text-decoration: none;
}

.site-title a:hover {
  color: #ecf0f1;
  text-decoration: none;
}

.site-subtitle {
  font-size: 1.1rem;
  color: #ecf0f1;
  font-weight: 300;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
}

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

.nav-menu a {
  color: white;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  border-bottom-color: var(--accent-color);
  text-decoration: none;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.lang-switcher a {
  color: rgba(255,255,255,0.8);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-switcher a:hover {
  background-color: rgba(255,255,255,0.1);
  color: white;
  text-decoration: none;
}

.lang-switcher a.active {
  background-color: var(--accent-color);
  color: white;
  font-weight: 600;
}

.lang-switcher .separator {
  color: rgba(255,255,255,0.5);
}

/* Main Content */
main {
  padding: 3rem 0;
  min-height: 60vh;
}

/* Homepage specific */
.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.hero h2 {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.links-section {
  margin: 3rem 0;
}

.links-section h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.link-card {
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.link-card h4 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.link-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.link-card a {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Footer */
footer {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

footer p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

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

.footer-links .separator {
  color: var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
  .site-title {
    font-size: 1.5rem;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .lang-switcher {
    margin-top: 0.5rem;
  }

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