/* Enzo, 2026-11-13: one shared frame for our own pages under /mietubl/ (Dashboard, Week Plan, Post again,
   Social Hub, Followers, Resize): the same left menu as the app, the Mietubl colors, buttons and effects.
   Michael: "yung buong front end dapat halos same" (as his reference screen), "font palitan mo color palitan mo.
   mga buttons palitan mo", "pati yung mga effects din mas gandahan mo". Our own code and our own logo.
   ACCENT COLOR OF THESE PAGES: the --accent line below. (The app itself: --mt-accent in brand.css.) */
:root {
  --bg: #f3f5f7; --card: #ffffff; --line: #dde2e7; --ink: #101828; --muted: #5b6676;
  --accent: #F68620; --accent-dark: #9a3412; --accent-soft: #fff1e0; --on-accent: #1a1206;
}
body { font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }

/* Buttons: round pills, dark text on orange. */
a.back, button { border-radius: 999px; transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease; }
a.back:hover, button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16, 24, 40, .10); }
button:active:not(:disabled) { transform: translateY(0) scale(.98); box-shadow: none; }
button:disabled { opacity: .55; cursor: default; }
button.main, button.update, button.chip[aria-pressed=true], button[aria-selected=true], .vid .no, .post .no { color: var(--on-accent); }
button.main:hover:not(:disabled), button.update:hover:not(:disabled) { box-shadow: 0 6px 18px rgba(246, 134, 32, .40); }
:focus-visible { outline: 3px solid rgba(246, 134, 32, .55); outline-offset: 2px; }
#done a { color: var(--accent-dark); }

/* Cards: soft shadow, and a small rise when the page opens. */
.box, .card { box-shadow: 0 1px 2px rgba(16, 24, 40, .05); transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.box.item:hover, .card:hover { box-shadow: 0 6px 18px rgba(16, 24, 40, .08); transform: translateY(-1px); }
/* Movement only, never opacity: a page opened in a hidden tab must still be readable. */
@keyframes mt-rise { from { transform: translateY(8px); } to { transform: none; } }
.wrap > * { animation: mt-rise .28s ease both; }
.list > * { animation: mt-rise .24s ease both; }

/* Left menu (built by shell.js). Wide screens only: on a small screen the page keeps its Back button. */
#mt-side { display: none; }
@media (min-width: 1000px) {
  body.mt-shell { padding-left: 252px; }
  body.mt-shell header > img, body.mt-shell a.back { display: none; }
  #mt-side {
    display: flex; flex-direction: column; position: fixed; left: 12px; top: 12px; bottom: 12px; width: 232px;
    background: var(--card); border-radius: 12px; padding: 12px 8px 14px; overflow-y: auto; z-index: 5;
    animation: none;
  }
  #mt-side .brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
  #mt-side .brand img { width: 36px; height: 36px; }
  #mt-side .group { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 12px; margin: 16px 0 4px; }
  #mt-side .group:first-of-type { margin-top: 0; }
  #mt-side a.item {
    position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 8px 12px; margin-bottom: 2px;
    border-radius: 12px; color: #4b5563; font-weight: 600; font-size: 14px; text-decoration: none;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
  }
  #mt-side a.item svg { flex: none; transition: transform .18s ease; }
  #mt-side a.item:hover { background: var(--accent-soft); color: var(--accent-dark); transform: translateX(3px); }
  #mt-side a.item:hover svg { transform: scale(1.12); }
  #mt-side a.item[aria-current=page] { background: var(--accent-soft); color: var(--accent-dark); }
  #mt-side a.item[aria-current=page]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--accent); }
  #mt-side .space { flex: 1; min-height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  a.back:hover, button:hover, .box.item:hover, .card:hover, #mt-side a.item:hover { transform: none !important; }
}
