/* ============================================================
   AbhiHub Overlay System — overlay-system.css
   Shared styles for OverlayManager, AccessGates, AdManager.
   ============================================================ */

/* ── Keyframe shared by all modals ────────────────────────── */
@keyframes agSlideUp {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ── Ad label badge ───────────────────────────────────────── */
.ad-label {
  display: inline-block;
  padding: .2rem .5rem;
  background: #e0e7ff;
  color: #4338ca;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
}

/* ── Inline Ad Card ───────────────────────────────────────── */
.ad-inline-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: .9rem 1rem;
  margin: .75rem 0;
  transition: box-shadow .2s;
}

.ad-inline-card:hover {
  box-shadow: 0 4px 16px rgba(37,99,235,.08);
}

.ad-inline-img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.ad-inline-body {
  flex: 1;
  min-width: 0;
}

.ad-inline-title {
  font-size: .92rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: .2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-inline-text {
  font-size: .82rem;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: .4rem;
}

.ad-inline-cta {
  display: inline-block;
  padding: .3rem .8rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
}

.ad-inline-cta:hover { opacity: .88; }

.ad-dismiss-btn {
  position: absolute;
  top: .6rem;
  right: .6rem;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: .85rem;
  cursor: pointer;
  padding: .2rem .3rem;
  border-radius: 6px;
  transition: background .15s, color .15s;
}

.ad-dismiss-btn:hover {
  background: #f1f5f9;
  color: #475569;
}

/* ── Access Gate Card (shared by profile + notif modals) ──── */
.ag-card {
  /* base styles already inlined — this class allows overrides */
  position: relative;
}

/* ── Mobile responsive ────────────────────────────────────── */
@media (max-width: 480px) {
  .ad-inline-card {
    flex-direction: column;
    gap: .6rem;
  }

  .ad-inline-img {
    width: 48px;
    height: 48px;
  }
}
