/* ===========================================
   VIBE CODING LISTICLE - LIGHT THEME (Teal + Violet)
   =========================================== */

:root {
  /* Light base palette */
  --vc-bg: #ffffff;
  --vc-bg-secondary: #f7f8fc;
  --vc-bg-gradient: linear-gradient(180deg, #ffffff 0%, #f3f5fa 100%);
  --vc-surface: #ffffff;
  --vc-surface-elevated: #f7f8fc;
  --vc-surface-hover: #eff1f7;
  --vc-border: #e1e4eb;
  --vc-border-subtle: #edf0f5;
  --vc-border-light: #d3d7e0;

  /* Text colors */
  --vc-text-primary: #1a1d29;
  --vc-text-secondary: #4a5168;
  --vc-text-muted: #8891a5;

  /* Primary accent: Teal */
  --vc-primary: #14b8a6;
  --vc-primary-hover: #0d9488;
  --vc-primary-light: #ccfbf1;
  --vc-primary-glow: rgba(20, 184, 166, 0.12);

  /* Secondary accent: Violet */
  --vc-secondary: #8b5cf6;
  --vc-secondary-hover: #7c3aed;
  --vc-secondary-light: #ede9fe;
  --vc-secondary-glow: rgba(139, 92, 246, 0.1);

  /* Tertiary accent: Slate */
  --vc-tertiary: #64748b;
  --vc-tertiary-light: #f1f5f9;

  /* Semantic colors */
  --vc-green: #22c55e;
  --vc-green-light: #dcfce7;
  --vc-yellow: #eab308;
  --vc-yellow-light: #fef9c3;
  --vc-red: #ef4444;
  --vc-red-light: #fee2e2;

  /* Shadows */
  --vc-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --vc-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --vc-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --vc-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --vc-shadow-hover: 0 8px 30px rgba(139, 92, 246, 0.12);

  /* Radius */
  --vc-radius: 14px;
  --vc-radius-sm: 10px;
  --vc-radius-xs: 6px;
}

/* ===========================================
   BASE OVERRIDES
   =========================================== */

body.vc-light-theme {
  background: var(--vc-bg-gradient);
  min-height: 100vh;
}

body.vc-light-theme footer {
  background: var(--vc-bg-secondary) !important;
  border-top: 1px solid var(--vc-border) !important;
}

body.vc-light-theme footer,
body.vc-light-theme footer * {
  color: var(--vc-text-secondary) !important;
}

body.vc-light-theme footer a:hover {
  color: var(--vc-primary) !important;
}

/* ===========================================
   TWO-COLUMN LAYOUT
   =========================================== */

.vc-listicle-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: flex;
  gap: 48px;
}

.vc-listicle-article {
  flex: 1;
  min-width: 0;
}

.vc-listicle-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.vc-sidebar-sticky {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===========================================
   ARTICLE HEADER
   =========================================== */

.vc-listicle-header {
  text-align: left;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--vc-border);
}

.vc-listicle-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--vc-text-primary);
}

.vc-listicle-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--vc-text-secondary);
  margin-bottom: 20px;
}

.vc-listicle-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vc-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--vc-border);
  object-fit: cover;
}

.vc-author-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.vc-author-name {
  font-weight: 600;
  color: var(--vc-text-primary);
}

.vc-author-role {
  font-size: 12px;
  color: var(--vc-text-muted);
}

.vc-listicle-date {
  color: var(--vc-text-muted);
}

.vc-listicle-readtime {
  color: var(--vc-text-muted);
}

.vc-listicle-subtitle {
  font-size: 17px;
  color: var(--vc-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ===========================================
   ARTICLE INTRO
   =========================================== */

.vc-listicle-intro {
  margin-bottom: 48px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--vc-text-secondary);
}

.vc-listicle-intro p {
  margin-bottom: 16px;
}

.vc-listicle-intro p:last-child {
  margin-bottom: 0;
}

.vc-intro-lead {
  font-size: 19px;
  line-height: 1.6;
}

.vc-listicle-intro strong {
  color: var(--vc-text-primary);
}

/* ===========================================
   NUMBERED LIST ITEMS
   =========================================== */

.vc-listicle-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.vc-listicle-item {
  display: flex;
  gap: 20px;
  padding: 32px 0;
  border-bottom: 1px solid var(--vc-border-subtle);
  transition: border-color 0.2s ease;
}

.vc-listicle-item:first-child {
  border-top: 1px solid var(--vc-border-subtle);
}

.vc-listicle-item:hover {
  border-color: var(--vc-border-light);
}

.vc-item-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vc-secondary);
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
}

.vc-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 20px;
}

.vc-item-content {
  flex: 1;
  min-width: 0;
}

