@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
 @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: Poppins, sans-serif;
   background-color: var(--bg-color);
  color: var(--text-color);
}

:root {
  --cd-color: #202020;
  --bg-color: #181717;
  --text-color: #ffffff;
  --accent-color: #f88d00;
  --card-color: #1a1a1a;
  --search-bg: #ffffff;
  --search-text: #000000;
  --button-bg: #f88d00;
  --button-hover: #ff7b00;
  --text-h1h4: #ff9900;
}

body.light-mode {
  --cd-color: #494848;
  --bg-color: #f8f8f8;
  --text-color: #121212;
  --accent-color: #ff9900;
  --card-color: #ffffff;
  --search-bg: #eeeeee;
  --search-text: #ffffff;
  --button-bg: #ffaa00;
  --button-hover: #ffcc66;
  --text-h1h4: #000000;
}

.banner-fundo {
  width: 100%;
  min-height: 30vh;
  background-image: url('../images/jund1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 0;
}

.banner-fundo::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5); /* escurece o fundo para contraste */
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
  padding: 60px;
  background-color: transparent;
  color: var(--text-color);
}

h2, h5 {
  color: var(--accent-color);
}

h3, h4 {
  color: var(--text-h1h4) ;
}

h3 {
  font-size: 40px; /* ou em outras unidades como rem, em, % */
}

h4 {
  font-size: 28px; /* ou em outras unidades como rem, em, % */
}


.dish {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 20px;
    gap: 18px;
    width: 20%;
    padding: 10px;
    background-color: var(--cd-color);
    border: 2px solid #ff6600;
    box-shadow: 0px 0px 12px 4px rgb(0, 0, 0);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.search-bar {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  max-width: 500px;
  padding: 12px 12px;
  border-radius: 25px;
  background-color: var(--search-bg);
  color: #000000;
  box-shadow: 5px 5px 5px #000000;
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--search-text);
  outline: none;
}

.search-bar i {
  margin-left: 20px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 60px;
}

/* Botões individuais */
.filter-buttons button {
  padding: 16px 26px;
  border: none;
  border-radius: 20px;
  background-color: var(--button-bg);
  color: var(--text-color);
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.filter-buttons button:hover {
  background-color: var(--button-hover);
}

.filter-buttons .active {
  background-color: var(--button-hover);
  font-weight: bold;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}

.grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  background-color: #1a1919;
}

#nav_logo {
    font-size: 24px;
    color: #ffffff; /* branco fixo */
    font-weight: bold;
}

.menu-container {
  position: absolute;
  top: 20px;
  right: 20px; /* move para o canto superior direito */
  z-index: 1000;
}

.menu-icon {
  font-size: 24px;
  cursor: pointer;
  color: #ffffff;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 30px;
  right: 0; /* faz o menu aparecer alinhado à direita do botão */
  background-color: var(--card-color);
  min-width: 150px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-radius: 5px;
  z-index: 1000;
  padding: 10px 0;
  text-align: left;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--text-color);
  transition: background 0.3s;
}

.dropdown-menu li a:hover {
   background-color: var(--button-hover);
}

.barra-divisoria {
  height: 4px;               /* altura fina */
  background-color: #ff6600; /* laranja */
  width: 100%;
  margin: 30px 0;            /* espaçamento vertical */
}

.theme-switch {
  margin-left: 20px;
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #333;
  border-radius: 50px;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "🌙";
  height: 26px;
  width: 26px;
  left: 4px;
  top: 3px;
  background-color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 26px;
  font-size: 16px;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #ccc;
}

input:checked + .slider:before {
  transform: translateX(28px);
  content: "🌞";
}

.menu-container {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 15px; /* espaço entre o botão e o ícone do menu */
}

#menu {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.dish-rate span {
  color: #ffffff;
}

body.light-mode .dish-rate span {
  color: #ffffff;
}

/* ====== POP-UP FAVORITOS ====== */
.popup {
  display: none; /* começa oculto */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Caixa central */
.popup-content {
  background: #1e1e1e;
  border: 2px solid #ff7f00;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  width: 350px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  animation: fadeIn 0.3s ease-in-out;
}

/* Botão fechar (X) */
.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  font-weight: bold;
  color: #ff7f00;
  cursor: pointer;
  transition: color 0.2s;
}

.popup-close:hover {
  color: #ffa733;
}

/* Título e texto */
.popup-content h2 {
  color: #ff7f00;
  margin-bottom: 10px;
}

.popup-content p {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 15px;
}

/* Botão ir para favoritos */
.popup-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #ff7f00;
  color: #000;
  font-weight: bold;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.3s;
}

.popup-btn:hover {
  background: #ffa733;
}

/* Animação */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}




