/* mini-on-ai — showcase site styles */

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-hover: #F9FAFB;
  --border: #E5E7EB;
  --text: #111827;
  --text-muted: #6B7280;
  --brand: #6366F1;
  --brand-hover: #4F46E5;
  --brand-light: #EEF2FF;
  --tag-bg: #F3F4F6;
  --tag-text: #374151;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  gap: 8px;
}

.site-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.site-logo:hover {
  color: var(--brand);
}

.product-count {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--tag-bg);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

/* Hero */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-text h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.15;
}

.hero-text p {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
  max-width: 480px;
}

.hero-illustration {
  width: 380px;
  flex-shrink: 0;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    gap: 32px;
    padding: 40px 16px 24px;
  }
  .hero-text h1 {
    font-size: 32px;
  }
  .hero-illustration {
    width: 100%;
    max-width: 300px;
    align-self: center;
  }
}

/* Catalog */
.catalog {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px 80px;
}

.catalog-header {
  margin-bottom: 32px;
}

.catalog-subtitle {
  color: var(--text-muted);
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Product card */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  box-shadow: var(--shadow);
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #D1D5DB;
  transform: translateY(-2px);
}

/* Thumbnail */
.product-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

.product-thumbnail-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--brand-light) 0%, #E0E7FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.product-thumbnail-placeholder::after {
  content: '';
  width: 40px;
  height: 40px;
  background: var(--brand);
  opacity: 0.15;
  border-radius: 8px;
}

.product-card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 3px 8px;
  border-radius: 4px;
}

.category-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
}
.category-prompt-packs { background: #EEF2FF; color: #4F46E5; }
.category-checklist    { background: #F0FDF4; color: #16A34A; }
.category-swipe-file   { background: #FFF7ED; color: #C2410C; }
.category-mini-guide   { background: #FAF5FF; color: #7C3AED; }
.category-n8n-template { background: #FFF5F0; color: #C05621; }

.product-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.2px;
}

.product-title a {
  color: var(--text);
  text-decoration: none;
}

.product-title a:hover {
  color: var(--brand);
}

.product-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
  flex: 1;
  line-height: 1.55;
}

.product-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Buttons */
.btn-cta {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: background 0.15s, transform 0.1s;
  margin-top: 4px;
  align-self: flex-start;
}

.btn-cta:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.btn-coming-soon {
  background: var(--tag-bg);
  color: var(--text-muted);
  cursor: default;
  pointer-events: none;
}

.btn-coming-soon:hover {
  background: var(--tag-bg);
  transform: none;
}

.btn-large {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 10px;
  align-self: auto;
}

/* Product detail page */
.product-detail {
  max-width: 700px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.product-detail h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 12px 0 16px;
  color: var(--text);
  line-height: 1.2;
}

.product-desc-large {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 28px;
  line-height: 1.65;
}

.product-stats {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  display: flex;
  gap: 20px;
  font-weight: 500;
}

.product-details {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  padding-top: 36px;
}

.product-details h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--text);
}

.product-details ul {
  padding-left: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-details ul li {
  color: var(--text-muted);
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.product-details ul li::before {
  content: '✓';
  color: var(--brand);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.empty-state h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--text);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 28px 24px;
  color: var(--text-muted);
  font-size: 13px;
  background: var(--surface-hover);
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .catalog {
    padding: 32px 16px 60px;
  }

  .catalog-header h1 {
    font-size: 26px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-detail {
    padding: 32px 16px 60px;
  }

  .product-detail h1 {
    font-size: 28px;
  }

  .site-header-inner {
    height: 56px;
  }
}