.vc-item-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.vc-item-title a {
  color: var(--vc-text-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.vc-item-title a:hover {
  color: var(--vc-secondary);
}

/* Badges */
.vc-item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.vc-item-badges span {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 100px;
}

.vc-badge-type {
  background: var(--vc-secondary-light);
  color: var(--vc-secondary);
}

.vc-badge-ai {
  background: var(--vc-primary-light);
  color: var(--vc-primary-hover);
}

.vc-badge-responsive {
  background: var(--vc-tertiary-light);
  color: var(--vc-tertiary);
}

.vc-badge-difficulty.vc-difficulty-beginner {
  background: var(--vc-green-light);
  color: var(--vc-green);
}

.vc-badge-difficulty.vc-difficulty-intermediate {
  background: var(--vc-yellow-light);
  color: var(--vc-yellow);
}

.vc-badge-difficulty.vc-difficulty-advanced {
  background: var(--vc-red-light);
  color: var(--vc-red);
}

/* Description */
.vc-item-description {
  color: var(--vc-text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Tags */
.vc-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.vc-tag {
  padding: 2px 8px;
  background: var(--vc-surface-elevated);
  color: var(--vc-text-muted);
  font-size: 11px;
  border-radius: 4px;
}

/* Tech Stack */
.vc-item-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.vc-tech {
  padding: 2px 8px;
  background: var(--vc-primary-light);
  color: var(--vc-primary-hover);
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
}

/* AI Prompt Section */
.vc-item-prompt {
  margin-bottom: 16px;
  border: 1px solid var(--vc-border-subtle);
  border-radius: var(--vc-radius-sm);
  overflow: hidden;
}

.vc-item-prompt summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--vc-surface-elevated);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--vc-text-secondary);
  transition: background 0.15s ease;
}

.vc-item-prompt summary:hover {
  background: var(--vc-surface-hover);
}

.vc-item-prompt summary svg {
  color: var(--vc-secondary);
  flex-shrink: 0;
}

.vc-item-prompt[open] summary {
  border-bottom: 1px solid var(--vc-border-subtle);
}

.vc-prompt-content {
  padding: 14px;
  background: var(--vc-surface);
}

.vc-prompt-content pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--vc-text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

/* CTA Link */
.vc-item-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  background: var(--vc-secondary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--vc-radius-sm);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.vc-item-cta:hover {
  background: var(--vc-secondary-hover);
  transform: translateX(2px);
}

/* Thumbnail */
.vc-item-thumbnail {
  flex-shrink: 0;
  width: 200px;
  height: 160px;
  overflow: hidden;
  border-radius: var(--vc-radius-sm);
  border: 1px solid var(--vc-border);
  background: var(--vc-surface-elevated);
}

.vc-thumb-frame {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

/* ===========================================
   CONCLUSION
   =========================================== */

.vc-listicle-conclusion {
  margin-top: 64px;
  padding: 32px;
  background: var(--vc-secondary-light);
  border-radius: var(--vc-radius);
  text-align: center;
}

.vc-listicle-conclusion h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--vc-text-primary);
}

.vc-listicle-conclusion p {
  color: var(--vc-text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.vc-listicle-conclusion p:last-child {
  margin-bottom: 0;
}

.vc-listicle-conclusion a {
  color: var(--vc-secondary);
  font-weight: 500;
  text-decoration: none;
}

.vc-listicle-conclusion a:hover {
  text-decoration: underline;
}

/* ===========================================
   EMPTY STATE
   =========================================== */

.vc-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
}

.vc-empty-state h3 {
  font-size: 20px;
  color: var(--vc-text-primary);
  margin-bottom: 8px;
}

.vc-empty-state p {
  font-size: 14px;
  color: var(--vc-text-secondary);
}

/* ===========================================
   RESPONSIVE - TABLET
   =========================================== */

@media (max-width: 960px) {
  .vc-listicle-wrapper {
    flex-direction: column;
  }

  .vc-listicle-sidebar {
    display: none;
  }
}

/* ===========================================
   RESPONSIVE - MOBILE
   =========================================== */

@media (max-width: 640px) {
  .vc-listicle-wrapper {
    padding: 24px 16px 60px;
  }

  .vc-listicle-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
  }

  .vc-listicle-meta {
    flex-direction: column;
    gap: 12px;
  }

  .vc-listicle-intro {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .vc-intro-lead {
    font-size: 17px;
  }

  .vc-listicle-content {
    gap: 0;
  }

  .vc-listicle-item {
    flex-direction: column;
    gap: 16px;
    padding: 24px 0;
  }

  .vc-item-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .vc-item-body {
    flex-direction: column;
  }

  .vc-item-title {
    font-size: 18px;
  }

  .vc-item-thumbnail {
    width: 100%;
    height: 180px;
    order: -1;
  }

  .vc-listicle-conclusion {
    margin-top: 48px;
    padding: 24px;
  }
}
