/* RF — Encontre sua receita | v1.3.0 */

body.rf-router-landing .site-content {
  display: block !important;
  width: min(1240px, calc(100% - 32px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 30px 0 72px !important;
}

body.rf-router-landing #primary,
body.rf-router-landing .content-area,
body.rf-router-landing .site-main {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.rf-router-landing #right-sidebar,
body.rf-router-landing #left-sidebar,
body.rf-router-landing .widget-area,
body.rf-router-landing .entry-header,
body.rf-router-landing .entry-meta,
body.rf-router-landing .page-header,
body.rf-router-landing .post-navigation,
body.rf-router-landing .comments-area,
body.rf-router-landing .heateor_sss_sharing_container,
body.rf-router-landing .addtoany_share_save_container,
body.rf-router-landing .sd-sharing-enabled,
body.rf-router-landing .ssba,
body.rf-router-landing .sassy-social-share {
  display: none !important;
}

body.rf-router-landing .inside-article,
body.rf-router-landing article.page,
body.rf-router-landing .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.rf-router {
  --rf-green: #18794e;
  --rf-green-dark: #0f5f3c;
  --rf-green-soft: #eaf7ef;
  --rf-ink: #1f2933;
  --rf-muted: #667085;
  --rf-border: #dbe7df;
  --rf-white: #ffffff;
  --rf-shadow: 0 14px 40px rgba(20, 66, 43, 0.10);
  width: 100%;
  margin: 0 auto;
  color: var(--rf-ink);
  font-family: inherit;
}

.rf-router *,
.rf-router *::before,
.rf-router *::after {
  box-sizing: border-box;
}

.rf-router [hidden] {
  display: none !important;
}

.rf-router__hero {
  padding: clamp(30px, 4vw, 54px);
  border: 1px solid var(--rf-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 10%, rgba(83, 180, 124, 0.18), transparent 28%),
    linear-gradient(145deg, #ffffff 0%, #f2fbf5 100%);
  box-shadow: var(--rf-shadow);
  text-align: center;
}

.rf-router__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--rf-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rf-router h1,
.rf-router h2,
.rf-router h3,
.rf-router p {
  margin-top: 0;
}

.rf-router__hero h1 {
  max-width: 800px;
  margin: 0 auto 12px;
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.rf-router__hero > p {
  max-width: 720px;
  margin: 0 auto 24px;
  color: var(--rf-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.6;
}

.rf-router__search {
  max-width: 850px;
  margin: 0 auto;
}

.rf-router__searchbox {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border: 2px solid rgba(24, 121, 78, 0.20);
  border-radius: 18px;
  background: var(--rf-white);
  box-shadow: 0 10px 32px rgba(20, 66, 43, 0.08);
}

.rf-router__searchbox:focus-within {
  border-color: var(--rf-green);
  box-shadow: 0 0 0 4px rgba(24, 121, 78, 0.10);
}

.rf-router__searchbox input {
  width: 100%;
  min-width: 0;
  padding: 13px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--rf-ink);
  font: inherit;
  font-size: 1rem;
}

.rf-router__searchbox button,
.rf-router__quick button,
.rf-router__clear,
.rf-router__empty button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.rf-router__searchbox button {
  padding: 14px 24px;
  border-radius: 12px;
  background: var(--rf-green);
  color: var(--rf-white);
}

.rf-router__searchbox button:hover,
.rf-router__searchbox button:focus-visible {
  background: var(--rf-green-dark);
}

.rf-router__quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  color: var(--rf-muted);
  font-size: 0.9rem;
}

.rf-router__quick button {
  padding: 8px 12px;
  border: 1px solid var(--rf-border);
  border-radius: 999px;
  background: var(--rf-white);
  color: var(--rf-green-dark);
}

.rf-router__quick button:hover,
.rf-router__quick button:focus-visible {
  border-color: var(--rf-green);
  background: var(--rf-green-soft);
}

.rf-router__status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--rf-muted);
  text-align: center;
}

.rf-router__status.is-loading::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid var(--rf-border);
  border-top-color: var(--rf-green);
  border-radius: 50%;
  vertical-align: -2px;
  animation: rf-spin .7s linear infinite;
}

@keyframes rf-spin { to { transform: rotate(360deg); } }

.rf-router__section {
  scroll-margin-top: 24px;
  margin-top: 38px;
}

.rf-router__heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 18px;
}

.rf-router__heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
}

.rf-router__heading > p {
  max-width: 430px;
  margin-bottom: 2px;
  color: var(--rf-muted);
  text-align: right;
}

.rf-router__result-note {
  margin: 7px 0 0;
  color: var(--rf-muted);
}

.rf-router__clear {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--rf-border);
  border-radius: 999px;
  background: var(--rf-white);
  color: var(--rf-green-dark);
}

.rf-router__clear:hover,
.rf-router__clear:focus-visible {
  border-color: var(--rf-green);
  background: var(--rf-green-soft);
}

.rf-router__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.rf-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--rf-border);
  border-radius: 20px;
  background: var(--rf-white);
  box-shadow: 0 8px 24px rgba(20, 66, 43, 0.07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.rf-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--rf-shadow);
}

