/* ========================  Community Showcase  ======================== */

:root {
  --sc-blue: #4285F4;
  --sc-red: #EA4335;
  --sc-yellow: #FBBC04;
  --sc-green: #34A853;
  --sc-bg: #fff;
  --sc-bg-alt: #f8f9fa;
  --sc-border: #dadce0;
  --sc-text: #202124;
  --sc-text-secondary: #5f6368;
  --sc-text-muted: #80868b;
  --sc-radius: 16px;
  --sc-font: 'Google Sans', 'Roboto', sans-serif;
}

/* ----------  Hero  ---------- */

.sc-hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  max-width: 780px;
  margin: 0 auto;
}

.sc-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 24px;
  background: rgba(66, 133, 244, 0.1);
  border: 1px solid rgba(66, 133, 244, 0.2);
  font: 500 0.8125rem var(--sc-font);
  color: var(--sc-blue);
  margin-bottom: 1.5rem;
}

.sc-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sc-green);
  animation: sc-pulse 2s ease-in-out infinite;
}

@keyframes sc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.sc-hero__title {
  font: 700 clamp(32px, 5vw, 56px) var(--sc-font);
  color: var(--sc-text);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.sc-hero__title span {
  background: linear-gradient(90deg, var(--sc-blue), var(--sc-green), var(--sc-yellow), var(--sc-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sc-hero__desc {
  font: 400 1.125rem var(--sc-font);
  color: var(--sc-text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.sc-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7em 2em;
  border-radius: 4px;
  background: var(--sc-blue);
  color: #fff;
  font: 500 0.9375rem var(--sc-font);
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.sc-hero__cta:hover {
  background: #3367d6;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.sc-hero__cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ----------  Stats strip  ---------- */

.sc-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 1.5rem;
  border-top: 1px solid var(--sc-border);
  border-bottom: 1px solid var(--sc-border);
  margin-bottom: 2.5rem;
}

.sc-stats__item {
  text-align: center;
}

.sc-stats__num {
  font: 700 1.75rem var(--sc-font);
  color: var(--sc-text);
}

.sc-stats__label {
  font: 400 0.8125rem var(--sc-font);
  color: var(--sc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ----------  Toolbar  ---------- */

.sc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 0 1.5rem;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.sc-search {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.sc-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: var(--sc-text-muted);
  pointer-events: none;
}

.sc-search__input {
  width: 100%;
  padding: 10px 14px 10px 42px;
  border: 1px solid var(--sc-border);
  border-radius: 8px;
  font: 400 0.9375rem var(--sc-font);
  color: var(--sc-text);
  background: var(--sc-bg);
  outline: none;
  transition: border-color 0.2s;
}

.sc-search__input:focus {
  border-color: var(--sc-blue);
}

.sc-search__input::placeholder {
  color: var(--sc-text-muted);
}

.sc-sort {
  padding: 10px 16px;
  border: 1px solid var(--sc-border);
  border-radius: 8px;
  font: 400 0.875rem var(--sc-font);
  color: var(--sc-text);
  background: var(--sc-bg);
  cursor: pointer;
  outline: none;
}

/* ----------  Grid  ---------- */

.sc-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  padding: 0 1.5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .sc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .sc-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .sc-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ----------  Card  ---------- */

.sc-card {
  position: relative;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.4s ease;
  background: var(--sc-bg);
  cursor: pointer;
}

.sc-card:hover {
  border-color: #bdc1c6;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.sc-card__preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sc-bg-alt);
}

.sc-card__preview iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

.sc-card__preview-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  background: linear-gradient(135deg, #f0f2f5 0%, #e8eaed 100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.sc-card:hover .sc-card__preview-img {
  transform: scale(1.03);
}

.sc-card__preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8f0fe 0%, #f8f9fa 100%);
}

.sc-card__preview-placeholder svg {
  width: 48px;
  height: 48px;
  fill: var(--sc-blue);
  opacity: 0.4;
}

/* ----------  Name Bar (visible by default, bottom of preview)  ---------- */

.sc-card__namebar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 2;
}

.sc-card:hover .sc-card__namebar {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

.sc-card__avatar--bar {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.7rem;
}

.sc-card__name--bar {
  color: #fff;
  font: 600 0.875rem var(--sc-font);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  letter-spacing: 0.2px;
}

/* ----------  Body (covers full preview on hover with blur)  ---------- */

.sc-card__body {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  opacity: 0;
  z-index: 3;
  border-radius: var(--sc-radius);
}

.sc-card:hover .sc-card__body {
  transform: translateY(0);
  opacity: 1;
}

.sc-card__author {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sc-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 0.875rem var(--sc-font);
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}

.sc-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc-card__author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sc-card__name {
  font: 600 0.9375rem var(--sc-font);
  color: #fff;
  line-height: 1.3;
}

.sc-card__bio {
  font: 400 0.75rem var(--sc-font);
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}

.sc-card__bio:empty {
  display: none;
}

/* ----------  Tech Chips  ---------- */

.sc-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
}

.sc-card__chips:empty {
  display: none;
}

.sc-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font: 500 0.6875rem var(--sc-font);
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.sc-chip:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.sc-chip--extra {
  background: rgba(66, 133, 244, 0.25);
  color: #a8cfff;
  border-color: rgba(66, 133, 244, 0.35);
  animation: sc-chipIn 0.3s ease;
}

@keyframes sc-chipIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.sc-card__links {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.sc-card__link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  font: 500 0.8125rem var(--sc-font);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.sc-card__link:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
}

.sc-card__link--primary {
  background: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.95);
  color: var(--sc-text);
}

.sc-card__link--primary:hover {
  background: #fff;
}

.sc-card__link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ----------  Empty state  ---------- */

.sc-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
}

.sc-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  fill: var(--sc-text-muted);
  opacity: 0.4;
}

.sc-empty__title {
  font: 500 1.25rem var(--sc-font);
  color: var(--sc-text);
  margin-bottom: 0.5rem;
}

.sc-empty__desc {
  font: 400 0.9375rem var(--sc-font);
  color: var(--sc-text-secondary);
}

/* ----------  Loading skeleton  ---------- */

.sc-skeleton {
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  overflow: hidden;
  background: var(--sc-bg);
  position: relative;
}

.sc-skeleton__preview {
  aspect-ratio: 4 / 3;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: sc-shimmer 1.5s infinite;
}

.sc-skeleton__namebar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(90deg, #dcdcdc 25%, #d0d0d0 50%, #dcdcdc 75%);
  background-size: 200% 100%;
  animation: sc-shimmer 1.5s infinite;
}

.sc-skeleton__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  flex-shrink: 0;
}

.sc-skeleton__name {
  height: 12px;
  width: 55%;
  border-radius: 4px;
  background: rgba(255,255,255,0.35);
}

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

/* ----------  Workshop Impact section  ---------- */

.sc-impact {
  padding: 3rem 2rem;
  margin-top: 1rem;
}

.sc-impact__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.sc-impact__title {
  font: 700 2rem var(--sc-font);
  color: var(--sc-text);
  margin: 0 0 0.5rem;
}

.sc-impact__title span {
  background: linear-gradient(135deg, #4285f4, #ea4335, #fbbc04, #34a853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sc-impact__subtitle {
  font: 400 1rem var(--sc-font);
  color: var(--sc-text-secondary);
  margin: 0;
}

.sc-impact__section-title {
  font: 600 1.25rem var(--sc-font);
  color: var(--sc-text);
  margin: 0 0 1.25rem;
}

/* Rating cards */

.sc-impact__ratings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.sc-rating-card {
  background: var(--sc-bg);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sc-rating-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.sc-rating-card__icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.75rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-rating-card:nth-child(1) .sc-rating-card__icon { background: rgba(66,133,244,0.1); }
.sc-rating-card:nth-child(2) .sc-rating-card__icon { background: rgba(251,188,4,0.12); }
.sc-rating-card:nth-child(3) .sc-rating-card__icon { background: rgba(52,168,83,0.1); }

.sc-rating-card__icon svg {
  width: 20px;
  height: 20px;
}

.sc-rating-card:nth-child(1) .sc-rating-card__icon svg { fill: #4285f4; }
.sc-rating-card:nth-child(2) .sc-rating-card__icon svg { fill: #fbbc04; }
.sc-rating-card:nth-child(3) .sc-rating-card__icon svg { fill: #34a853; }

.sc-rating-card__score {
  font: 700 2rem var(--sc-font);
  color: var(--sc-text);
  margin-bottom: 0.25rem;
}

.sc-rating-card__label {
  font: 500 0.85rem var(--sc-font);
  color: var(--sc-text-secondary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sc-rating-card__bar {
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}

.sc-rating-card__fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.sc-rating-card:nth-child(1) .sc-rating-card__fill { background: linear-gradient(90deg, #4285f4, #669df6); }
.sc-rating-card:nth-child(2) .sc-rating-card__fill { background: linear-gradient(90deg, #fbbc04, #fdd663); }
.sc-rating-card:nth-child(3) .sc-rating-card__fill { background: linear-gradient(90deg, #34a853, #5bb974); }

/* Topics chart */

.sc-impact__topics {
  margin-bottom: 3rem;
}

.sc-topics-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sc-topic-row {
  display: grid;
  grid-template-columns: 260px 1fr 40px;
  align-items: center;
  gap: 1rem;
}

.sc-topic-row__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 0.9rem var(--sc-font);
  color: var(--sc-text);
}

.sc-topic-row__icon {
  font-size: 1.1rem;
}

.sc-topic-row__bar-wrap {
  height: 28px;
  background: #f5f5f5;
  border-radius: 6px;
  overflow: hidden;
}

.sc-topic-row__bar {
  height: 100%;
  width: var(--bar-pct, 0%);
  background: var(--bar-color, #4285f4);
  border-radius: 6px;
  animation: sc-bar-grow 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
  opacity: 0.85;
}

@keyframes sc-bar-grow {
  from { width: 0; }
  to { width: var(--bar-pct, 0%); }
}

.sc-topic-row__count {
  font: 700 1rem var(--sc-font);
  color: var(--sc-text);
  text-align: center;
}

/* Testimonials */

.sc-impact__testimonials {
  margin-bottom: 2rem;
}

.sc-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.sc-testimonial {
  background: var(--sc-bg);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sc-testimonial:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.sc-testimonial__quote {
  font: 400 0.95rem/1.6 var(--sc-font);
  color: var(--sc-text);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.sc-testimonial__author {
  font: 500 0.85rem var(--sc-font);
  color: var(--sc-text-secondary);
}

/* Responsive */

@media (max-width: 768px) {
  .sc-impact__ratings {
    grid-template-columns: 1fr;
  }
  .sc-topic-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .sc-topic-row__bar-wrap {
    order: 2;
  }
  .sc-topic-row__count {
    order: 3;
    text-align: left;
  }
}

/* ----------  Footer CTA section  ---------- */

.sc-footer-cta {
  text-align: center;
  padding: 3rem 1.5rem;
  margin: 0 auto 2rem;
  max-width: 700px;
}

.sc-footer-cta__title {
  font: 700 1.75rem var(--sc-font);
  color: var(--sc-text);
  margin-bottom: 0.75rem;
}

.sc-footer-cta__desc {
  font: 400 1rem var(--sc-font);
  color: var(--sc-text-secondary);
  margin-bottom: 1.5rem;
}

/* ----------  Mobile tweaks  ---------- */

@media (max-width: 599px) {
  .sc-stats { gap: 1.5rem; }
  .sc-stats__num { font-size: 1.25rem; }
  .sc-toolbar { padding: 0 1rem; }
  .sc-grid { padding: 0 1rem 2rem; }
  .sc-hero { padding: 2.5rem 1rem 2rem; }
}
