/* ═══════════════════════════════════════════
   HomeBakes — Home Dashboard Styles
   Uses refrigerator_background_teal.png as
   single composite kitchen scene image
═══════════════════════════════════════════ */

body {
  background-image: url('/static/images/yellow_tile.png');
  background-repeat: repeat;
  background-size: 300px;
  margin: 0;
}

/* ── Greeting bar — hidden, welcome in nav instead ── */
.greeting-bar {
  display: none;
}

/* ── Dashboard wrapper ── */
.dashboard {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}

/* ── Kitchen scene container ── */
.kitchen-scene {
  position: relative;
  width: 100%;
  max-width: 660px;
  margin: 0;
  flex-shrink: 0;
}

/* ── Kitchen composite image ── */
.kitchen-img {
  width: 100%;
  display: block;
}

/* ══════════════════════════════════════════
   RECIPE BOX — sits on right counter
══════════════════════════════════════════ */
.recipe-box-counter {
  position: absolute;
  top: 38%;
  left: 77%;
  width: 15%;
  cursor: pointer;
  text-decoration: none;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(255,255,255,0.3));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.recipe-box-counter img {
  width: 100%;
  display: block;
  object-fit: contain;
}

.recipe-box-counter:hover {
  filter:
    drop-shadow(0 0 12px rgba(255,255,255,0.75))
    drop-shadow(0 4px 16px rgba(0,0,0,0.2));
  transform: translateY(-3px);
}

/* ══════════════════════════════════════════
   MAGNET CARDS — image only, no white card
   Hover glow indicates clickable
══════════════════════════════════════════ */
.magnet-row {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;        /* ← was 25%, more room for both cards */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.magnet-card {
  background: none;          /* ← no white card */
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  box-shadow: none;          /* ← no shadow on card */
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0rem;
  width: 120%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
  transition: filter 0.3s ease, transform 0.2s ease;
}

.magnet-card:nth-child(1) { transform: rotate(-2deg); }
.magnet-card:nth-child(2) { transform: rotate(1.5deg); }

.magnet-card:hover {
  filter:
    drop-shadow(0 0 10px rgba(255,255,255,0.8))
    drop-shadow(0 4px 12px rgba(0,0,0,0.2));
  transform: rotate(0deg) translateY(-4px) !important;
}

.magnet-card img {
  width: 100%;
  max-width: 120px;
  height: 120px;
  object-fit: contain;
  /* remove mix-blend-mode: multiply */
}

.magnet-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;              /* ← white so visible against teal fridge */
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  text-align: center;
}

/* ══════════════════════════════════════════
   PICTURE FRAME — on freezer section
══════════════════════════════════════════ */
.fridge-frame-wrapper {
  position: absolute;
  top: 16%;
  left: 58%;
  transform: translateX(-50%);
  width: 22%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fridge-frame {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.fridge-frame-photo {
  position: absolute;
  top: 36%;
  left: 14%;
  width: 72%;
  height: 38%;
  object-fit: cover;
  border-radius: 2px;
  z-index: 1;
}

.fridge-frame-img {
  position: relative;
  width: 100%;
  display: block;
  z-index: 2;
  mix-blend-mode: multiply;
}

/* Overlay stops before caption so it's clickable */
.fridge-frame-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 20%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.3s;
}

.fridge-frame-overlay.hovered {
  background: rgba(255,255,255,0.18);
}

.teaser-text {
  font-family: 'Satisfy', cursive;
  font-size: 0.7rem;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  text-align: center;
  padding: 0.25rem 0.6rem;
  background: rgba(0,0,0,0.4);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  white-space: nowrap;
}

.frame-file-input { display: none; }

/* ── Caption below frame ── */
.frame-caption-wrapper {
  margin-top: -2.8rem;
  text-align: center;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transform: none;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
}

.frame-caption {
  font-family: 'Satisfy', cursive;
  font-size: 0.75rem;
  color: rgb(19, 18, 18);
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  cursor: pointer;
  display: block;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  transition: opacity 0.2s;
  padding: 0.2rem 0;
  border-bottom: none;
  position: relative;
  z-index: 10;
  margin: 0 auto;
}

.frame-caption:hover { opacity: 0.75; border-bottom-color: rgba(255,255,255,0.8); }
.frame-caption::after { content: " ✏️"; font-size: 0.6rem; opacity: 0; transition: opacity 0.2s; }
.frame-caption:hover::after { opacity: 1; }

.frame-caption-input {
  display: none;
  width: 90%;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 20px;
  padding: 0.25rem 0.6rem;
  font-family: 'Satisfy', cursive;
  font-size: 0.8rem;
  color: var(--text-dark);
  text-align: center;
  outline: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .kitchen-scene { max-width: 100%; }
  .teaser-text { font-size: 0.6rem; }
  .frame-caption { font-size: 0.65rem; }
  .magnet-label { font-size: 0.5rem; }
}

/* ══════════════════════════════════════════
   FEATURE RIBBON — index page only
   Matches login.html features-strip aesthetic
   Links to main app sections
══════════════════════════════════════════ */
.index-features-strip {
  background: var(--cream);
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--teal-light);
}

.index-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  max-width: 140px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.index-feature-item:hover {
  transform: translateY(-4px);
}

.index-feature-item img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.index-feature-item span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
