/* ============================================
   VIEW - Adaptado al estilo de main.css
   Estética macOS/Apple: Glass, blur, bordes suaves
   Vista de listado de proyectos del repositorio
   ============================================ */

.thumbnail h5 {
  text-align: center;
  font-weight: 600;
  color: var(--text-main, #1d1d1f);
}

/* ----------------------------------------
   TARJETAS DE PROYECTO
   ---------------------------------------- */
.liz-project {
  position: relative;
  text-align: center;
  cursor: pointer;
  flex-grow: 1;
  border-radius: 12px;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.liz-project-img {
  width: 250px;
  text-align: center;
  vertical-align: middle;
  font-size: 1em;
  text-transform: uppercase;
  line-height: 248px;
  position: relative;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.liz-project-desc {
  display: none;
}

/* Hover: fondo sutil azul Apple y ligera elevación */
.liz-project:hover {
  background-color: rgba(0, 122, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.liz-project-title {
  overflow-wrap: anywhere;
  font-weight: 500;
  color: var(--text-main, #1d1d1f);
}

.liz-project-title ~ p {
  text-align: center;
  margin: 0;
  color: #86868b;
  font-size: 0.9em;
}

img {    
    border-radius: 14px;
    width: 100%;
    height: auto;
}

/* ----------------------------------------
   GRID DE PROYECTOS
   ---------------------------------------- */
.liz-repository-project-list {
  display: grid;
  list-style: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.liz-repository-project-item {
  display: inline-block;
}

/* Tarjeta individual: glass sutil coherente con el sistema */
.liz-repository-project-item .thumbnail {
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.liz-repository-project-item .thumbnail:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 122, 255, 0.2);
}

/* ----------------------------------------
   CABECERA Y BÚSQUEDA
   ---------------------------------------- */
#headermenu .input-prepend {
  margin: 0;
}

#auth {
  text-align: right;
}

#search {
  display: inline-block;
  width: 50%;
  position: relative;
  align-self: center;
  top: 0%;
  z-index: 1;
  min-width: 210px
}

#toggle-search {
  font-weight: bold;
  font-family: serif;
  color: var(--text-main, #1d1d1f);
  transition: color 0.2s ease;
}

#toggle-search:hover {
  color: var(--accent, #007AFF);
}

/* Panel de keywords con glass coherente */
#search-project-keywords {
  position: relative;
  top: -54%;
  left: -10px;
  align-self: center;
  /*background: var(--glass-bg, rgba(255, 255, 255, 0.92));*/
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.5));
  border-radius: 50px;
  box-shadow: var(--shadow, 0 10px 30px rgba(0, 0, 0, 0.1));
  padding: 6px;
  z-index: -1;
  width: 103%;
  height: 50px;
  min-width: 210px
}

#search-project-result .project-keyword,
#search-project-keywords-selected .remove-keyword {
  cursor: pointer;
}

/* Keyword seleccionada: verde manzana → verde Apple */
#search-project-keywords-selected .project-keyword,
.project-keyword:hover {
  background-color: #34C759;
  color: white;
  transition: background-color 0.15s ease;
}

/* Botón de eliminar keyword */
#search-project-keywords-selected .remove-keyword {
  margin-left: 10px;
  font-size: smaller;
  border: rgba(255, 255, 255, 0.6) 1px solid;
  padding: 0 4px 1px;
  border-radius: 4px;
  transition: background-color 0.15s ease;
}

#search-project-keywords-selected .remove-keyword:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Keyword en estado normal */
.project-keyword {
  background-color: rgba(0, 0, 0, 0.08);
  color: var(--text-main, #1d1d1f);
  padding: 0 6px;
  border-radius: 6px;
  margin-right: 5px;
  display: inline-block;
  font-size: 0.9em;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.project-keyword.hide {
  display: none;
}

.project-keyword .highlight {
  font-weight: bold;
  font-size: 1.1em;
  color: var(--accent, #007AFF);
}

/* ----------------------------------------
   MEDIA QUERIES (sin cambios funcionales)
   ---------------------------------------- */
@media (width <= 767px) {
  .liz-repository-project-list {
    grid-template-columns: 1fr;
  }
}

@media (height <= 500px) {
  .modal.fade.in {
    top: 30px;
  }

  .modal-body {
    max-height: 200px;
  }
}

@media (height <= 350px) {
  .modal.fade.in {
    top: 10px;
  }

  .modal-body {
    max-height: 150px;
  }
}
