/* ==========================================================================
   Správy Krajšie SK - Clean Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Clean, minimal color palette */
  --bg-primary: #fafafa;
  --bg-surface: #ffffff;
  --bg-accent: #f3f4f6;

  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #888888;

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eef2ff;

  --border: #e5e5e5;
  --border-strong: #d1d5db;

  /* Typography - clean system fonts */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing - more generous */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.75rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Layout */
  --container-max: 680px;
  --container-wide: 920px;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.01em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1 {
  font-size: 2rem;
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

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

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

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

small {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.container--wide {
  max-width: var(--container-wide);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) 0;
  margin-bottom: var(--space-2xl);
  animation: fadeIn 0.6s ease-out;
}

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

.site-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.site-title a {
  color: inherit;
  transition: color 0.2s ease;
}

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

/* Decorative accent line under title */
.site-title::after {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--accent);
  margin-top: 0.25rem;
  transition: width 0.3s ease;
}

.site-title:hover::after {
  width: 3rem;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  display: flex;
  gap: var(--space-xl);
}

.nav a {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Featured Article
   -------------------------------------------------------------------------- */
.featured-article {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border);
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.featured-article__label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.featured-article__label::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
}

.featured-article__title {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

.featured-article__title a {
  color: var(--text-primary);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 2px;
  background-position: 0 95%;
  background-repeat: no-repeat;
  transition: background-size 0.4s ease, color 0.3s ease;
}

.featured-article__title a:hover {
  color: var(--text-primary);
  background-size: 100% 2px;
}

.featured-article__summary {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.featured-article__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.featured-article__meta > span {
  display: flex;
  align-items: center;
}

.featured-article__more {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.featured-article__more::after {
  content: '→';
  font-size: 1.125rem;
  transition: transform 0.3s ease;
}

.featured-article__more:hover {
  color: var(--accent-hover);
}

.featured-article__more:hover::after {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.section-header {
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.section-header__title {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.section-header__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* --------------------------------------------------------------------------
   Article List
   -------------------------------------------------------------------------- */
.article-list {
  display: flex;
  flex-direction: column;
}

.article-item {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
  animation: fadeInUp 0.6s ease-out both;
}

/* Staggered animation delays */
.article-item:nth-child(1) { animation-delay: 0.25s; }
.article-item:nth-child(2) { animation-delay: 0.35s; }
.article-item:nth-child(3) { animation-delay: 0.45s; }
.article-item:nth-child(4) { animation-delay: 0.55s; }
.article-item:nth-child(5) { animation-delay: 0.65s; }
.article-item:nth-child(6) { animation-delay: 0.75s; }
.article-item:nth-child(7) { animation-delay: 0.85s; }
.article-item:nth-child(8) { animation-delay: 0.95s; }

.article-item:first-child {
  padding-top: 0;
}

.article-item:last-child {
  border-bottom: none;
}

.article-item__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  line-height: 1.4;
}

.article-item__title a {
  color: var(--text-primary);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-position: 0 98%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease;
}

.article-item__title a:hover {
  color: var(--text-primary);
  background-size: 100% 1px;
}

.article-item__summary {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.article-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.article-item__meta span {
  display: inline-flex;
  align-items: center;
}

/* Category link in meta (exclude tags which have their own styling) */
.article-item__meta a:not(.article-item__more):not(.tag) {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.article-item__meta a:not(.article-item__more):not(.tag):hover {
  color: var(--accent);
}

/* Separator dot */
.article-item__meta span + span::before {
  content: '·';
  margin-right: var(--space-md);
  color: var(--border-strong);
}

.article-item__more {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.article-item__more::before {
  content: none;
}

.article-item__more::after {
  content: '→';
  transition: transform 0.25s ease;
}

.article-item__more:hover {
  color: var(--accent-hover);
}

.article-item__more:hover::after {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Tags
   -------------------------------------------------------------------------- */
.tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tag--category {
  background: var(--accent-light);
  border-color: transparent;
  color: var(--accent);
}

.tag.tag--category:hover {
  background: var(--accent);
  color: white;
}

/* --------------------------------------------------------------------------
   Article Detail Page
   -------------------------------------------------------------------------- */
.article {
  background: var(--bg-surface);
  padding: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  border: 1px solid var(--border);
  animation: fadeInUp 0.7s ease-out 0.1s both;
}

.article__header {
  margin-bottom: var(--space-xl);
}

.article__title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.article__hero {
  margin: 0 calc(-1 * var(--space-2xl)) var(--space-xl);
}

.article__hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.article__content {
  font-size: 1.0625rem;
  line-height: 1.9;
}

.article__content p {
  margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  animation: slideIn 0.5s ease-out;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.breadcrumb__separator {
  margin: 0 0.75rem;
  color: var(--border-strong);
}

/* --------------------------------------------------------------------------
   Sources
   -------------------------------------------------------------------------- */
.sources {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.sources__title {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.sources__list {
  list-style: none;
}

.sources__item {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
}

.sources__item:last-child {
  border-bottom: none;
}

.sources__item a {
  color: var(--text-primary);
  font-weight: 500;
}

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

.sources__hostname {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.sources__feed {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Tags / Locations
   -------------------------------------------------------------------------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

/* --------------------------------------------------------------------------
   Categories Page
   -------------------------------------------------------------------------- */
.category-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.category-group {
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
  animation: fadeInUp 0.6s ease-out both;
}

.category-group:nth-child(1) { animation-delay: 0.1s; }
.category-group:nth-child(2) { animation-delay: 0.2s; }
.category-group:nth-child(3) { animation-delay: 0.3s; }
.category-group:nth-child(4) { animation-delay: 0.4s; }
.category-group:nth-child(5) { animation-delay: 0.5s; }
.category-group:nth-child(6) { animation-delay: 0.6s; }
.category-group:nth-child(7) { animation-delay: 0.7s; }
.category-group:nth-child(8) { animation-delay: 0.8s; }

.category-group:last-child {
  border-bottom: none;
}

.category-group__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.category-group__title a {
  color: var(--text-primary);
}

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

.subcategory-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  list-style: none;
}

.subcategory-list li {
  position: relative;
}

.subcategory-list a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 400;
}

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

.category-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

/* --------------------------------------------------------------------------
   Related Articles
   -------------------------------------------------------------------------- */
.related {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.related__title {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.related__list {
  list-style: none;
}

.related__item {
  padding: var(--space-sm) 0;
  padding-left: var(--space-md);
  border-left: 2px solid var(--border);
  transition: border-color 0.2s ease;
}

.related__item:hover {
  border-left-color: var(--accent);
}

.related__item a {
  color: var(--text-primary);
  font-weight: 500;
}

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

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: var(--space-3xl);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  text-align: center;
  animation: fadeIn 0.6s ease-out 1s both;
}

.site-footer__text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
}

.pagination a,
.pagination span {
  font-size: 0.875rem;
  padding: 0.5rem 0.875rem;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.pagination a {
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

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

.pagination__current {
  font-weight: 600;
  color: white;
  background: var(--accent);
  border: 1px solid var(--accent);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  :root {
    --space-lg: 1rem;
    --space-2xl: 2rem;
    --space-3xl: 3rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  /* Reduce container padding on mobile */
  .container {
    padding: 0 var(--space-md);
  }

  .site-header {
    padding: var(--space-md) 0;
    margin-bottom: var(--space-xl);
  }

  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .site-title {
    font-size: 1.125rem;
  }

  .site-title::after {
    display: none;
  }

  .nav {
    gap: var(--space-lg);
    font-size: 0.875rem;
  }

  .featured-article__title {
    font-size: 1.5rem;
  }

  .featured-article__summary {
    max-width: 100%;
    font-size: 1rem;
  }

  /* Optimize article card for mobile */
  .article {
    padding: var(--space-lg);
    border: none;
    margin-bottom: var(--space-xl);
  }

  .article__hero {
    margin: 0 calc(-1 * var(--space-lg)) var(--space-lg);
  }

  .article__title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .article__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  .article__content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .article-item__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  .article-item__meta span + span::before {
    display: none;
  }

  .article-item__more {
    margin-left: 0;
    margin-top: var(--space-xs);
  }

  /* Ensure sources section fits on mobile */
  .sources__item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  .sources__feed {
    white-space: normal;
  }

  /* Breadcrumb optimization */
  .breadcrumb {
    font-size: 0.75rem;
    word-break: break-word;
  }

  .breadcrumb__separator {
    margin: 0 0.5rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  :root {
    --space-md: 0.75rem;
    --space-lg: 0.875rem;
    --space-xl: 1.5rem;
    --space-2xl: 1.75rem;
  }

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

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

  .article__hero {
    margin: 0 calc(-1 * var(--space-md)) var(--space-md);
  }

  .article__title {
    font-size: 1.375rem;
  }

  h1 {
    font-size: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
  body {
    background: white;
    background-image: none;
  }

  .site-header,
  .site-footer,
  .pagination,
  .article-item__more,
  .featured-article__more {
    display: none;
  }

  .article {
    border: none;
    padding: 0;
  }
}
/* --------------------------------------------------------------------------
   Location Navigation
   -------------------------------------------------------------------------- */
.location-nav {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

/* Remove double border when location-nav follows featured-article */
.featured-article + .location-nav {
  border-top: none;
}

/* Add space between location-nav and following section */
.location-nav + section {
  margin-top: var(--space-2xl);
}

.location-nav__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.location-nav__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.location-nav__item {
  /* Styles handled by link */
}

.location-nav__link {
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  background: var(--bg-surface);
  transition: all 0.2s ease;
}

.location-nav__link:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.location-nav__name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.location-nav__meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Hierarchical Toggle */
.hierarchical-toggle {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--accent-light);
  border-radius: 8px;
  text-align: center;
}

.hierarchical-toggle__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hierarchical-toggle__link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Clickable Location Tags - consistent with category tags */
.tag--location {
  background: var(--accent-light);
  border-color: transparent;
  color: var(--accent);
}

.tag.tag--location:hover {
  background: var(--accent);
  color: white;
}

/* Section Header Subtitle */
.section-header__subtitle {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  text-transform: none;
  letter-spacing: normal;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .location-nav__list {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Localities Page - Continents & Countries
   -------------------------------------------------------------------------- */

/* Locality Tags */
.locality-tags {
  margin-top: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.locality-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 400;
  padding: 0.25rem 0.5rem;
  background: var(--bg-accent);
  border-radius: 4px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.locality-tag:hover {
  background: var(--accent);
  color: white;
}

/* Continents List */
.continents-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
}

/* Continent Section */
.continent-section {
  animation: fadeInUp 0.6s ease-out both;
}

.continent-section:nth-child(1) { animation-delay: 0.2s; }
.continent-section:nth-child(2) { animation-delay: 0.3s; }
.continent-section:nth-child(3) { animation-delay: 0.4s; }
.continent-section:nth-child(4) { animation-delay: 0.5s; }
.continent-section:nth-child(5) { animation-delay: 0.6s; }

.continent-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border);
}

/* Countries Grid */
.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* Country Card */
.country-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-md);
  transition: all 0.2s ease;
}

.country-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.country-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.country-card__title a {
  color: var(--text-primary);
}

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

/* Compact Subcategory List for Country Cards */
.subcategory-list.compact {
  gap: var(--space-xs) var(--space-md);
}

.subcategory-list.compact li {
  font-size: 0.875rem;
}

.subcategory-list.compact a {
  font-size: 0.875rem;
}

.more-link a {
  font-weight: 500;
  color: var(--accent);
}

/* Mobile adjustments for localities page */
@media (max-width: 768px) {
  .countries-grid {
    grid-template-columns: 1fr;
  }

  .continent-title {
    font-size: 1.125rem;
  }
}

