/* =================================================================
   TRUST BADGE SHOWCASE SYSTEM
   Interactive security & certification badges with micro-interactions
   Inspired by: Vercel, Stripe, Auth0, Cloudflare 2026 trust patterns
   ================================================================= */

.trust-showcase {
  position: relative;
  padding: 80px 20px;
  background: linear-gradient(180deg, 
    rgba(15, 15, 20, 0.95) 0%,
    rgba(20, 15, 30, 0.98) 100%
  );
  overflow: hidden;
}

.trust-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(147, 51, 234, 0.3) 50%,
    transparent 100%
  );
}

.trust-container {
  max-width: 1200px;
  margin: 0 auto;
}

.trust-header {
  text-align: center;
  margin-bottom: 60px;
}

.trust-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-header p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin: 0 auto;
}

/* Badge Grid Layout */
.trust-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

/* Individual Trust Badge Card */
.trust-badge {
  position: relative;
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(147, 51, 234, 0.15);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
}

.trust-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    rgba(147, 51, 234, 0.8) 0%,
    rgba(139, 92, 246, 0.8) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.trust-badge:hover::before {
  opacity: 1;
}

.trust-badge::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, 
    rgba(147, 51, 234, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.trust-badge:hover::after {
  width: 300px;
  height: 300px;
}

.trust-badge:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(147, 51, 234, 0.4);
  transform: translateY(-4px);
  box-shadow: 
    0 20px 40px rgba(147, 51, 234, 0.15),
    0 0 0 1px rgba(147, 51, 234, 0.1) inset;
}

/* Badge Icon */
.trust-badge-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, 
    rgba(147, 51, 234, 0.2) 0%,
    rgba(139, 92, 246, 0.2) 100%
  );
  border-radius: 12px;
  font-size: 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.trust-badge-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, 
    rgba(147, 51, 234, 0.3) 0%,
    rgba(139, 92, 246, 0.3) 100%
  );
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.trust-badge:hover .trust-badge-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.3);
}

.trust-badge:hover .trust-badge-icon::before {
  opacity: 1;
}

/* Badge Content */
.trust-badge-content {
  text-align: center;
}

.trust-badge-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.trust-badge:hover .trust-badge-title {
  color: rgba(147, 51, 234, 1);
}

.trust-badge-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  transition: color 0.3s ease;
}

.trust-badge:hover .trust-badge-description {
  color: rgba(255, 255, 255, 0.7);
}

/* Status Indicator */
.trust-status {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.1);
  }
}

.trust-status.warning {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

@keyframes statusPulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.1);
  }
}

/* Security Stats Bar */
.trust-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(147, 51, 234, 0.15);
  border-radius: 16px;
  margin-top: 40px;
}

.trust-stat {
  text-align: center;
  position: relative;
}

.trust-stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, 
    rgba(147, 51, 234, 1) 0%,
    rgba(139, 92, 246, 1) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  display: block;
}

.trust-stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Certification Logos */
.trust-certifications {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid rgba(147, 51, 234, 0.15);
}

.trust-cert-logo {
  opacity: 0.4;
  filter: grayscale(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.trust-cert-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

.trust-cert-logo img {
  height: 40px;
  width: auto;
}

/* Tooltip System */
.trust-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 12px 16px;
  background: rgba(15, 15, 20, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(147, 51, 234, 0.3);
  border-radius: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.trust-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(147, 51, 234, 0.3);
}

.trust-badge:hover .trust-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Verification Badge */
.trust-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #10b981;
  margin-top: 12px;
}

.trust-verified::before {
  content: '✓';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  line-height: 16px;
  text-align: center;
  font-size: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .trust-showcase {
    padding: 60px 20px;
  }

  .trust-header h2 {
    font-size: 2rem;
  }

  .trust-header p {
    font-size: 1rem;
  }

  .trust-badge-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .trust-stats-bar {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px;
  }

  .trust-stat-value {
    font-size: 2rem;
  }

  .trust-certifications {
    gap: 24px;
  }

  .trust-cert-logo img {
    height: 32px;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .trust-badge,
  .trust-badge-icon,
  .trust-cert-logo,
  .trust-tooltip {
    transition: none;
    animation: none;
  }

  .trust-badge:hover {
    transform: none;
  }

  .trust-badge:hover .trust-badge-icon {
    transform: scale(1.05);
  }

  .trust-status {
    animation: none;
  }
}

/* Dark Mode Enhancement */
@media (prefers-color-scheme: dark) {
  .trust-showcase {
    background: linear-gradient(180deg, 
      rgba(10, 10, 15, 0.98) 0%,
      rgba(15, 10, 25, 1) 100%
    );
  }
}
