/* DeedSocial widget for TaxDeedsPro — v8.1
   Isolated namespace: tdp-ds-* (won't collide with existing taxdeedspro styles) */

/* Ring wrapper around consultant photo */
.tdp-ds-ring {
  position: relative;
  display: inline-block;
  padding: 2.5px;
  border-radius: 50%;
  cursor: pointer;
  background: conic-gradient(from 0deg, #f97316, #ec4899, #a855f7, #f97316);
  animation: tdp-ds-ring-spin 4s linear infinite;
  transition: transform 0.15s;
  flex-shrink: 0;
}
.tdp-ds-ring:hover { transform: scale(1.08); }
.tdp-ds-ring > img {
  display: block;
  border: 2px solid #fff !important;
  background: #fff;
}
@keyframes tdp-ds-ring-spin { to { transform: rotate(360deg); } }

/* Badge "N" stories count */
.tdp-ds-stories-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: linear-gradient(135deg, #f97316, #ec4899);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Modal overlay with iframe */
.tdp-ds-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: tdp-ds-fade-in 0.2s ease-out;
}
@keyframes tdp-ds-fade-in { from { opacity: 0; } to { opacity: 1; } }

.tdp-ds-modal-box {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: 90vh;
  max-height: 900px;
  background: #0a0c10;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tdp-ds-modal-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.tdp-ds-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.tdp-ds-modal-close:hover { background: rgba(255, 255, 255, 0.25); transform: scale(1.05); }

.tdp-ds-modal-brand {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.tdp-ds-modal-brand span {
  background: linear-gradient(135deg, #f97316, #ec4899, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

@media (max-width: 640px) {
  .tdp-ds-modal-overlay { padding: 0; }
  .tdp-ds-modal-box { max-width: none; height: 100vh; max-height: none; border-radius: 0; }
}
