/* =====================================================================
   POINT OF VIEW — Sunset card edges  (load AFTER pov.css)
   Loaded by layouts/app.blade.php only (user pages). Not on the auth or admin layouts.

   INTENSITY: change --pov-edge-opacity below (0.45 soft · 0.7 medium · 1 strong).
   The ring is a ::before (::after on .pov-stat-tile, whose ::before is its colour bar)
   masked to a thin band inside the card's padding edge, so overflow:hidden cards keep it.
   ===================================================================== */
/* ---- 1. tokens ---- */
:root{
  --pov-edge-opacity: .7;          /* 0.45 soft · 0.7 medium · 1 strong */
  --pov-edge-opacity-hover: 1;
  --pov-edge-width: 1.4px;
  --pov-sunset-edge: linear-gradient(135deg, #ffc27d 0%, #ff8a4c 28%, #ff6b35 52%, #e8461c 76%, rgba(232,70,28,.22) 100%);
  --pov-sunset-glow: 0 14px 34px -18px rgba(255,107,53,.55);
}

/* ---- 2. gradient edge on every card ----
   The 11 original card classes + the other real cards found on the user pages:
   .pov-review-full (Reviews page), .pov-thread (Discussions list), .pov-comments (thread comments,
   Notifications list), .pov-composer (comment box), .pov-toolbar (filter bars on Explore / Reviews /
   Discussions / Watchlist), .pov-ep-hub (episode hub), .pov-title-hero (Title page header card),
   .pov-settings-nav (Settings side nav). */
.pov-card,
.pov-title-card,
.pov-review,
.pov-topic,
.pov-widget,
.pov-settings-card,
.pov-stat-tile,
.pov-profile-item,
.pov-spotlight,
.pov-thread-main,
.pov-profile-head,
.pov-review-full,
.pov-thread,
.pov-comments,
.pov-composer,
.pov-toolbar,
.pov-ep-hub,
.pov-title-hero,
.pov-settings-nav,
.pov-nav__inner {
  border-color: transparent;           /* the old faint blue border is replaced by the sunset ring */
  box-shadow: var(--pov-sunset-glow);
}
/* containing block for the ring (not .pov-settings-nav: it is position:sticky, which already is one) */
.pov-card,
.pov-title-card,
.pov-review,
.pov-topic,
.pov-widget,
.pov-settings-card,
.pov-stat-tile,
.pov-profile-item,
.pov-spotlight,
.pov-thread-main,
.pov-profile-head,
.pov-review-full,
.pov-thread,
.pov-comments,
.pov-composer,
.pov-toolbar,
.pov-ep-hub,
.pov-title-hero,
.pov-nav__inner {
  position: relative;
}
.pov-card::before,
.pov-title-card::before,
.pov-review::before,
.pov-topic::before,
.pov-widget::before,
.pov-settings-card::before,
.pov-stat-tile::after,                 /* ::before is the tile's coloured left bar (pov.css) */
.pov-profile-item::before,
.pov-spotlight::before,
.pov-thread-main::before,
.pov-profile-head::before,
.pov-review-full::before,
.pov-thread::before,
.pov-comments::before,
.pov-composer::before,
.pov-toolbar::before,
.pov-ep-hub::before,
.pov-title-hero::before,
.pov-settings-nav::before,
.pov-nav__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: var(--pov-edge-width);
  border-radius: inherit;
  background: var(--pov-sunset-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: var(--pov-edge-opacity);
  pointer-events: none;
  transition: opacity .26s ease;
}
/* Cards with absolutely positioned layers inside (e.g. .pov-title-hero__glow): keep the ring on top.
   All four are their own stacking context (backdrop-filter), so this z-index stays inside the card. */
.pov-spotlight::before,
.pov-profile-head::before,
.pov-ep-hub::before,
.pov-title-hero::before { z-index: 2; }

.pov-card:hover::before,
.pov-title-card:hover::before,
.pov-review:hover::before,
.pov-topic:hover::before,
.pov-widget:hover::before,
.pov-settings-card:hover::before,
.pov-stat-tile:hover::after,
.pov-profile-item:hover::before,
.pov-spotlight:hover::before,
.pov-thread-main:hover::before,
.pov-profile-head:hover::before,
.pov-review-full:hover::before,
.pov-thread:hover::before,
.pov-comments:hover::before,
.pov-composer:hover::before,
.pov-toolbar:hover::before,
.pov-ep-hub:hover::before,
.pov-title-hero:hover::before,
.pov-settings-nav:hover::before,
.pov-nav__inner:hover::before { opacity: var(--pov-edge-opacity-hover); }
.pov-card:hover,
.pov-title-card:hover,
.pov-review:hover,
.pov-topic:hover,
.pov-widget:hover,
.pov-settings-card:hover,
.pov-stat-tile:hover,
.pov-profile-item:hover,
.pov-spotlight:hover,
.pov-thread-main:hover,
.pov-profile-head:hover,
.pov-review-full:hover,
.pov-thread:hover,
.pov-comments:hover,
.pov-composer:hover,
.pov-toolbar:hover,
.pov-ep-hub:hover,
.pov-title-hero:hover,
.pov-settings-nav:hover,
.pov-nav__inner:hover { border-color: transparent; }   /* beat existing :hover border-color rules */
.pov-card--hover:hover { border-color: transparent; box-shadow: 0 18px 40px -16px rgba(255,107,53,.6); }

/* State borders from pov.css stay visible on hover too (otherwise the rule above would hide them) */
.pov-stat-tile.is-active:hover { border-color: color-mix(in srgb, var(--tile) 60%, transparent); }  /* selected watchlist filter */
.pov-review-full:target:hover { border-color: var(--pov-accent-ring); }                             /* review opened from a link */

/* danger card keeps a red edge, not orange */
.pov-settings-card--danger::before { background: linear-gradient(135deg, #ff9db0, #ff5c7a 50%, rgba(255,92,122,.2)); }
.pov-settings-card--danger { box-shadow: 0 14px 34px -18px rgba(255,92,122,.5); }   /* red glow too, not the orange one */

/* ---- 3. OPTIONAL: brighten (off by default; enable with <body class="pov pov-bright">) ---- */
body.pov-bright{
  --pov-border: rgba(160,178,230,.22);
  --pov-text-muted: #b9c2de;
  --pov-text-dim: #8e9abd;
}
body.pov-bright .pov-bgm { --bg-overlay-opacity: .8; --bg-poster-brightness: .85; }
body.pov-bright .pov-card,
body.pov-bright .pov-title-card,
body.pov-bright .pov-review,
body.pov-bright .pov-topic {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.028));
}

/* ---- 4. Floating Navbar Card with Sunset Edge ---- */
.pov-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1030;
  height: auto;
  min-height: var(--pov-nav-h, 72px);
  display: flex;
  align-items: center;
  padding: 0.65rem 0;
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  pointer-events: none;
}
.pov-nav__inner {
  pointer-events: auto;
  position: relative;
  border-radius: var(--pov-r-xl, 18px);
  background: rgba(13, 17, 26, 0.85);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  padding: 0.5rem 1.25rem;
  box-shadow: var(--pov-sunset-glow);
  transition: background-color var(--pov-dur) var(--pov-ease),
              box-shadow var(--pov-dur) var(--pov-ease);
}
.pov-nav.is-scrolled .pov-nav__inner {
  background: rgba(10, 13, 20, 0.94);
  box-shadow: 0 16px 36px -14px rgba(255, 107, 53, 0.6), 0 10px 24px -10px rgba(0, 0, 0, 0.9);
}
