* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body {
  font-family: "Istok Web", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Bakbak One", sans-serif;
}

p,
li,
span,
a,
input,
label {
  font-family: "Inria Serif", serif;
}

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

.header {
  background: white;
  padding: 0 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  position: relative;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 0;
  min-height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
  min-width: 200px;
}

.logo h1 {
  color: #333;
  font-size: 24px;
  white-space: nowrap;
}

.logo p {
  color: #666;
  font-size: 14px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.nav-links li {
  flex-shrink: 0;
}

.nav-links a {
  text-decoration: none;
  color: #666;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 20px;
  transition: 0.3s ease;
  position: relative;
  white-space: nowrap;
  min-width: 120px;
  text-align: center;
  display: block;
}

.nav-links a:hover,
.nav-links a.active {
  background: #274b9c;
  color: white;
}

.favorites-badge {
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: bold;
  display: none;
  position: absolute;
  top: -5px;
  right: 8px;
  text-align: center;
  line-height: 18px;
  border: 2px solid white;
}

.main-content {
  flex: 1 0 auto;
  width: 100%;
  min-height: calc(100vh - 140px);
}

.flash-messages {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}

.flash-message {
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.flash-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.flash-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.flash-message.info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.footer {
  background: #000000;
  color: black;
  padding: 50px 0 20px;
  margin-top: auto;
  flex-shrink: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #bdc3c7;
}

.footer-logo i {
  color: #2ecdbe;
}

.footer-description {
  color: #bdc3c7;
  line-height: 1.6;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.footer .contact-info .contact-item {
  color: #bdc3c7;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #bdc3c7;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link {
  color: #768297;
}
.social-link:hover {
  background: #2ecdbe;
  transform: translateY(-2px);
}

.footer-section h3 {
  color: #bdc3c7;
  margin-bottom: 20px;
  font-size: 18px;
  position: relative;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: #2ecdbe;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: #2ecdbe;
  transform: translateX(5px);
}

.footer-links a i {
  width: 16px;
  text-align: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #bdc3c7;
}

.contact-item i {
  color: #2ecdbe;
  width: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  color: #bdc3c7;
  font-size: 14px;
}

.footer-legal {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-legal a {
  color: #bdc3c7;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #274b9c;
}

.back-to-top {
  background: #2ecdbe;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.back-to-top:hover {
  background: #5a6fd8;
  transform: translateY(-2px);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.explorer-page {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.explorer-container {
  flex: 1;
  display: flex;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    min-width: 100px;
    padding: 8px 15px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 30px 0 15px;
  }

  .footer-content {
    padding: 0 20px;
  }

  .footer-main {
    gap: 25px;
  }

  .footer-social {
    justify-content: center;
  }

  .nav-links {
    gap: 5px;
  }

  .nav-links a {
    min-width: 80px;
    padding: 6px 12px;
    font-size: 12px;
  }
}
