/* ChefSmart — tema do app no padrão da landing page
   Carregado DEPOIS do CSS original do app, sobrescreve só a aparência. */

:root {
  --color-bg: #fdf6ee;
  --color-surface: #ffffff;
  --color-surface-2: #f6ede0;
  --color-raised: #f6ede0;
  --color-line: rgb(168 67 28 / .14);
  --color-line-strong: rgb(168 67 28 / .22);
  --color-fg: #13293d;
  --color-muted: #4a5868;
  --color-faint: #7a6a5c;
  --color-accent: #f37022;
  --color-accent-2: #3e8e2e;
  --color-accent-3: #d7263d;
  --cs-navy: #13293d;
  --cs-navy-2: #0c1b29;
  --cs-creme: #fdf6ee;
}

body {
  background:
    radial-gradient(ellipse 60% 40% at 70% 0%, rgba(243, 112, 34, 0.10), transparent 60%),
    radial-gradient(ellipse 40% 30% at 100% 100%, rgba(215, 38, 61, 0.05), transparent 60%),
    var(--cs-creme) !important;
  background-attachment: fixed !important;
}

/* Títulos com a mesma fonte da landing */
h1, h2, h3 { font-family: "Oswald", sans-serif !important; letter-spacing: 0 !important; }
h1 { color: var(--cs-navy); }

/* ---------- Barra lateral escura (igual ao carrossel da landing) ---------- */
aside.fixed {
  background:
    radial-gradient(ellipse 120% 40% at 50% 110%, rgba(243, 112, 34, 0.22), transparent 65%),
    linear-gradient(180deg, var(--cs-navy) 0%, var(--cs-navy-2) 100%) !important;
  border-right: 0 !important;
  box-shadow: 8px 0 30px rgba(12, 27, 41, 0.18);
}
aside.fixed,
aside.fixed .text-fg,
aside.fixed a,
aside.fixed button:not(.bg-accent) { color: rgba(253, 246, 238, 0.86) !important; }
aside.fixed .text-muted,
aside.fixed .text-faint { color: rgba(253, 246, 238, 0.6) !important; }
aside.fixed a:hover { color: #fff !important; background: rgba(253, 246, 238, 0.08) !important; }
aside.fixed a[aria-current="page"] {
  background: linear-gradient(90deg, rgba(243, 112, 34, 0.28), rgba(243, 112, 34, 0.06)) !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 #f37022;
}
aside.fixed svg { color: #ff8a4c; }
aside.fixed img[src*="chefsmart-mark"] {
  filter: drop-shadow(0 4px 14px rgba(243, 112, 34, 0.6));
  animation: csLogoBreath 3.2s ease-in-out infinite;
}
/* Cartão "Seu plano" dentro da barra */
aside.fixed .depth,
aside.fixed div[class*="bg-surface"],
aside.fixed div[class*="border-line"]:not(aside) {
  background: rgba(253, 246, 238, 0.06) !important;
  border-color: rgba(253, 246, 238, 0.14) !important;
  --depth-edge: rgba(253, 246, 238, 0.14);
  --depth-highlight: transparent;
}
aside.fixed .text-accent { color: #ff8a4c !important; }

@keyframes csLogoBreath {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.04); }
}

/* Abre espaço para a faixa de citações no rodapé */
html.cs-tem-rodape aside.fixed { bottom: 58px !important; }
html.cs-tem-rodape .fixed.bottom-4.right-4 { bottom: calc(58px + 1rem) !important; }
@media (min-width: 640px) { html.cs-tem-rodape .fixed.bottom-4.right-4 { bottom: calc(58px + 1.5rem) !important; } }
@media (max-width: 720px) {
  html.cs-tem-rodape aside.fixed { bottom: 70px !important; }
  html.cs-tem-rodape .fixed.bottom-4.right-4 { bottom: calc(70px + 1rem) !important; }
}

/* ---------- Botões no padrão da landing ---------- */
.bg-accent {
  background: linear-gradient(135deg, #f37022, #de5f14) !important;
  box-shadow: 0 10px 26px rgba(243, 112, 34, 0.38) !important;
  border-radius: 999px !important;
  transition: transform .2s, box-shadow .2s !important;
}
.bg-accent:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(243, 112, 34, 0.5) !important; }
.bg-accent:disabled { opacity: .55; }

/* ---------- Cartões quentes ---------- */
.rounded-card, .rounded-card-sm {
  box-shadow: 0 14px 34px rgba(168, 67, 28, 0.08);
}
main .depth { --depth-edge: rgb(168 67 28 / .16); }
main a.rounded-card, main article.rounded-card { transition: transform .25s, box-shadow .25s; }
main a.rounded-card:hover, main article.rounded-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(168, 67, 28, 0.16); }

/* ---------- Fotos dos pratos ---------- */
.cs-foto { animation: csDishSway 9s ease-in-out infinite; }
@keyframes csDishSway {
  0%, 100% { transform: scale(1.04); }
  50% { transform: scale(1.09) translate(-1%, -1%); }
}
.cs-credito {
  position: absolute;
  right: 8px; bottom: 8px;
  max-width: 80%;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(12, 27, 41, 0.6);
  color: rgba(253, 246, 238, 0.85);
  font-size: 9.5px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(4px);
}
.cs-credito a { color: inherit; text-decoration: underline; }

aside.fixed a.bg-accent { color: #fff !important; }
aside.fixed a.bg-accent:hover { background: linear-gradient(135deg, #ff7a45, #f37022) !important; }

/* Itens extras do menu (Minha lista / Enviar receita) */
.cs-novo {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(62, 142, 46, 0.18);
  color: #3e8e2e;
}
aside.fixed .cs-novo { background: rgba(127, 211, 107, 0.16); color: #7fd36b; }

/* O botão flutuante original do app dá lugar ao novo logo com menu radial (fab.js) */
.fixed.bottom-4.right-4.z-\[70\] { display: none !important; }
