/* BUNGO'S KITCHEN */

.kitchen-box {
  background: linear-gradient(135deg, #DEB887, #D2B48C);
  border: 3px dashed #8B4513;
  border-radius: 15px;
  padding: 25px;
  margin-top: 30px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  position: relative;
}

.kitchen-box::before {
  content: '~ ~ ~ KITCHEN ~ ~ ~';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #DEB887;
  padding: 0 15px;
  font-size: 14px;
  color: #8B4513;
  font-weight: bold;
  letter-spacing: 2px;
}

.kitchen-title {
  color: #8B0000;
  font-size: 1.8em;
  margin: 0 0 15px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.kitchen-link {
  display: inline-block;
  margin-top: 15px;
  color: #8B0000;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1em;
}

.kitchen-link:hover {
  text-decoration: underline;
}

/* Recipe cards */

.recipes-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.recipe-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(45deg, #654321, #8B4513);
  color: white;
  text-decoration: none;
  padding: 15px;
  border: 2px solid #4A2C17;
  border-radius: 10px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.1), 0 2px 6px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  min-width: 120px;
  max-width: 160px;
  text-align: center;
  position: relative;
}

@media (hover: hover) {
  .recipe-card::after {
    content: attr(data-preview);
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFF8DC, #FFEFD5);
    color: #2F1B14;
    border: 2px solid #D2691E;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.78rem;
    font-weight: normal;
    line-height: 1.45;
    white-space: normal;
    width: 240px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    z-index: 200;
    text-shadow: none;
    pointer-events: none;
    font-style: italic;
  }

  .recipe-card:hover::after {
    display: block;
  }

  .recipe-card:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.2), 0 4px 8px rgba(0,0,0,0.4);
    background: linear-gradient(45deg, #8B4513, #A0522D);
  }
}

.recipe-icon {
  width: 35px;
  height: 35px;
  margin-bottom: 8px;
  filter: brightness(1.2);
}

/* Recipe content (rendered markdown) */

.recipe-content {
  font-size: 1.05em;
  line-height: 1.7;
  color: #2F1B14;
}

.recipe-content h1 {
  color: #8B0000;
  font-size: 2em;
  margin: 0 0 10px 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.recipe-content h2 {
  color: #654321;
  font-size: 1.4em;
  margin: 25px 0 10px 0;
  border-bottom: 2px solid #8B4513;
  padding-bottom: 4px;
}

.recipe-content p {
  margin: 0 0 15px 0;
}

.recipe-content ul,
.recipe-content ol {
  margin: 0 0 15px 1.5em;
  padding: 0;
}

.recipe-content li {
  margin-bottom: 6px;
}

/* Footnote tooltips */

sup[data-footnote] {
  cursor: help;
  position: relative;
  outline: none;
  color: #8B0000;
}

.fn-tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #FFF8DC, #FFEFD5);
  color: #2F1B14;
  border: 2px solid #D2691E;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: normal;
  line-height: 1.4;
  white-space: normal;
  width: 220px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 100;
  text-shadow: none;
  margin-bottom: 0;
  font-style: italic;
}

.fn-goto {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 0.85em;
  color: #8B4513;
  text-align: right;
}

sup[data-footnote]:hover .fn-tip,
sup[data-footnote]:focus-within .fn-tip {
  display: block;
}

/* Collated footnote block at bottom */

.recipe-content .footnote {
  margin-top: 40px;
  padding-top: 15px;
  border-top: 2px dashed #8B4513;
  font-size: 0.9em;
  color: #654321;
}

.recipe-content .footnote hr {
  display: none;
}

.recipe-content .footnote ol {
  margin-left: 1.2em;
}

.recipe-content .footnote li {
  margin-bottom: 8px;
}

.recipe-content .footnote a[rev="footnote"] {
  color: #8B4513;
  text-decoration: none;
  margin-left: 4px;
  font-size: 0.85em;
}

.recipe-content .footnote a[rev="footnote"]:hover {
  text-decoration: underline;
}
