/* =========================================================
   RudeHeart — SKN token friendly
   + [myrudehearts] grid styling (SKN integrated)
========================================================= */

/* -----------------------------------------
   Button widget
----------------------------------------- */
.rh-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui, system-ui, -apple-system, Segoe UI, Roboto, Arial);
  line-height: 1;
}

/* Button */
.rh-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.78);
  color: rgba(15,23,42,.86);
  cursor: pointer;
  user-select: none;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(2,8,23,.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease, filter .12s ease;
}

/* Disabled (prevents weird hover/active while request in flight) */
.rh-btn:disabled{
  opacity: .72;
  cursor: default;
  transform: none;
}

/* Keep hover only when not disabled */
.rh-btn:not(:disabled):hover{
  transform: translateY(-1px);
  border-color: rgba(123,17,19,.28);

}

.rh-btn:not(:disabled):active{ transform: translateY(0); }

.rh-btn:focus-visible{
  outline: 3px solid rgba(123,17,19,.20);
  outline-offset: 2px;
}

/* Heart icon */
.rh-ico{
  font-size: 14px;
  transform: translateY(.5px);
  color: rgba(123,17,19,.75);
  transition: transform .14s ease, filter .14s ease, color .14s ease;
}

/* Count pill */
.rh-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 18px;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(15,23,42,.06);
  color: rgba(15,23,42,.82);
  font-weight: 900;
  font-size: 12px;
}

/* Hearted state */
.rh-wrap.is-on .rh-btn{
  background: linear-gradient(135deg, var(--accent, #7B1113), var(--accent2, #5E0D0E));
  border: 0;
  color: #fff;
}
.rh-wrap.is-on .rh-count{
  background: rgba(255,255,255,.18);
  color: rgba(255,255,255,.95);
}
.rh-wrap.is-on .rh-ico{
  color: rgba(255,255,255,.95);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.15));
}

/* Guest state (still clickable, but nudges) */
.rh-wrap.is-guest .rh-btn{
  color: rgba(15,23,42,.78);
}
.rh-wrap.is-guest .rh-ico{
  color: rgba(123,17,19,.65);
}

/* Pop / nudge */
.rh-wrap.is-pop .rh-btn{
  transform: translateY(-1px) scale(1.02);
}

/* Nudge highlight */
.rh-wrap.is-nudge .rh-btn{
  border-color: rgba(123,17,19,.28);
  box-shadow: 0 16px 40px rgba(123,17,19,.12);
}

/* Nudge tooltip */
.rh-wrap.is-nudge::after{
  content: "Login to heart";
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--card, #fff);
  border: 1px solid var(--line, rgba(15,23,42,.10));
  box-shadow: var(--shadow, 0 10px 30px rgba(2,8,23,.08));
  color: rgba(15,23,42,.86);
  font-weight: 900;
  font-size: 12px;
  z-index: 9999;
}

/* Burst animation */
.rh-burst{
  position:absolute;
  inset:-6px;
  border-radius: 999px;
  pointer-events:none;
  opacity:0;
}

.rh-btn.is-burst .rh-burst{
  opacity:1;
  animation: rhBurst .52s ease-out forwards;
  background:
    radial-gradient(circle at 25% 40%, rgba(123,17,19,.35) 0 6px, transparent 7px),
    radial-gradient(circle at 55% 30%, rgba(123,17,19,.28) 0 5px, transparent 6px),
    radial-gradient(circle at 75% 55%, rgba(123,17,19,.25) 0 6px, transparent 7px),
    radial-gradient(circle at 35% 75%, rgba(123,17,19,.22) 0 5px, transparent 6px);
  filter: blur(.1px);
}

