/* style.css — legacy rules kept for views not yet redesigned (see followups).
 * Editorial design system lives in css/tokens.css + css/components.css + css/views.css.
 */

body>html>body>parsererror { display: none !important; }

/* Recipe detail — note system overlays (deferred to followups for restyle) */
.note-button-container.movable { position: fixed; }
.note-button {
  width: fit-content; height: fit-content;
  display: inline-block;
  margin: .25rem .25rem 0 .25rem;
}
.note-widget {
  float: right; display: inline-block;
  width: fit-content; height: fit-content;
  text-align: center;
  border-radius: 0.5rem;
  z-index: 10;
  background-color: #f7e859;
}
.hidden { display: none; }

/* CKEditor5 textarea minimum height */
textarea#id_content { min-height: 50vh; }

/* About pages — partially-hidden read-more (deferred to followups) */
.partially_hidden {
  height: 4rem;
  overflow-y: hidden;
  margin-bottom: 2rem;
  border-bottom: 1px solid lightgray;
  border-left: 1px solid lightgray;
  border-right: 1px solid lightgray;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  transition: all 1s; -webkit-transition: all 1s;
}
.partially_hidden:hover { height: 10rem; }
.about-image-container {
  position: relative; width: 100%; height: 100%;
}
.about-image-container:after {
  transition: all 1s; -webkit-transition: all 1s;
  display: inline-block; content: '\A';
  position: relative; width: 100%; height: 100%;
  top: -100%; left: 0; overflow: hidden;
  background-color: rgba(255, 255, 255, 0.8);
  opacity: 1;
}
.partially_hidden:hover .about-image-container:after { opacity: .4; }
.read-more-block {
  width: 100%; min-height: 2rem;
  text-decoration: none !important;
  color: auto !important;
}
.about-gif {
  width: 60%; margin: auto;
}
.about-gif img {
  border: .5rem solid lightgray;
  border-radius: .5rem;
}
.about-gif figcaption {
  text-align: center; font-style: italic;
}
.supported-domains { margin-bottom: 1rem; }

/* Tag form bits used by the offcanvas tag editor */
.tag_button { position: relative; margin: 2px; }
.tag_remove {
  color: red; position: absolute; opacity: 0.5;
  top: 0; right: 0;
}
.tag_remove:hover {
  background-color: red; color: lightgray;
  border-radius: 50%;
}
.fa-minus.button { color: red; }
.fa-plus.button { color: green; }
.button:hover {
  cursor: pointer;
  background-color: lightgray;
  border-radius: 50%;
}

/* Ingredient form / formset (used in create/edit) */
div.ingredient-form > div { display: inline-block; margin-right: 5px; }
.tags-form-set .mb-3 {
  margin-bottom: 0 !important;
  margin-left: 2rem !important;
}

/* Language menu width override */
.language-menu { min-width: 15px !important; }
.language-flag {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  border-radius: 8px;
  border: 1px solid lightgray;
}
.dropdown-toggle .language-flag { margin-bottom: 4px; }

/* Fullscreen image lightbox (recipe detail) */
#fullpage {
  display: none; position: fixed;
  z-index: 9999;
  top: 5vh; left: 5vw;
  width: 90vw; height: 90vh;
  background-size: contain;
  background-repeat: no-repeat no-repeat;
  background-position: center center;
  background-color: DimGray;
  border: 1rem solid lightgray;
  border-radius: 1rem;
}

/* Logout button — used in navbar dropdown */
.logout-button {
  text-decoration: none;
  text-transform: none;
  text-align: left;
  padding: 0;
}

/* Small helpers still referenced */
.dropdown-item i[class^=fa] { width: 2rem; }
