/*
 * SMMservices — supplemental styles
 * Critical CSS is inline via SMM_Frontend::get_inline_css()
 */

/* Search button loading state */
.smm-search-btn.loading svg {
  animation: smm-spin .6s linear infinite;
}
@keyframes smm-spin { to { transform: rotate(360deg); } }

/* Post grid loading shimmer */
.smm-post-thumb img[src=""] {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.04) 25%,
    rgba(255,255,255,.08) 50%,
    rgba(255,255,255,.04) 75%
  );
  background-size: 200% 100%;
  animation: smm-shimmer 1.4s ease infinite;
}
@keyframes smm-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Section fade-in */
.smm-service-body > * {
  animation: smm-fadein .2s ease-out;
}
@keyframes smm-fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Cart button success */
.smm-add-to-cart-btn.smm-success {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  transform: none !important;
}

/* Auto-posts row label */
.smm-auto-posts-row .smm-field-label {
  margin-top: 14px;
}

/* ── Post stat badge (native like count) ── */
.smm-post-stat {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(7,10,18,.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 100px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  color: #EEF2FF;
  pointer-events: none;
  line-height: 1.5;
  border: 1px solid rgba(255,255,255,.1);
}

/* ── Quality button wraps (for tooltip trigger alignment) ── */
.smm-quality-btn-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.smm-tooltip-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255,255,255,.45);
  padding: 0 2px;
  line-height: 1;
  transition: color .15s;
}
.smm-tooltip-trigger:hover,
.smm-tooltip-trigger:focus { color: #22D3EE; outline: none; }

/* Quality tooltip */
.smm-quality-tooltip {
  position: absolute;
  z-index: 200;
  max-width: 220px;
  background: rgba(12,16,26,.97);
  border: 1px solid rgba(34,211,238,.35);
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 12px;
  color: #EEF2FF;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  pointer-events: none;
}

/* ── Growth Pack bundle ── */
.smm-bundle {
  margin: 10px 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34,211,238,.08), rgba(232,121,249,.08));
  border: 1px solid rgba(34,211,238,.22);
  padding: 14px 16px;
  animation: smm-fadein .2s ease-out;
}
.smm-bundle-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.smm-bundle-icon { font-size: 22px; flex-shrink: 0; }
.smm-bundle-copy { flex: 1; min-width: 0; }
.smm-bundle-copy strong { display: block; font-size: 14px; color: #EEF2FF; }
.smm-bundle-desc { font-size: 12px; color: #8892A8; }
.smm-bundle-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #22D3EE, #E879F9);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 2px 12px rgba(34,211,238,.28);
}
.smm-bundle-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(34,211,238,.4); }
.smm-bundle-btn:disabled { opacity: .6; cursor: default; transform: none; }

/* Print */
@media print { #smm-root { display: none !important; } }
