/* desktop.css - scoped under .sn-briefs-root to avoid theme collisions */

.sn-briefs-root.sn-desktop-wrap {
  max-width: 1100px;
  margin: 28px auto;
  padding: 0 20px;
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #111;
  box-sizing: border-box;
}

.sn-briefs-root .sn-heading {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 18px;
}

/* viewer and stack */
.sn-desktop-viewer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  min-height: 720px;
}

.sn-desktop-stack {
  width: 380px;                /* card width target */
  height: 640px;
  position: relative;
  perspective: 1200px;
}

/* base card */
.sn-card-desktop {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(0) scale(0.98);
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 26px rgba(16, 24, 40, 0.06);
  transition: transform .28s ease, opacity .22s ease;
  opacity: 0;
  visibility: hidden;
  transform-origin: center top;
}

/* active and stacked positions */
.sn-card-desktop.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  z-index: 100;
  box-shadow: 0 18px 40px rgba(16,24,40,0.12);
}

.sn-card-desktop.pos-1 { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(18px) scale(0.986); z-index: 80; }
.sn-card-desktop.pos-2 { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(36px) scale(0.972); z-index: 60; }
.sn-card-desktop.pos-3 { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(54px) scale(0.958); z-index: 40; }

/* image area */
.sn-card-image {
  height: 240px;
  position: relative;
  background: #f3f3f3;
}
.sn-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* category pill & share button */
.sn-card-category {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: #fff;
  color: #ef4444;
  padding: 6px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(231,68,68,0.06);
}

.sn-share-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg,#ef4444,#d73737);
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(215,55,55,0.12);
}

/* body */
.sn-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}
.sn-card-date {
  color: #8f9aa3;
  font-size: 13px;
  margin-bottom: 8px;
}
.sn-card-title {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 800;
  line-height: 1.22;
  color: #b32a22; /* deep red for headlines */
}
.sn-card-title a { color: inherit; text-decoration: none; }

/* summary */
.sn-card-summary {
  list-style: none;
  padding: 0;
  margin: 6px 0 12px;
  color: #444;
}
.sn-card-summary li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 14.5px;
}
.sn-card-summary li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: 800;
}

/* footer */
.sn-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.sn-readmore {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  padding: 8px 14px;
  border-radius: 22px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(239,68,68,0.12);
}
.sn-next-hint { color: #9aa0a6; font-size: 13px; margin-left: auto; }

/* nav */
.sn-desktop-nav {
  width: 72px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}
.sn-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  cursor: pointer;
  font-weight: 700;
}

/* nice layered pink shadows under card (like screenshot) */
.sn-desktop-stack::after,
.sn-desktop-stack::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -18px;
  height: 16px;
  border-radius: 12px;
  transform-origin: center;
  z-index: -2;
}
.sn-desktop-stack::after { background: linear-gradient(180deg, rgba(239,68,68,0.06), rgba(239,68,68,0.09)); transform: translateY(10px); }
.sn-desktop-stack::before { background: linear-gradient(180deg, rgba(239,68,68,0.03), rgba(239,68,68,0.06)); transform: translateY(20px); }

/* small responsive tweaks */
@media (max-width: 1100px) {
  .sn-desktop-stack { width: 360px; height: 620px; }
  .sn-card-image { height: 220px; }
}
@media (max-width: 800px) {
  .sn-desktop-viewer { gap: 10px; }
  .sn-desktop-stack { width: 340px; height: 600px; }
}
