/* ViralCuts Design System — inspired by MagicLight.ai */

:root {
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 14px;
  --font-size-sm: 12px;
  --font-size-lg: 16px;

  /* Colors */
  --bg-primary: #0a0a12;
  --bg-card: #0f1114;
  --bg-card-2: #1e1e26;
  --bg-popup: #1e1e26;
  --bg-sidebar: #0d0d18;
  --bg-header: rgba(10, 10, 18, 0.85);

  --text-primary: #ffffff;
  --text-muted: hsla(0, 0%, 100%, 0.5);
  --text-subtle: hsla(0, 0%, 100%, 0.25);

  --accent-yellow: #ffd700;
  --accent-purple: #8b5cf6;
  --accent-orange: #f97316;
  --accent-pink: #ec4899;

  /* Gradient */
  --gradient-cta: linear-gradient(90deg, #8b5cf6, #ec4899, #f97316);
  --gradient-border: linear-gradient(135deg, #8b5cf6, #ec4899, #f97316);
  --gradient-text: linear-gradient(90deg, #a78bfa, #ec4899, #fb923c);

  /* Layout */
  --sidebar-width: 176px;
  --header-height: 80px;
  --border-radius: 6px;
  --border-radius-lg: 12px;
  --border-radius-pill: 9999px;

  /* Grid overlay */
  --grid-color: rgba(139, 92, 246, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
}

/* === GRID BACKGROUND === */
.vc-grid-bg {
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* === HEADER === */
.vc-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 100;
  gap: 16px;
}

.vc-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  width: var(--sidebar-width);
  flex-shrink: 0;
}

.vc-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.vc-logo-text {
  font-size: 18px;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vc-header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vc-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* === BUTTONS === */
.vc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--border-radius-pill);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.vc-btn-primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}
.vc-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.45);
}

.vc-btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.vc-btn-secondary:hover {
  border-color: rgba(139, 92, 246, 0.7);
  background: rgba(139, 92, 246, 0.08);
}

.vc-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border-radius: var(--border-radius);
}
.vc-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.vc-btn-sm {
  padding: 6px 14px;
  font-size: var(--font-size-sm);
}

/* === SIDEBAR === */
.vc-sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background: var(--bg-sidebar);
  border-right: 1px solid rgba(139, 92, 246, 0.08);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  z-index: 50;
}

.vc-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--font-size-base);
  font-weight: 500;
  border-radius: 0;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.vc-sidebar-item:hover {
  background: hsla(0, 0%, 100%, 0.07);
  color: var(--text-primary);
}

.vc-sidebar-item.active {
  background: rgba(139, 92, 246, 0.15);
  color: var(--text-primary);
  font-weight: 600;
  border-right: 2px solid var(--accent-purple);
}

.vc-sidebar-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.vc-sidebar-label {
  font-size: 13px;
}

.vc-sidebar-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 20px;
  background: var(--gradient-cta);
  color: #fff;
  font-weight: 700;
}

.vc-sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 8px 20px;
}

/* === MAIN LAYOUT === */
.vc-layout {
  padding-top: var(--header-height);
  padding-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.vc-content {
  padding: 32px 40px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* === CARDS === */
.vc-card {
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  transition: all 0.2s ease;
}

.vc-card:hover {
  border-color: rgba(139, 92, 246, 0.25);
  background: var(--bg-card-2);
}

.vc-card-selectable {
  cursor: pointer;
}

.vc-card-selectable.selected {
  border-color: transparent;
  background: linear-gradient(var(--bg-card-2), var(--bg-card-2)) padding-box,
              var(--gradient-border) border-box;
  border: 1px solid transparent;
}

/* === GRADIENT BORDER WRAPPER === */
.vc-gradient-border {
  position: relative;
  border-radius: var(--border-radius-lg);
  padding: 1px;
  background: var(--gradient-border);
}
.vc-gradient-border > * {
  border-radius: calc(var(--border-radius-lg) - 1px);
  background: var(--bg-card);
}

/* === BADGE === */
.vc-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.vc-badge-free    { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.vc-badge-starter { background: rgba(249,115,22,0.15); color: #fb923c; }
.vc-badge-pro     { background: rgba(139,92,246,0.15); color: #a78bfa; }
.vc-badge-business{ background: rgba(34,211,238,0.15); color: #22d3ee; }
.vc-badge-agency  { background: rgba(251,191,36,0.15); color: #fbbf24; }
.vc-badge-enterprise{ background: rgba(139,92,246,0.2); color: #c084fc; border: 1px solid rgba(139,92,246,0.3); }

/* === PROGRESS BAR === */
.vc-progress {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 9999px;
  overflow: hidden;
}
.vc-progress-bar {
  height: 100%;
  background: var(--gradient-cta);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

/* === STEP INDICATOR === */
.vc-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}
.vc-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.vc-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid rgba(139, 92, 246, 0.3);
  color: var(--text-muted);
  background: var(--bg-card);
  transition: all 0.3s ease;
}
.vc-step.active .vc-step-circle {
  background: var(--gradient-cta);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 16px rgba(139,92,246,0.4);
}
.vc-step.done .vc-step-circle {
  background: rgba(139,92,246,0.2);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}
.vc-step-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.vc-step.active .vc-step-label { color: var(--text-primary); font-weight: 600; }
.vc-step-connector {
  flex: 1;
  height: 1px;
  background: rgba(139,92,246,0.2);
  margin: 0 8px;
}

/* === INPUT / TEXTAREA === */
.vc-input, .vc-textarea, .vc-select {
  background: var(--bg-card-2);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  padding: 10px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.vc-input:focus, .vc-textarea:focus, .vc-select:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
}
.vc-input::placeholder, .vc-textarea::placeholder { color: var(--text-subtle); }

/* === SECTION TITLE === */
.vc-section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.vc-section-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.vc-gradient-title {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === STATUS COLORS === */
.vc-status-done    { color: #4ade80; }
.vc-status-failed  { color: #f87171; }
.vc-status-pending { color: #fbbf24; }
.vc-status-active  { color: #60a5fa; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,0.5); }

/* === ANIMATIONS === */
@keyframes vc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes vc-spin {
  to { transform: rotate(360deg); }
}
@keyframes vc-fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.vc-animate-in { animation: vc-fadeIn 0.3s ease forwards; }
.vc-pulse { animation: vc-pulse 2s ease-in-out infinite; }
.vc-spin { animation: vc-spin 1s linear infinite; }

/* === MODAL === */
.vc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vc-modal {
  background: var(--bg-popup);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 16px;
  padding: 32px;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* === TOOLTIP === */
.vc-tooltip {
  position: relative;
}
.vc-tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card-2);
  color: var(--text-primary);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: none;
  z-index: 999;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .vc-sidebar { display: none; }
  .vc-layout { padding-left: 0; padding-bottom: 72px; }
  .vc-content { padding: 20px 16px; }
}

/* === MOBILE BOTTOM NAV === */
.vc-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(10, 10, 18, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(139, 92, 246, 0.12);
  z-index: 100;
  align-items: stretch;
  justify-content: space-around;
}

@media (max-width: 768px) {
  .vc-bottom-nav { display: flex; }
}

.vc-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  transition: color 0.15s;
  padding: 8px 4px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.vc-bottom-nav-item:hover,
.vc-bottom-nav-item.active {
  color: var(--accent-purple);
}

.vc-bottom-nav-icon {
  font-size: 20px;
  line-height: 1;
}

.vc-bottom-nav-item.active .vc-bottom-nav-icon {
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.7));
}
