.smw-widget,
.smw-shortcode-widget {
  display: grid;
  gap: 20px;
  margin: 20px 0;
}

.smw-widget[data-layout="grid"],
.smw-shortcode-widget[data-layout="grid"] {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.smw-widget[data-layout="scroll"],
.smw-shortcode-widget[data-layout="scroll"] {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.smw-widget[data-layout="scroll"] .smw-card,
.smw-shortcode-widget[data-layout="scroll"] .smw-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  margin-right: 20px;
}

.smw-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.smw-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.smw-card-header {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.smw-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.smw-info {
  flex: 1;
}

.smw-name {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.smw-followers {
  font-size: 14px;
  color: #666;
}

.smw-card-body {
  position: relative;
  height: 150px;
  overflow: hidden;
}

.smw-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.smw-card-footer {
  padding: 16px;
  display: flex;
  gap: 12px;
}

.smw-btn {
  flex: 1;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.smw-btn-follow {
  background: #f3a01e;
  color: white;
}

.smw-btn-follow:hover {
  background: #e8940d;
  transform: translateY(-1px);
}

.smw-btn-share {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #e9ecef;
}

.smw-btn-share:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

.smw-loading {
  padding: 40px;
  text-align: center;
  color: #666;
  font-style: italic;
}

/* Platform-specific styling */
.smw-card[data-platform="facebook"] .smw-btn-follow {
  background: #1877f2;
}

.smw-card[data-platform="instagram"] .smw-btn-follow {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.smw-card[data-platform="tiktok"] .smw-btn-follow {
  background: #000;
}

.smw-card[data-platform="tripadvisor"] .smw-btn-follow {
  background: #00af87;
}

.smw-card[data-platform="google_photos"] .smw-btn-follow {
  background: #4285f4;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .smw-widget[data-layout="grid"],
  .smw-shortcode-widget[data-layout="grid"] {
    grid-template-columns: 1fr;
  }

  .smw-widget,
  .smw-shortcode-widget {
    margin: 10px 0;
    gap: 15px;
  }

  .smw-card {
    margin: 0 10px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .smw-card {
    background: #2d3748;
    color: #e2e8f0;
  }

  .smw-name {
    color: #e2e8f0;
  }

  .smw-followers {
    color: #a0aec0;
  }

  .smw-btn-share {
    background: #4a5568;
    color: #e2e8f0;
    border-color: #2d3748;
  }

  .smw-btn-share:hover {
    background: #2d3748;
  }
}
