/* IR Social Unlock — Frontend Styles */

/* ─── Wrapper ─── */
.irsu-wrap {
  font-family: inherit;
  margin: 1.5rem 0;
}

/* ─── Preview blur ─── */
.irsu-preview {
  position: relative;
  margin-bottom: 0;
}
.irsu-blur-wrap {
  position: relative;
  overflow: hidden;
  max-height: 160px;
}
.irsu-blur-inner {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}
.irsu-blur-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 20%, #fff 85%);
}

/* ─── Gate ─── */
.irsu-gate {
  background: #f8f8f6;
  border: 1px solid #e5e5e0;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.irsu-lock-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.irsu-gate-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 6px;
}
.irsu-gate-title--waiting {
  color: #185FA5;
}
.irsu-gate-sub {
  font-size: 13px;
  color: #666;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

/* ─── Share buttons ─── */
.irsu-share-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.irsu-share-btns--small {
  margin-top: 10px;
}
.irsu-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  line-height: 1;
}
.irsu-btn:hover  { opacity: 0.88; }
.irsu-btn:active { transform: scale(0.97); }
.irsu-btn svg    { flex-shrink: 0; }

.irsu-btn-wa {
  background: #25D366;
  color: #fff;
}
.irsu-btn-th {
  background: #0D0D0D;
  color: #fff;
}
.irsu-btn--sm {
  padding: 7px 14px;
  font-size: 13px;
}

/* ─── Ref link pre-gate (muncul sebelum tombol share, untuk tier 2 & 3) ─── */
.irsu-ref-link-wrap--pregated {
  margin-bottom: 6px;
}
.irsu-ref-hint {
  font-size: 12px;
  color: #888;
  margin: 0 0 12px;
}

/* ─── Referral link ─── */
.irsu-ref-link-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  text-align: left;
}
.irsu-ref-link-text {
  flex: 1;
  font-size: 12px;
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.irsu-copy-btn {
  font-size: 12px;
  padding: 5px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f5f5f3;
  cursor: pointer;
  color: #333;
  white-space: nowrap;
  transition: background 0.1s;
}
.irsu-copy-btn:hover { background: #eee; }

/* ─── Progress ─── */
.irsu-progress-wrap {
  text-align: left;
  background: #fff;
  border: 1px solid #e5e5e0;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.irsu-progress-label {
  font-size: 12px;
  color: #666;
  margin: 0 0 8px;
}
.irsu-progress-bar-bg {
  background: #e8e8e4;
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 6px;
}
.irsu-progress-bar-fill {
  height: 6px;
  border-radius: 99px;
  transition: width 0.5s ease;
}
.irsu-tier-1 { background: #1D9E75; }
.irsu-tier-2 { background: #185FA5; }
.irsu-tier-3 { background: #534AB7; }

.irsu-progress-count {
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

/* ─── Reshare prompt ─── */
.irsu-reshare-prompt {
  font-size: 12px;
  color: #999;
  margin: 10px 0 6px;
}

/* ─── Unlocked state ─── */
.irsu-content-locked.irsu-reveal {
  animation: irsuFadeIn 0.4s ease forwards;
}
@keyframes irsuFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.irsu-unlocked {
  margin: 1rem 0;
}
.irsu-unlocked-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 1rem;
}
.irsu-unlocked-badge--t1 { background: #E1F5EE; color: #085041; }
.irsu-unlocked-badge--t2 { background: #E6F1FB; color: #0C447C; }
.irsu-unlocked-badge--t3 { background: #EEEDFE; color: #3C3489; }

/* ─── Dark mode ─── */
@media (prefers-color-scheme: dark) {
  .irsu-gate {
    background: #1e1e1e;
    border-color: #333;
  }
  .irsu-gate-title { color: #f0f0f0; }
  .irsu-gate-sub   { color: #aaa; }
  .irsu-blur-inner { color: #aaa; }
  .irsu-blur-overlay { background: linear-gradient(to bottom, transparent 20%, #121212 85%); }
  .irsu-ref-link-wrap { background: #2a2a2a; border-color: #444; }
  .irsu-ref-link-text { color: #aaa; }
  .irsu-copy-btn { background: #333; border-color: #444; color: #eee; }
  .irsu-copy-btn:hover { background: #3a3a3a; }
  .irsu-progress-wrap { background: #2a2a2a; border-color: #444; }
  .irsu-progress-bar-bg { background: #444; }
  .irsu-progress-count { color: #eee; }
  .irsu-progress-label { color: #aaa; }
}
