/* Recommendation page header and helpers. Base card/grid/button styles are from catalogue/styles.css */
.page-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.query-line {
  color: #666;
}

.search-bar {
  display: flex;
  gap: 8px;
}

.search-bar input {
  min-width: 320px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  color: #222;
}

.loading, .empty, .error { 
  text-align: center; 
  padding: 20px; 
  color: #555; 
}

/* Queried image hero */
.query-hero {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  align-items: start;
  justify-items: center; /* center children horizontally */
  margin: 8px 0 6px;
  row-gap: 6px;
}

#queryImage {
  position: relative;
  border: 8px solid transparent;
  border-radius: 12px;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(45deg, #ffd700, #ff8c00, #ffd700, #ffb347) border-box;
  animation: glowPulse 2s ease-in-out infinite alternate;
  box-shadow: 
    0 0 30px rgba(255, 215, 0, 0.6),
    0 0 60px rgba(255, 140, 0, 0.3),
    0 6px 20px rgba(0, 0, 0, 0.15);
  transform: scale(1);
  transition: all 0.3s ease;
}


/*#queryImage:hover {*/
/*  transform: scale(1.05);*/
/*  box-shadow: */
/*    0 0 45px rgba(255, 215, 0, 0.8),*/
/*    0 0 90px rgba(255, 140, 0, 0.4),*/
/*    0 8px 30px rgba(0, 0, 0, 0.2);*/
/*}*/

.query-overlay-text {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.4);
  color: #ffd700;
  padding: 4px 8px;
  border-radius: 6px;
  /*font-family: 'Impact','Comic Neue', cursive;*/
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 215, 0, 0.3);
  z-index: 10;
  pointer-events: none;
}

@keyframes glowPulse {
  0% {
    box-shadow: 
      0 0 30px rgba(255, 215, 0, 0.6),
      0 0 60px rgba(255, 140, 0, 0.3),
      0 6px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #ffd700, #ff8c00, #ffd700, #ffb347) border-box;
  }
  100% {
    box-shadow: 
      0 0 50px rgba(255, 215, 0, 0.9),
      0 0 100px rgba(255, 140, 0, 0.5),
      0 8px 25px rgba(0, 0, 0, 0.2);
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #ffb347, #ffd700, #ff8c00, #ffd700) border-box;
  }
}

.query-hero img {
  width: 150px; /* smaller than grid cards */
  height: 150px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  object-fit: cover;
  background: white;
}

.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  margin: 0;
  text-align: center;
}

.divider {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin: 6px 0 6px;
}

.query-meme-card .recommend-btn, .query-meme-card .download-btn{
  display: none !important;
}