@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #1a1a1a;
  color: #e0e0e0;
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1 {
  margin-top: 0;
}

a {
  color: #66b3ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #88c5ff;
  text-decoration: underline;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem 0 1rem;
}

header {
  background: #000;
  color: white;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  height: 70px;
  width: auto;
}

a .logo {
  display: block;
}

header h1 {
  margin: 0;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
header h1 a {
  color: white;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  align-items: center;
}
.nav-menu a {
  color: white;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.nav-menu a:hover {
  color: #ccc;
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
}
.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
  border-radius: 1px;
}
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 1000;
  }
  .nav-menu a {
    margin: 1rem 0;
    font-size: 1.2rem;
    font-weight: 500;
  }
  .nav-menu a:hover {
    color: #66b3ff;
  }
  .nav-menu.active {
    right: 0;
  }
}
.hero {
  text-align: center;
  margin-bottom: 3rem;
}
.hero .hero-logo {
  margin-bottom: 2rem;
}
.hero .hero-logo .homepage-logo {
  width: 400px;
  height: auto;
}
@media (max-width: 768px) {
  .hero .hero-logo .homepage-logo {
    width: 300px;
  }
}
@media (max-width: 480px) {
  .hero .hero-logo .homepage-logo {
    width: 250px;
  }
}

.site-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
@media (max-width: 768px) {
  .site-stats {
    gap: 1rem;
  }
}
@media (max-width: 480px) {
  .site-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.stat-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: #2a2a2a;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 1px solid #333;
}
.stat-card:hover {
  background: #333;
  border-color: #555;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: inherit;
}
.stat-card .stat-icon {
  font-size: 1.75rem;
}
@media (max-width: 768px) {
  .stat-card .stat-icon {
    font-size: 1.5rem;
  }
}
.stat-card .stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: #66b3ff;
}
@media (max-width: 768px) {
  .stat-card .stat-number {
    font-size: 1.5rem;
  }
}
.stat-card .stat-label {
  font-size: 1rem;
  font-weight: 500;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
@media (max-width: 768px) {
  .stat-card .stat-label {
    font-size: 0.9rem;
  }
}

.about-page {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.about-page .about-logo {
  margin-bottom: 2rem;
}
.about-page .about-logo .homepage-logo {
  width: 400px;
  height: auto;
}
@media (max-width: 768px) {
  .about-page .about-logo .homepage-logo {
    width: 300px;
  }
}
@media (max-width: 480px) {
  .about-page .about-logo .homepage-logo {
    width: 250px;
  }
}
.about-page .about-content {
  text-align: left;
}
.about-page .about-content h1 {
  text-align: center;
  margin-bottom: 2rem;
}
.about-page .about-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.about-page .about-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}
.about-page .about-content ul {
  margin: 1rem 0;
  padding-left: 2rem;
}
.about-page .about-content ul li {
  margin-bottom: 0.5rem;
}
.about-page .about-content a {
  color: #66b3ff;
}
.about-page .about-content a:hover {
  color: #88c5ff;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 2rem 0;
}
@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    margin: 2rem 0;
  }
}
@media (max-width: 480px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    margin: 2rem 0;
  }
}

.grid-item {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}
.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.grid-item .image-overlay {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1rem 0 0 0;
  transform: translateY(0);
  transition: transform 0.2s ease;
}
.grid-item .image-overlay .dish-name {
  font-size: 0.85rem;
  font-weight: 500;
  display: block;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.6);
  padding: 0.25rem 0;
  backdrop-filter: blur(2px);
  text-align: center;
  width: 100%;
  margin: 0;
  letter-spacing: -0.01em;
}
.grid-item:hover img {
  transform: scale(1.05);
}
.grid-item:hover .image-overlay {
  transform: translateY(0);
}

.country-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
@media (max-width: 768px) {
  .country-cards {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
  }
}
@media (max-width: 480px) {
  .country-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

.country-card-simple {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: #2a2a2a;
  border-radius: 8px;
  text-decoration: none;
  color: #e0e0e0;
  transition: all 0.3s ease;
  border: 1px solid #333;
  text-align: center;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.country-card-simple:hover {
  background: #333;
  border-color: #555;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: #e0e0e0;
}

.cities-section, .dishes-section {
  margin: 2rem 0;
}
.cities-section h2, .dishes-section h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.city-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .city-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.city-card {
  display: block;
  background: #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 1px solid #333;
}
.city-card:hover {
  background: #333;
  border-color: #555;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: inherit;
}
.city-card .city-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.city-card .city-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.city-card:hover .city-card-image img {
  transform: scale(1.05);
}
.city-card .city-card-content {
  padding: 1.25rem;
}
.city-card .city-card-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #e0e0e0;
}
.city-card .city-card-content .dish-count {
  margin: 0;
  color: #66b3ff;
  font-size: 0.9rem;
  font-weight: 500;
}

.dish-header {
  margin-bottom: 1rem;
}
.dish-header h1 {
  margin-top: 0;
  margin-bottom: 1rem;
}
.dish-header .original-name, .dish-header .locations {
  margin: 0.25rem 0;
}

.dish-image img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .dish-image {
    margin: 0 -1rem;
  }
  .dish-image img {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }
}

.dish-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid #333;
  gap: 1rem;
}
.dish-navigation .nav-link {
  text-decoration: none;
  color: #e0e0e0;
  padding: 0.5rem 1rem;
  border: 1px solid #555;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  text-align: center;
  flex: 1;
}
.dish-navigation .nav-link:hover {
  background: #333;
  border-color: #777;
}
.dish-navigation .nav-link.prev, .dish-navigation .nav-link.next {
  font-weight: 500;
}
.dish-navigation .nav-link.all {
  background: #555;
  color: white;
  border-color: #555;
}
.dish-navigation .nav-link.all:hover {
  background: #777;
}

.wiki-icon {
  display: inline-flex;
  align-items: center;
  color: #66b3ff;
  margin-left: 0.5rem;
  transition: color 0.2s ease;
}
.wiki-icon:hover {
  color: #88c5ff;
}
.wiki-icon svg {
  width: 24px;
  height: 24px;
}