@keyframes rhBurst{
  0%   { transform: scale(.85); opacity: 0; }
  25%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* Tooltip (compact hover list) */
.rh-tip{
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 180px;
  background: var(--card, #fff);
  border: 1px solid var(--line, rgba(15,23,42,.08));
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(2,8,23,.08);
  padding: 6px 8px;
  z-index: 9999;
  display: none;
}

/* Keep hover behavior clean */
.rh-tip{ pointer-events: none; }
.rh-wrap.is-tip .rh-tip{ display:block; }

/* Remove chunky header completely */
.rh-tip-head{
  display: none;
}

/* Compact body */
.rh-tip-body{
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Each user row */
.rh-tip-user{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(15,23,42,.85);
  line-height: 1.2;
}

/* Avatar */
.rh-tip-user img{
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

/* Loading state */
.rh-tip-loading{
  font-size: 12px;
  font-weight: 600;
  color: rgba(15,23,42,.55);
}
/* People list */
.rh-people{
  display:grid;
  gap: 8px;
}

.rh-person{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 12px;
  color: rgba(15,23,42,.90);
  text-decoration:none;
  font-weight: 900;
  font-size: 13px;
}
.rh-person:hover{
  background: rgba(15,23,42,.05);
}

.rh-ava{
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.04);
}

.rh-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Empty */
.rh-tip-empty{
  padding: 8px 6px 10px;
  display:grid;
  gap: 4px;
}
.rh-tip-empty-ico{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  background: rgba(123,17,19,.08);
  color: rgba(123,17,19,.85);
  font-size: 14px;
}
.rh-tip-empty-t{
  font-weight: 900;
  color: rgba(15,23,42,.90);
}
.rh-tip-empty-s{
  font-weight: 800;
  font-size: 12px;
  color: rgba(15,23,42,.60);
}

/* Tiny alignment helper when placed in kicker rows (safe, optional) */
.skn-card-kickerrow .rh-wrap,
.skn-hero-kickerrow .rh-wrap{
  transform: translateY(-.5px);
}

/* =========================================================
   [myrudehearts] — list/grid (SKN integrated)
   Markup from shortcode:
   <section class="rh-my">
     <header class="rh-my-head">...</header>
     <div class="rh-my-grid rh-my-cols-X">...</div>
     <nav class="rh-my-pager">...</nav>
   </section>
========================================================= */

.rh-my{
  font-family: var(--font-ui, system-ui, -apple-system, Segoe UI, Roboto, Arial);
  color: var(--text, #0f172a);
}

/* Head */
.rh-my-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px 0 6px;
  border-bottom: 1px solid var(--line, rgba(15,23,42,.10));
}

.rh-my-h2{
  margin: 0;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: .2px;
  line-height: 1.15;
}

.rh-my-meta{
  display:flex;
  align-items:center;
  gap: 10px;
}

.rh-my-count{
  font-size: 12px;
  font-weight: 900;
  color: rgba(15,23,42,.70);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,.05);
  border: 1px solid rgba(15,23,42,.08);
}

/* Grid */
.rh-my-grid{
  display:grid;
  gap: 14px;
  margin: 14px 0 0;
}

.rh-my-cols-1{ grid-template-columns: 1fr; }
.rh-my-cols-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rh-my-cols-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rh-my-cols-4{ grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px){
  .rh-my-cols-4{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px){
  .rh-my-cols-3,
  .rh-my-cols-4{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .rh-my-cols-2,
  .rh-my-cols-3,
  .rh-my-cols-4{ grid-template-columns: 1fr; }
}

/* Card link */
.rh-my-card{
  display:block;
  text-decoration:none!important;
  color: inherit;
  background: var(--card, #fff);
  border: 1px solid var(--line, rgba(15,23,42,.10));
  border-radius: var(--radius, 18px);
  box-shadow: var(--shadow, 0 10px 30px rgba(2,8,23,.08));
  overflow:hidden;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.rh-my-card:hover{
  transform: translateY(-2px);
  border-color: rgba(123,17,19,.18);
  box-shadow: 0 16px 40px rgba(2,8,23,.10);
}

/* Media block */
.rh-my-media{
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgba(15,23,42,.05);
}

.rh-my-thumb{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.rh-my-thumb--empty{
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 25% 30%, rgba(123,17,19,.12), transparent 55%),
    radial-gradient(circle at 75% 65%, rgba(15,23,42,.08), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.3), rgba(15,23,42,.04));
}

/* Heart button positioning on card */
.rh-my-heart{
  position:absolute;
  top: 10px;
  right: 10px;
}

/* When no thumb is shown */
.rh-my-heart--top{
  display:flex;
  justify-content:flex-end;
  padding: 12px 12px 0;
}

/* Ensure heart widget looks good on top of images */
.rh-my-media .rh-btn{
  background: rgba(255,255,255,.82);
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 12px 26px rgba(2,8,23,.18);
}

.rh-my-media .rh-wrap.is-on .rh-btn{
  border: 0;
  background: linear-gradient(135deg, var(--accent, #7B1113), var(--accent2, #5E0D0E));
  box-shadow: 0 16px 38px rgba(94,13,14,.26);
}

/* Body */
.rh-my-body{
  padding: 12px 12px 14px;
}

.rh-my-title{
  font-weight: 750;
  letter-spacing: .2px;
  font-size: 18px;
  line-height: 1.25;
  color: rgba(15,23,42,.92);
}


.rh-my-date{
  margin-top: 6px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(15,23,42,.58);
}

.rh-my-excerpt{
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(15,23,42,.72);
  font-weight: 700;
}

/* Guest / Empty states (from shortcode) */
.rh-my-guest,
.rh-my-empty{
  margin: 8px 0 0;
}

.rh-my-guest .rh-my-card,
.rh-my-empty .rh-my-card{
  padding: 16px;
}

.rh-my-sub{
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(15,23,42,.65);
}

.rh-my-login{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 950;
  text-decoration:none;
  color: #fff;
  background: linear-gradient(135deg, var(--accent, #7B1113), var(--accent2, #5E0D0E));
  box-shadow: 0 16px 36px rgba(94,13,14,.20);
}

/* Pager */
.rh-my-pager{
  margin-top: 16px;
}

.rh-my-pager .page-numbers{
  list-style:none;
  margin: 0;
  padding: 0;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.rh-my-pager .page-numbers li{
  margin: 0;
  padding: 0;
}

.rh-my-pager .page-numbers a,
.rh-my-pager .page-numbers span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line, rgba(15,23,42,.10));
  background: rgba(255,255,255,.78);
  color: rgba(15,23,42,.86);
  text-decoration:none;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(2,8,23,.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rh-my-pager .page-numbers a:hover{
  border-color: rgba(123,17,19,.20);
  transform: translateY(-1px);
}

.rh-my-pager .page-numbers .current{
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--accent, #7B1113), var(--accent2, #5E0D0E));
  box-shadow: 0 16px 36px rgba(94,13,14,.18);
}

.rh-my-pager .page-numbers .dots{
  background: transparent;
  box-shadow: none;
  border-color: transparent;
  padding: 0 6px;
  min-width: 22px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .rh-btn,
  .rh-my-card,
  .rh-my-pager .page-numbers a{
    transition: none !important;
  }
}