/* =========================================================
   Seatny - ESTILOS GENERALES
   Este archivo contiene estilos reutilizables para toda la app.
========================================================= */

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Selección de texto */
::selection {
  background-color: #ffdad2;
  color: #3c0700;
}

/* Mejora visual base */
body {
  text-rendering: optimizeLegibility;
}

/* =========================================================
   MATERIAL SYMBOLS
========================================================= */

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

.material-symbols-outlined.fill {
  font-variation-settings:
    "FILL" 1,
    "wght" 500,
    "GRAD" 0,
    "opsz" 24;
}

/* =========================================================
   EFECTOS VISUALES REUTILIZABLES
========================================================= */

.glass {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.card-gradient {
  background: linear-gradient(
    to top,
    rgba(20, 18, 17, 0.86) 0%,
    rgba(20, 18, 17, 0.34) 45%,
    rgba(20, 18, 17, 0.04) 100%
  );
}

.hero-gradient {
  background: linear-gradient(
    to top,
    rgba(252, 249, 248, 1) 0%,
    rgba(252, 249, 248, 0.55) 35%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

/* Ocultar scrollbar sin romper el scroll */
.hidden-scrollbar {
  scrollbar-width: none;
}

.hidden-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Limitar texto */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================
   NAVEGACIÓN ACTIVA
========================================================= */

.nav-link {
  height: 64px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}

.nav-link.active,
.mobile-tab.active {
  color: #a53619;
}

.nav-link.active {
  border-bottom-color: #a53619;
}

/* =========================================================
   COMPONENTES REUTILIZABLES
========================================================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #a53619;
  color: #ffffff;
  font-weight: 700;
  border-radius: 9999px;
  padding: 12px 24px;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background-color: #c64e2f;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(165, 54, 25, 0.3);
  color: #a53619;
  font-weight: 700;
  border-radius: 9999px;
  padding: 12px 24px;
  transition: all 0.25s ease;
}

.btn-outline:hover {
  background-color: #ffdad2;
}

.input-base {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #dfc0b8;
  background-color: #ffffff;
  color: #1c1b1b;
  transition: all 0.2s ease;
}

.input-base:focus {
  border-color: #a53619;
  box-shadow: 0 0 0 1px #a53619;
  outline: none;
}

/* =========================================================
   CARDS
========================================================= */

.restaurant-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.restaurant-card:hover {
  transform: translateY(-3px);
}

.restaurant-card img {
  transition: transform 0.7s ease;
}

.restaurant-card:hover img {
  transform: scale(1.05);
}

/* =========================================================
   PANEL ADMIN
========================================================= */

.admin-label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #58423c;
  margin-bottom: 8px;
}

.admin-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #dfc0b8;
  background-color: #ffffff;
  color: #1c1b1b;
  transition: all 0.2s ease;
}

.admin-input:focus {
  border-color: #a53619;
  box-shadow: 0 0 0 1px #a53619;
  outline: none;
}

.admin-card {
  background-color: #ffffff;
  border: 1px solid rgba(223, 192, 184, 0.8);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(28, 27, 27, 0.08);
}

.admin-section-title {
  font-family: "Noto Serif", serif;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  color: #1c1b1b;
}

.admin-help-text {
  color: #58423c;
  font-size: 14px;
  line-height: 1.6;
}

/* Estado seleccionado en la lista del admin */
.admin-list-item-active {
  background-color: rgba(255, 218, 210, 0.45);
}

/* Botones pequeños del admin */
.admin-small-btn {
  font-size: 12px;
  font-weight: 800;
  border-radius: 10px;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.admin-small-btn-edit {
  color: #a53619;
  border: 1px solid rgba(165, 54, 25, 0.3);
}

.admin-small-btn-edit:hover {
  background-color: #ffdad2;
}

.admin-small-btn-delete {
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.admin-small-btn-delete:hover {
  background-color: #fef2f2;
}

/* =========================================================
   PREVISUALIZACIÓN DE IMÁGENES
   La usaremos más adelante en el admin para subir/cambiar fotos.
========================================================= */

.image-preview-box {
  width: 100%;
  min-height: 180px;
  border: 1px dashed #dfc0b8;
  border-radius: 16px;
  background-color: #f6f3f2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-empty {
  color: #58423c;
  font-size: 14px;
  text-align: center;
  padding: 16px;
}

/* =========================================================
   RESPONSIVE EXTRA
========================================================= */

@media (max-width: 768px) {
  .nav-link {
    height: auto;
  }

  .admin-section-title {
    font-size: 22px;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
  }
}