/**
 * Recipe Manager
 * Frontend Styles
 */

/* =========================================================
   GENERAL
   ========================================================= */

.rm-recipes-page {
  width: 100%;
  margin-top: -10px;
}

/* =========================================================
   RECIPE LIST HEADER
   ========================================================= */

.rm-recipes-title {
  margin: 0 0 40px;

  font-size: 1.5em;

  line-height: 1.3;

  font-weight: 600;

  color: #4a4a4a;
}

/* =========================================================
   RECIPE GRID
   ========================================================= */

.rm-recipes-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  column-gap: 20px;

  row-gap: 40px;

  width: 100%;
}

/* =========================================================
   RECIPE CARD
   ========================================================= */

.rm-recipe-card {
  display: block;

  width: 100%;

  color: inherit;

  text-decoration: none;

  margin: 0;

  padding: 0;
}

.rm-recipe-card:hover {
  color: inherit;

  text-decoration: none;
}

/* =========================================================
   IMAGE
   ========================================================= */

.rm-recipe-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f5f5;
  margin: 0 0 12px;
}

.rm-card-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  margin: 0 !important;
  padding: 0 !important;
  transition: opacity 0.25s ease;
}

/* Image hover */

.rm-recipe-card:hover .rm-card-image {
  opacity: 0.9;
}

/* =========================================================
   PLACEHOLDER
   ========================================================= */

.rm-recipe-placeholder {
  width: 100%;

  height: 100%;

  display: flex;

  align-items: center;

  justify-content: center;

  background: #f5f5f5;

  color: #777;

  font-size: 14px;
}

/* =========================================================
   RECIPE NAME
   ========================================================= */

.rm-recipe-name {
  display: block;

  margin: 0;

  padding: 0;

  font-size: 15px;

  line-height: 1.5;

  font-weight: 400;

  color: #333;

  text-align: left;
}

.rm-recipe-card:hover .rm-recipe-name {
  color: #333;
}

/* =========================================================
   NO RECIPES
   ========================================================= */

.rm-no-recipes {
  padding: 40px 0;

  text-align: center;

  font-size: 15px;

  color: #777;
}

/* =========================================================
   SINGLE RECIPE
   ========================================================= */

.rm-single-recipe {
  width: 100%;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 20px;
  padding-bottom: 60px;
}

/* Back Link */

.rm-recipe-back {
  display: inline-block;
  margin-bottom: 30px;
  color: #333;
  font-size: 14px;
  text-decoration: none;
}

.rm-recipe-back:hover {
  color: #333;
  text-decoration: underline;
}

/* =========================================================
   MAIN DETAIL LAYOUT
   ========================================================= */

.rm-single-recipe-layout {
  display: block;
  width: 100%;
}

/* =========================================================
   DETAIL IMAGE
   ========================================================= */

.rm-single-recipe-image {
  position: relative;
  width: 100%;
  height: 250px;
  /* aspect-ratio: 16 / 3.5; */
  object-fit: cover;
  overflow: hidden;
  margin-bottom: 35px;
}

.rm-single-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  margin: 0 !important;
  padding: 0 !important;
}

/* =========================================================
   DETAIL CONTENT
   ========================================================= */

.rm-single-recipe-content {
  width: 100%;
}

/* =========================================================
   DETAIL TITLE
   ========================================================= */

.rm-single-recipe-title {
  margin: 0 0 25px;
  padding: 0;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 600;
  color: #333;
  text-align: center;
}

/* =========================================================
   DESCRIPTION
   ========================================================= */

.rm-recipe-description {
  margin: 0 0 40px;
}

.rm-recipe-description .rm-recipe-section-title {
  margin: 0 0 12px;
}r

/* =========================
   RECIPE TABS
========================= */

.rm-recipe-tabs {
  margin-top: 35px;
}

.rm-recipe-tab-buttons {
  display: flex;
  gap: 0;
  position: relative;
  z-index: 2;
}

.rm-recipe-tab-button {
  position: relative;
  padding: 10px 15px;
  margin: 0 2px 0 0;

  border: 1px solid #ddd;
  border-bottom: 1px solid #ddd;

  background: #f1f1f1;
  color: #777;

  font-size: 14px;
  font-weight: 600;
  cursor: pointer;

  border-radius: 0;
}

.rm-recipe-tab-button.active {
  background: #fff;
  color: #006633;

  border-top: 2px solid #006633;
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
  padding-top: 10px;
}

.rm-recipe-tab-button:hover {
  background: #fff;
}

/* =========================
   CONTENT BOX
========================= */

.rm-recipe-tab-content {
  display: none;

  border: 1px solid #ddd;
  background: #fff;

  padding: 25px;
}

.rm-recipe-tab-content.active {
  display: block;
  padding: 15px;
}

/* =========================
   TAB CONTENT
========================= */

.rm-recipe-tab-content {
  display: none;
  padding: 25px 0;
}

.rm-recipe-tab-content.active {
  display: block;
  border: 1px solid #ddd;
}

/* Content typography */
.rm-recipe-tab-content p {
  margin-top: 0;
  line-height: 1.7;
}

.rm-recipe-tab-content h3 {
  margin: 0;
  line-height: 1.6;
  font-size: 16px;
}

.rm-recipe-tab-content ul,
.rm-recipe-tab-content ol {
  padding-left: 22px;
  margin: 0;
}

.rm-recipe-tab-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {
  .rm-recipe-tab-button {
    padding: 12px 16px;
    font-size: 13px;
  }

  .rm-recipe-tab-button.active {
    padding-top: 11px;
  }

  .rm-recipe-tab-content {
    padding: 20px 0;
  }

  .rm-single-recipe {
    padding-left: 15px;
    padding-right: 15px;
  }

  .rm-recipes-title {
    text-align: center;
  }

  .rm-recipes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rm-single-recipe-title {
    font-size: 24px;
  }
}

@media (max-width: 1024px) {
  .rm-single-recipe {
    padding-left: 15px;
    padding-right: 15px;
  }
}