.rf-card__image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--rf-green-soft);
}

.rf-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.rf-card:hover .rf-card__image img {
  transform: scale(1.035);
}

.rf-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: calc(100% - 20px);
  padding: 6px 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(15, 95, 60, 0.92);
  color: #fff;
  font-size: 0.71rem;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 5px 16px rgba(15, 95, 60, 0.22);
}

.rf-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  font-size: 3rem;
}

.rf-card__body {
  padding: 16px;
}

.rf-card__category {
  display: block;
  margin-bottom: 7px;
  color: var(--rf-green);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.rf-card h3 {
  min-height: 2.8em;
  margin-bottom: 15px;
  overflow-wrap: anywhere;
  font-size: 1.04rem;
  line-height: 1.38;
}

.rf-card h3 a {
  color: var(--rf-ink);
  text-decoration: none;
}

.rf-card__button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--rf-green-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.rf-card__button:hover span {
  transform: translateX(3px);
}

.rf-card__button span {
  transition: transform .2s ease;
}

.rf-router__empty,
.rf-router__error {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--rf-border);
  border-radius: 18px;
  background: #fbfdfb;
  color: var(--rf-muted);
  text-align: center;
}

.rf-router__empty-icon {
  margin-bottom: 8px;
  font-size: 1.9rem;
}

.rf-router__empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--rf-ink);
  font-size: 1.1rem;
}

.rf-router__empty p {
  margin-bottom: 16px;
}

.rf-router__empty button {
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--rf-green-soft);
  color: var(--rf-green-dark);
}

.rf-router__help {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--rf-green-soft);
}

.rf-router__help > div:first-child {
  font-size: 1.7rem;
}

.rf-router__help strong {
  display: block;
  margin-bottom: 2px;
}

.rf-router__help p {
  margin-bottom: 0;
  color: var(--rf-muted);
}

.rf-router__all-recipes {
  display: flex;
  justify-content: center;
  margin-top: 26px;
  text-align: center;
}

.rf-router__all-recipes a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 230px;
  padding: 15px 24px;
  border: 1px solid var(--rf-green);
  border-radius: 999px;
  background: var(--rf-green);
  color: var(--rf-white);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(20, 66, 43, 0.16);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.rf-router__all-recipes a:hover,
.rf-router__all-recipes a:focus-visible {
  transform: translateY(-2px);
  background: var(--rf-green-dark);
  color: var(--rf-white);
  box-shadow: 0 14px 30px rgba(20, 66, 43, 0.22);
}

.rf-router__all-recipes span {
  transition: transform .2s ease;
}

.rf-router__all-recipes a:hover span,
.rf-router__all-recipes a:focus-visible span {
  transform: translateX(3px);
}

/* Evita links automáticos de terceiros dentro do aviso de ajuda. */
.rf-router__help a {
  display: none !important;
}

.rf-card--skeleton {
  pointer-events: none;
}

.rf-card--skeleton .rf-card__image,
.rf-skeleton-line {
  background: linear-gradient(90deg, #edf3ef 25%, #f8fbf9 50%, #edf3ef 75%);
  background-size: 200% 100%;
  animation: rf-skeleton 1.2s ease-in-out infinite;
}

.rf-skeleton-line {
  display: block;
  height: 12px;
  margin-bottom: 10px;
  border-radius: 999px;
}

.rf-skeleton-line--short { width: 34%; }
.rf-skeleton-line--medium { width: 68%; }

@keyframes rf-skeleton {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@media (max-width: 980px) {
  body.rf-router-landing .site-content {
    width: min(100% - 24px, 1240px) !important;
  }

  .rf-router__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .rf-router__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rf-router__heading {
    align-items: start;
  }
}

@media (max-width: 640px) {
  body.rf-router-landing .site-content {
    width: min(100% - 16px, 1240px) !important;
    padding-top: 16px !important;
  }

  .rf-router__hero {
    padding: 28px 16px;
    border-radius: 21px;
  }

  .rf-router__hero h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .rf-router__searchbox {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 8px 12px;
  }

  .rf-router__searchbox button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .rf-router__quick span {
    width: 100%;
  }

  .rf-router__heading,
  .rf-router__heading--results {
    display: block;
  }

  .rf-router__heading > p {
    margin-top: 8px;
    text-align: left;
  }

  .rf-router__clear {
    margin-top: 14px;
  }

  .rf-router__grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .rf-card {
    border-radius: 15px;
  }

  .rf-card__body {
    padding: 12px;
  }

  .rf-card h3 {
    min-height: 0;
    font-size: 0.94rem;
  }

  .rf-card__category {
    font-size: 0.67rem;
  }

  .rf-card__button {
    font-size: 0.82rem;
  }

  .rf-card__badge {
    top: 7px;
    left: 7px;
    max-width: calc(100% - 14px);
    padding: 5px 7px;
    font-size: 0.63rem;
  }

  .rf-router__all-recipes a {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .rf-router__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rf-card,
  .rf-card__image img,
  .rf-card__button span,
  .rf-card--skeleton .rf-card__image,
  .rf-skeleton-line {
    transition: none;
    animation: none;
  }
}
