/* ==========================================================================
   JSFLIX — Rude Tiger 29 60fps Fade-In Pop-up Stylesheet
   Based on: https://uiverse.io/SouravBandyopadhyay/rude-tiger-29
   ========================================================================== */

.rude-tiger-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(3, 4, 9, 0.76);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  will-change: opacity;
}

.rude-tiger-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 60fps Fade-in Pop Up Modal Card */
.rude-tiger-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -46%, 0) scale(0.92);
  width: min(92vw, 420px);
  opacity: 0;
  pointer-events: none;
  z-index: 100000;
  transition: none;
}

.rude-tiger-overlay.active .rude-tiger-modal {
  pointer-events: auto;
  animation: rudeTiger60fpsIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

.rude-tiger-overlay.is-closing .rude-tiger-modal {
  animation: rudeTiger60fpsOut 0.28s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes rudeTiger60fpsIn {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -44%, 0) scale(0.91);
    filter: blur(8px);
  }
  65% {
    opacity: 1;
    transform: translate3d(-50%, -50.8%, 0) scale(1.018);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
    filter: blur(0px);
  }
}

@keyframes rudeTiger60fpsOut {
  0% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
    filter: blur(0px);
  }
  100% {
    opacity: 0;
    transform: translate3d(-50%, -46%, 0) scale(0.92);
    filter: blur(6px);
  }
}

/* Uiverse Rude-Tiger-29 Core Implementation */
.notification.rude-tiger-card {
  display: flex;
  flex-direction: column;
  isolation: isolate;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  background: #232328;
  border-radius: 1.25rem;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans Thai', 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  --gradient: linear-gradient(135deg, #2eadff 0%, #3d83ff 50%, #7e61ff 100%);
  --color: #38bdf8;
  --color-gold: #f59e0b;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(46, 173, 255, 0.18);
  padding: 1.25rem 1.25rem 1.15rem 1.45rem;
}

.notification.rude-tiger-card:before {
  position: absolute;
  content: "";
  inset: 0.0625rem;
  border-radius: 1.1875rem;
  background: #141418;
  z-index: 2;
}

.notification.rude-tiger-card:after {
  position: absolute;
  content: "";
  width: 0.32rem;
  inset: 0.9rem auto 0.9rem 0.65rem;
  border-radius: 0.2rem;
  background: var(--gradient);
  box-shadow: 0 0 12px rgba(46, 173, 255, 0.6);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 4;
}

.notification.rude-tiger-card:hover:after {
  transform: translateX(0.18rem) scaleY(1.02);
}

.rude-tiger-card .notiglow,
.rude-tiger-card .notiborderglow {
  position: absolute;
  width: 22rem;
  height: 22rem;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle closest-side at center, rgba(62, 163, 255, 0.35), transparent 70%);
  opacity: 0.25;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.rude-tiger-card .notiglow {
  z-index: 3;
}

.rude-tiger-card .notiborderglow {
  z-index: 1;
  background: radial-gradient(circle closest-side at center, rgba(126, 97, 255, 0.5), transparent 75%);
}

.notification.rude-tiger-card:hover .notiglow {
  opacity: 0.5;
}

.notification.rude-tiger-card:hover .notiborderglow {
  opacity: 0.55;
}

/* Header with Close Button */
.rude-tiger-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding-left: 0.4rem;
}

.rude-tiger-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(46, 173, 255, 0.12);
  color: var(--color);
  border: 1px solid rgba(46, 173, 255, 0.28);
}

.rude-tiger-badge i {
  font-size: 12px;
}

.rude-tiger-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
  line-height: 1;
}

.rude-tiger-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
  transform: rotate(90deg) scale(1.08);
}

/* Title and Body from Rude-Tiger */
.rude-tiger-card .notititle {
  position: relative;
  z-index: 5;
  color: #ffffff;
  padding: 0 0.25rem 0.35rem 0.4rem;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
  transition: transform 300ms ease;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rude-tiger-card .notititle .date-highlight {
  color: var(--color);
  font-weight: 800;
  text-shadow: 0 0 16px rgba(50, 166, 255, 0.45);
}

.notification.rude-tiger-card:hover .notititle {
  transform: translateX(0.18rem);
}

.rude-tiger-card .notibody {
  position: relative;
  z-index: 5;
  color: #cbd5e1;
  padding: 0 0.25rem 0 0.4rem;
  font-size: 0.98rem;
  line-height: 1.5;
  transition: transform 300ms ease;
}

.rude-tiger-card .notibody .highlight-free {
  display: inline-block;
  font-weight: 800;
  color: #fde047;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.4);
}

.notification.rude-tiger-card:hover .notibody {
  transform: translateX(0.25rem);
}

.rude-tiger-card .notidesc {
  position: relative;
  z-index: 5;
  color: #94a3b8;
  padding: 0.35rem 0.25rem 0.75rem 0.4rem;
  font-size: 0.85rem;
  line-height: 1.45;
}

/* Rude Tiger Premium CTA Button */
.rude-tiger-actions {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0.4rem;
  padding-left: 0.4rem;
}

.rude-tiger-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.7rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--gradient);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(46, 173, 255, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.rude-tiger-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(126, 97, 255, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.rude-tiger-btn:active {
  transform: translateY(1px) scale(0.98);
}

.rude-tiger-btn i {
  font-size: 1.05rem;
}

/* Secondary Dismissal Actions */
.rude-tiger-footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
}

.rude-tiger-optout-btn {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 4px;
  font-family: inherit;
  font-size: inherit;
  transition: color 0.2s ease;
}

.rude-tiger-optout-btn:hover {
  color: #cbd5e1;
}

.rude-tiger-optout-btn i {
  font-size: 14px;
}

.rude-tiger-skip-btn {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px 6px;
  font-family: inherit;
  font-size: inherit;
  transition: color 0.2s ease;
}

.rude-tiger-skip-btn:hover {
  color: #cbd5e1;
}
