/**
 * Showcase Shared Components
 * Common styles for all showcase templates
 */

/* ========================================
   Back to Showcase Link
   ======================================== */
.showcase-back-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: background 0.3s ease, transform 0.3s ease;

  /* Default colors (can be overridden) */
  --showcase-back-bg: rgba(0, 0, 0, 0.6);
  --showcase-back-bg-hover: rgba(0, 0, 0, 0.8);
  --showcase-back-color: #ffffff;

  background: var(--showcase-back-bg);
  color: var(--showcase-back-color);
}

.showcase-back-link:hover {
  background: var(--showcase-back-bg-hover);
  transform: translateX(-2px);
}

.showcase-back-link svg {
  width: 16px;
  height: 16px;
}

/* Light theme variant */
.showcase-back-link--light {
  --showcase-back-bg: rgba(255, 255, 255, 0.9);
  --showcase-back-bg-hover: rgba(255, 255, 255, 1);
  --showcase-back-color: #1a202c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Dark theme variant (solid dark) */
.showcase-back-link--dark {
  --showcase-back-bg: rgba(0, 0, 0, 0.6);
  --showcase-back-bg-hover: rgba(0, 0, 0, 0.8);
  --showcase-back-color: #ffffff;
}

/* Glass variant (for dark backgrounds - semi-transparent white) */
.showcase-back-link--glass {
  --showcase-back-bg: rgba(255, 255, 255, 0.1);
  --showcase-back-bg-hover: rgba(255, 255, 255, 0.15);
  --showcase-back-color: rgba(255, 255, 255, 0.7);
}

.showcase-back-link--glass:hover {
  --showcase-back-color: rgba(255, 255, 255, 0.9);
}

/* Primary color variant (for Corporate Clean) */
.showcase-back-link--primary {
  --showcase-back-bg: rgba(26, 54, 93, 0.9);
  --showcase-back-bg-hover: rgba(26, 54, 93, 1);
  --showcase-back-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .showcase-back-link {
    top: 12px;
    left: 12px;
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
  }

  .showcase-back-link svg {
    width: 14px;
    height: 14px;
  }
}
