/* Mesma família do botão Feed ativo (.rf-bottom-nav a.active) — vinho escuro, sem amarelo */
:root {
  /* Duas cores: vinho → quase preto */
  --rf-feed-like: linear-gradient(135deg, #7a1832 0%, #1a050a 100%);
  --rf-feed-like-solid: linear-gradient(145deg, #5c1228 0%, #2a0a14 55%, #0d0408 100%);
  --rf-logo-red: #ff174d;
  --rf-feed-icon: #ff9db8;
}

/* Wordmark Red — vinho que combina com o icone */
html body .rf-logo-red,
html body .rf-header .rf-logo-text .rf-logo-red,
html body.rf-desktop-ui .rf-d-red,
html body .rf-desktop-rail-logo-text .rf-d-red {
  color: var(--rf-logo-red) !important;
}

/* Rail / bottom Feed ativo — mesmo vinho da logo */
html body.rf-desktop-ui .rf-desktop-rail-item.is-active,
html body.rf-desktop-ui .rf-desktop-rail-item.is-active:hover {
  background: var(--rf-feed-like) !important;
  background-image: var(--rf-feed-like) !important;
  color: #fff !important;
  border: 1px solid rgba(122, 24, 50, 0.4);
  box-shadow: 0 6px 18px rgba(60, 10, 25, 0.35);
}

html body.rf-desktop-ui .rf-desktop-rail-item.is-active i {
  color: var(--rf-feed-icon) !important;
}

html body .rf-bottom-nav a.active,
html body.rf-redfeed-home .rf-bottom-nav a.active,
html body.rf-mobile-tab-shell .rf-bottom-nav a.active {
  background: var(--rf-feed-like) !important;
  background-image: var(--rf-feed-like) !important;
  color: #fff !important;
}

html body .rf-bottom-nav a.active i,
html body.rf-redfeed-home .rf-bottom-nav a.active i {
  color: var(--rf-feed-icon) !important;
}

/* Em alta aberto: so o fogo fica marcado — Feed/Explorar/etc. sem destaque */
html body.rf-discover-hot-on .rf-bottom-nav > a.active,
html body.rf-discover-hot-on.rf-redfeed-home .rf-bottom-nav > a.active,
html body.rf-discover-hot-on.rf-mobile-tab-shell .rf-bottom-nav > a.active {
  background: transparent !important;
  background-image: none !important;
  color: #aaaabb !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body.rf-discover-hot-on .rf-bottom-nav > a.active i,
html body.rf-discover-hot-on.rf-redfeed-home .rf-bottom-nav > a.active i {
  color: inherit !important;
}

html body .rf-home-feed-tab.is-active,
html body .rf-home-feed-tabs .rf-home-feed-tab.is-active,
html body .rf-home-feed-tabs--scroll .rf-home-feed-tab.is-active,
html body .rf-home-feed-tab[data-home-feed-tab].is-active,
html body .rf-home-feed-tab[data-home-feed-tab="paravoce"].is-active,
html[data-rf-theme="dark"] body .rf-home-feed-tabs--scroll .rf-home-feed-tab.is-active,
html:not([data-rf-theme="light"]) body .rf-home-feed-tabs--scroll .rf-home-feed-tab.is-active,
html[data-rf-native-app="1"] body .rf-home-feed-tab.is-active,
body.rf-redfeed-home .rf-home-feed-tab.is-active,
body.rf-mobile-tab-shell .rf-home-feed-tab.is-active {
  color: #fff !important;
  background: var(--rf-feed-like) !important;
  background-image: var(--rf-feed-like) !important;
  border: 1px solid rgba(122, 24, 50, 0.45) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

html[data-rf-theme="light"] body .rf-home-feed-tabs--scroll .rf-home-feed-tab.is-active {
  color: #fff !important;
  background: linear-gradient(135deg, #5c1228, #3d0f1c) !important;
  background-image: linear-gradient(135deg, #5c1228, #3d0f1c) !important;
  border-color: rgba(92, 18, 40, 0.35) !important;
  box-shadow: 0 4px 12px rgba(60, 10, 25, 0.18) !important;
}

html body .rf-reels-feed-tab.is-active,
html[data-rf-native-app="1"] body .rf-reels-feed-tab.is-active {
  color: #fff !important;
  background: var(--rf-feed-like) !important;
  background-image: var(--rf-feed-like) !important;
  border: 1px solid rgba(255, 23, 77, 0.22) !important;
  box-shadow: none !important;
}

html body .rf-bottom-nav-create,
html[data-rf-native-app="1"] body .rf-bottom-nav-create,
body.rf-redfeed-home .rf-bottom-nav-create,
body.rf-mobile-tab-shell .rf-bottom-nav-create {
  pointer-events: auto !important;
  z-index: 160 !important;
  -webkit-tap-highlight-color: transparent;
}

html body .rf-bottom-nav-create-ring,
html[data-rf-native-app="1"] body .rf-bottom-nav-create-ring,
body.rf-redfeed-home .rf-bottom-nav-create-ring,
body.rf-mobile-tab-shell .rf-bottom-nav-create-ring {
  background: var(--rf-feed-like-solid) !important;
  background-image: var(--rf-feed-like-solid) !important;
  box-shadow: 0 10px 26px rgba(60, 10, 25, 0.45) !important;
  pointer-events: none;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease, filter 0.18s ease;
}

/* Feedback ao tocar Criar */
html body .rf-bottom-nav-create.is-rf-create-tap .rf-bottom-nav-create-ring,
html body .rf-bottom-nav-create:active .rf-bottom-nav-create-ring {
  transform: scale(0.88);
  filter: brightness(1.25);
  box-shadow:
    0 0 0 4px rgba(122, 24, 50, 0.45),
    0 12px 28px rgba(60, 10, 25, 0.55) !important;
}

@keyframes rfCreateTapBurst {
  0% {
    transform: scale(0.86);
    box-shadow: 0 0 0 0 rgba(122, 24, 50, 0.55);
    filter: brightness(1.35);
  }
  55% {
    transform: scale(1.08);
    box-shadow: 0 0 0 10px rgba(122, 24, 50, 0);
    filter: brightness(1.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 10px 26px rgba(60, 10, 25, 0.45);
    filter: brightness(1);
  }
}

html body .rf-bottom-nav-create.is-rf-create-tap .rf-bottom-nav-create-ring {
  animation: rfCreateTapBurst 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

html body .rf-bottom-nav-avatar,
html[data-rf-native-app="1"] body .rf-bottom-nav-avatar {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex-shrink: 0;
}

/* Em Alta — aura de fogo giratória ao redor do botão */
html body .rf-bottom-nav,
html[data-rf-native-app="1"] body .rf-bottom-nav,
body.rf-redfeed-home .rf-bottom-nav,
body.rf-mobile-tab-shell .rf-bottom-nav {
  overflow: visible !important;
}

html body .rf-bottom-nav-discover,
html[data-rf-native-app="1"] body .rf-bottom-nav-discover,
body.rf-redfeed-home .rf-bottom-nav-discover,
body.rf-mobile-tab-shell .rf-bottom-nav-discover {
  overflow: visible !important;
}

html body .rf-bottom-nav-discover-ring,
html[data-rf-native-app="1"] body .rf-bottom-nav-discover-ring,
body.rf-redfeed-home .rf-bottom-nav-discover-ring,
body.rf-mobile-tab-shell .rf-bottom-nav-discover-ring {
  position: relative !important;
  overflow: visible !important;
  isolation: isolate;
}

html body .rf-bottom-nav-discover-ring > i {
  position: relative;
  z-index: 2;
}

/* Aura de fogo: so aparece com Em Alta ativo */
html body .rf-bottom-nav-discover-ring::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transform: rotate(0deg);
  background: conic-gradient(
    from 0deg,
    #7f1d1d 0deg,
    #ea580c 50deg,
    #fbbf24 100deg,
    #ef4444 155deg,
    #9a3412 205deg,
    #f97316 260deg,
    #fde047 310deg,
    #7f1d1d 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.4px), #000 calc(100% - 2.6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3.4px), #000 calc(100% - 2.6px));
  box-shadow:
    inset 0 0 5px rgba(255, 237, 168, 0.2),
    0 0 10px rgba(249, 115, 22, 0.35);
  transition: opacity 0.35s ease;
  will-change: transform, opacity;
}

html body .rf-bottom-nav-discover.is-rf-discover-on .rf-bottom-nav-discover-ring,
html body.rf-discover-hot-on .rf-bottom-nav-discover-ring {
  box-shadow:
    0 0 12px rgba(251, 146, 60, 0.55),
    0 0 20px rgba(239, 68, 68, 0.28),
    0 0 0 2px rgba(255, 140, 60, 0.32),
    0 6px 16px rgba(0, 0, 0, 0.45) !important;
}

html body .rf-bottom-nav-discover.is-rf-discover-on .rf-bottom-nav-discover-ring::before,
html body.rf-discover-hot-on .rf-bottom-nav-discover-ring::before {
  opacity: 1;
  animation: rfDiscoverFireSpin 7.5s linear infinite;
}

@keyframes rfDiscoverFireSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .rf-bottom-nav-discover.is-rf-discover-on .rf-bottom-nav-discover-ring::before,
  html body.rf-discover-hot-on .rf-bottom-nav-discover-ring::before {
    animation: none !important;
    opacity: 0.85;
  }
}

/* Desktop Em Alta — destaque quando ativo */
html body.rf-desktop-ui #rfDesktopReelsLink.is-rf-discover-on,
html body.rf-desktop-ui #rfDesktopReelsLink.is-rf-discover-on:hover {
  background: linear-gradient(135deg, #c2410c 0%, #7a1832 55%, #1a050a 100%) !important;
  background-image: linear-gradient(135deg, #c2410c 0%, #7a1832 55%, #1a050a 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(249, 115, 22, 0.4);
  box-shadow: 0 6px 18px rgba(120, 40, 10, 0.35);
}
html body.rf-desktop-ui #rfDesktopReelsLink.is-rf-discover-on i {
  color: #ffb070 !important;
}

html body #rfGlobalProfileNav {
  position: relative;
  z-index: 2;
}
