@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
}

:root {
  --mantis: #7ac74f;
  --argentinian-blue: #4bb3fd;
  --ghost-white: #f7f7ff;
  --prussian-blue: #0b3954;
  --ut-orange: #ff8811;
}
/* HEADING */

#header,
.navbar-custom {
  background-color: var(--prussian-blue) !important;
}

.navbar-custom {
  background-color: var(--prussian-blue) !important;
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
  color: var(--ghost-white) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--mantis) !important;
}

.navbar-toggler {
  border-color: var(--ghost-white) !important;
}

.navbar-toggler-icon {
  filter: invert(1);
}

.logo {
  height: 40px;
}

/* HEADER */

/* MAIN */

.listHeader {
  text-align: center;
  margin-top: 4rem;
}

.listHeader h2 {
  font-weight: normal;
  font-family: "Noto Serif Bengali", serif;
  font-size: 3.5rem;
}

.listCard {
  text-decoration: none;
}

.card-body {
  background-color: var(--prussian-blue);
}

.card {
  border: none;
  overflow: hidden;
  height: 100%;
  transition: transform 0.2s ease-in-out;
  border-radius: 0 !important;
}

.card-img-top {
  height: 12.5rem;
  object-fit: cover;
  border-radius: 0 !important;
}

.card-title,
.card-text {
  color: white;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* MAIN */

/* FOOTER */

.grid {
  display: grid;
  column-gap: 64px;
  row-gap: 96px;
}

.footer {
  padding: 64px 0;
  border-top: 1px solid #eee;
  background-color: var(--prussian-blue) !important;
}

.logo-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: block;
  margin-bottom: 32px;
}

.social-links {
  list-style: none;
  display: flex;
  gap: 24px;
  padding: 0;
}

.social-icon {
  height: 24px;
  width: 24px;
}

.copyright {
  font-size: 14px;
  line-height: 1.6;
  color: #dedee6;
  margin-top: 24px;
}

.footer-heading {
  padding-top: 24px;
  font-size: 18px;
  margin-bottom: 30px;
  font-weight: 700;
  color: #f7f7ff;
}

.contacts {
  font-style: normal;
  font-size: 16px;
  line-height: 1.6;
}

.address {
  margin-bottom: 24px;
}

.footer-link:link,
.footer-link:visited {
  text-decoration: none;
  font-size: 16px;
  color: #dedee6;
  transition: all 0.3s;
}

.footer-link:hover,
.footer-link:active {
  color: #adadb3;
}

.team-col {
  margin-top: 24px;
}

.team-p {
  color: #f7f7ff;
}

/* 🌙 Dark Mode — Global Settings */
.dark-mode {
  background-color: #121212 !important;
  color: #e8eef6 !important;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.dark-mode .navbar-dark .nav-link {
  color: #e8eef6 !important;
  transition: color 0.3s ease;
}

.dark-mode .navbar-dark .nav-link:hover {
  color: #00bcd4 !important;
}

.dark-mode .navbar-dark .nav-link.active {
  color: #00bcd4 !important;
}

/* Logo */
.dark-mode .logo {
  filter: brightness(0.9) contrast(1.1);
}

/* List Header */
.dark-mode .listHeader h2 {
  color: #12afe4 !important;
}

/* Cards */
.dark-mode .card {
  background-color: #1e1e1e !important;
  color: #e8eef6 !important;
  border: 1px solid #2a2a2a !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  transition: background-color 0.4s ease, box-shadow 0.3s ease;
}

.dark-mode .card:hover {
  box-shadow: 0 0 15px rgba(0, 188, 212, 0.2);
}

.dark-mode .card-title {
  color: #00bcd4 !important;
}

.dark-mode .card-text {
  color: #c7c7c7 !important;
}

/* Links */
.dark-mode a.listCard {
  text-decoration: none;
  color: inherit;
}

/* Footer */
.dark-mode footer {
  background-color: #0f0f0f !important;
  color: #e8eef6 !important;
  border-top: 1px solid #2e2e2e;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.dark-mode footer a {
  color: #12afe4 !important;
  transition: color 0.3s ease;
}

.dark-mode footer a:hover {
  color: #76d4ff !important;
}

.dark-mode footer ion-icon {
  color: #12afe4 !important;
}

/* Text Selection */
.dark-mode ::selection {
  background-color: #00bcd4;
  color: #fff;
}

/* Smooth transition for all */
* {
  transition: background-color 0.4s ease, color 0.4s ease,
    border-color 0.3s ease;
}

/* FOOTER */

@media (max-width: 991.98px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .navbar-toggler {
    margin: 10px auto;
  }

  .navbar-collapse {
    width: 100%;
  }
}

#seeMore {
  text-decoration: none;
  font-size: 1.2rem;
}

#seeMore:hover {
  cursor: pointer;
}

#tapestryContainer {
  text-align: center;
  margin-top: 80px;
}

.cuisineContainer {
  display: block;
  text-align: center;
}

.loader {
  display: inline-block;
  width: 30px;
  height: 30px;
  position: relative;
  border: 4px solid var(--prussian-blue);
  animation: loader 2s infinite ease;
}

.loader-inner {
  vertical-align: top;
  display: inline-block;
  width: 100%;
  background-color: var(--prussian-blue);
  animation: loader-inner 2s infinite ease-in;
}

@keyframes loader {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(180deg);
  }
  50% {
    transform: rotate(180deg);
  }
  75% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes loader-inner {
  0%,
  25% {
    height: 0%;
  }
  50%,
  75% {
    height: 100%;
  }
  100% {
    height: 0%;
  }
}
/* api fetch */

/* Контейнер, где будут появляться карточки */
#tapestryContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 80px;
  justify-content: center;
}

/* Карточка каждой кухни */
.cuisineContainer {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  width: 250px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* cursor: pointer; */
}

/* При наведении */
.cuisineContainer:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Заголовок */
.cuisineContainer h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #333;
}

/* Описание */
.cuisineContainer p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

/* Кнопка "See More" */
#seeMore {
  display: inline-block;
  margin: 20px auto;
  padding: 10px 25px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background-color: #324d84;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#seeMore:hover {
  background-color: #243464;
}

/* Лоадер */
/* #loadingSpinner {
  display: none;
  margin: 20px auto;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #4caf50;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  animation: spin 1s linear infinite;
} */

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Прогресс-бар сверху */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px; /* толщина линии */
  width: 0%;
  background: linear-gradient(90deg, #28a745, #80ed99);
  z-index: 9999;
  transition: width 0.15s ease-out;
}
