/* Shared Component Styles */
/* Header & Navigation */
.header {
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 0;
  background: var(--bg-primary);
}

.header-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.125rem;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
}

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

/* Main Content */
.main-content {
  flex: 1;
  padding: 4rem 0;
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content p {
  font-size: 0.75rem;
}

/* Page Title Styles */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* Container Patterns */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 3rem;
}

.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 3rem;
}

.archive-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Color-Coded Tags */
.tag {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid;
}

/* Smaller tags for cards and search results */
.tag-small {
  padding: 4px 10px;
  font-size: 0.8rem;
}

/* Color-coded tags */
.tag:nth-child(1) {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.tag:nth-child(2) {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

.tag:nth-child(3) {
  background: #f59e0b;
  color: white;
  border-color: #f59e0b;
}

.tag:nth-child(4) {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.tag:nth-child(5) {
  background: #8b5cf6;
  color: white;
  border-color: #8b5cf6;
}

.tag:nth-child(6) {
  background: #ec4899;
  color: white;
  border-color: #ec4899;
}

/* Dark mode adjustments */
[data-theme="dark"] .tag:nth-child(1) {
  background: #60a5fa;
  border-color: #60a5fa;
  color: #1e293b;
}

[data-theme="dark"] .tag:nth-child(2) {
  background: #34d399;
  border-color: #34d399;
  color: #1e293b;
}

[data-theme="dark"] .tag:nth-child(3) {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #1e293b;
}

[data-theme="dark"] .tag:nth-child(4) {
  background: #f87171;
  border-color: #f87171;
  color: #1e293b;
}

[data-theme="dark"] .tag:nth-child(5) {
  background: #a78bfa;
  border-color: #a78bfa;
  color: #1e293b;
}

[data-theme="dark"] .tag:nth-child(6) {
  background: #f472b6;
  border-color: #f472b6;
  color: #1e293b;
}

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

/* External Links */
.external-link {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.external-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1.5rem;
  }

  .navigation {
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 0.875rem;
  }

  .container,
  .page-container {
    padding: 0 1.5rem;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .footer-content {
    padding: 0 1.5rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.5rem;
  }
}