/* ============================================
   PUBLIC PROFILES & SHARING - STYLES
   ============================================ */

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(100, 116, 139, 0.3);
  transition: 0.4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Profile Settings */
.settings-item {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

.settings-item:last-child {
  border-bottom: none;
}

/* Stat Cards */
.stat-card {
  padding: 30px;
  background: rgba(15, 23, 42, 0.6);
  border: 2px solid rgba(6, 182, 212, 0.2);
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.2);
}

/* Section Cards */
.section-card {
  padding: 40px;
  background: rgba(15, 23, 42, 0.4);
  border: 2px solid rgba(6, 182, 212, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(6, 182, 212, 0.2);
  color: #06b6d4;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
}

/* Trending Widget */
.trending-widget {
  padding: 30px;
  background: rgba(15, 23, 42, 0.4);
  border: 2px solid rgba(6, 182, 212, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.trending-list {
  /* Styles already inline in JS for easy customization */
}

.trending-item {
  transition: all 0.3s ease;
}

.trending-item:hover {
  transform: translateX(4px);
  border: 2px solid rgba(6, 182, 212, 0.3);
}

/* Public Profile Page */
.profile-header {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
  border-radius: 20px;
  margin-bottom: 40px;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
  color: white;
  border: 4px solid rgba(6, 182, 212, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .stat-card {
    padding: 20px;
  }
  
  .section-card {
    padding: 24px;
  }
  
  .trending-widget {
    padding: 20px;
  }
  
  .trending-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .profile-header {
    padding: 40px 20px;
  }
  
  .toggle-switch {
    width: 50px;
    height: 28px;
  }
  
  .toggle-slider:before {
    height: 20px;
    width: 20px;
  }
  
  input:checked + .toggle-slider:before {
    transform: translateX(22px);
  }
}

/* Animations */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Result Card Hover Effect */
.result-card {
  transition: all 0.3s ease;
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.4);
}

/* SEO - Hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Loading States */
.loading-skeleton {
  background: linear-gradient(90deg, rgba(100, 116, 139, 0.1) 25%, rgba(100, 116, 139, 0.2) 50%, rgba(100, 116, 139, 0.1) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
