/* ====================================================== */
/* MASTER PROMPTS — CLEAN & MODERN DESIGN                 */
/* ====================================================== */

:root {
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border2: #cbd5e1;
  --text: #0f172a;
  --text2: #334155;
  --text3: #64748b;
  --text4: #94a3b8;
  --primary: #0f172a;
  --primary-hover: #1e293b;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.07);
}

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

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Merriweather', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

/* ====================================================== */
/* TOP NAVBAR                                             */
/* ====================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  width: 100%;
}

.site-nav-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: .98rem;
  letter-spacing: -.01em;
  white-space: nowrap;
  color: var(--text);
}

.brand-avatar-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fef3c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid #fde68a;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
}

.nav-auth-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav-link {
  font-size: .76rem;
  font-weight: 600;
  color: var(--text2);
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background .15s;
}

.top-nav-link:hover {
  background: #f1f5f9;
}

.top-nav-signup-btn {
  font-size: .76rem;
  font-weight: 700;
  color: #fff;
  background: #0f172a;
  padding: 5px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform .15s, background .15s;
}

.top-nav-signup-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

/* ====================================================== */
/* CONTAINERS                                             */
/* ====================================================== */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

.container-sm {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* ====================================================== */
/* CLEAN COMPACT STORE HEADER (No Clutter)                */
/* ====================================================== */
.store-header {
  padding-top: 24px;
  padding-bottom: 16px;
  text-align: center;
}

.store-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.store-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .88rem;
  color: var(--text3);
}

/* ====================================================== */
/* SEARCH & CATEGORY PILLS                                */
/* ====================================================== */
.search-input-box {
  position: relative;
  width: 100%;
  margin-bottom: 14px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text4);
  font-size: 14px;
}

.search-input-box input {
  width: 100%;
  padding: 11px 40px 11px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow);
  transition: border-color .2s;
}

.search-input-box input:focus {
  border-color: #94a3b8;
}

.clear-search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text4);
  cursor: pointer;
}

.category-scroll-wrapper {
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 6px;
  margin-bottom: 20px;
}

.category-scroll {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.cat-pill {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all .15s ease;
}

.cat-pill:hover {
  background: #f1f5f9;
}

.cat-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* ====================================================== */
/* PRODUCTS LIST & CARDS                                  */
/* ====================================================== */
.products-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.product-row-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}

.product-row-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-thumb {
  width: 140px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  flex: 1;
  min-width: 0;
}

.product-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.35;
}

.product-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .84rem;
  color: var(--text3);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 700;
}

.badge-paid {
  background: #fef3c7;
  color: #b45309;
}

.badge-free {
  background: #d1fae5;
  color: #065f46;
}

.badge-cat {
  background: #f1f5f9;
  color: #475569;
}

.product-action {
  flex-shrink: 0;
}

.btn-access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: .86rem;
  font-weight: 700;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #1e293b;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
  transition: all .15s;
  white-space: nowrap;
}

.btn-access:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

/* ====================================================== */
/* SINGLE PROMPT DETAIL VIEW (Exact Match to Image 2)     */
/* ====================================================== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  color: var(--text3);
  margin-bottom: 18px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: color .15s;
}

.back-link:hover {
  color: var(--text);
}

.detail-cover-img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 20px;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.detail-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #0f172a;
  line-height: 1.3;
}

.product-platforms-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 8px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: .78rem;
  font-weight: 700;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Master Prompt Content Card (Exact Image 2) */
.prompt-box-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}

.prompt-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.prompt-box-label {
  font-size: .92rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.prompt-box-arrow {
  color: #f59e0b;
  font-weight: 900;
  font-family: monospace;
  font-size: 1.1rem;
}

.btn-copy-prompt {
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  font-size: .82rem;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-copy-prompt:hover {
  background: #1e293b;
}

.prompt-code-body {
  background: #0f172a;
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .82rem;
  line-height: 1.6;
  padding: 16px;
  border-radius: 6px;
  max-height: 480px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: text;
}

.prompt-code-body::-webkit-scrollbar {
  width: 8px;
}

.prompt-code-body::-webkit-scrollbar-track {
  background: #0f172a;
}

.prompt-code-body::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

/* ====================================================== */
/* PAGINATION                                             */
/* ====================================================== */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 20px 0 60px;
}

.page-nav-btn {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  box-shadow: var(--shadow);
}

.page-nav-btn:hover:not(:disabled) {
  background: #f1f5f9;
}

.page-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-numbers-wrap {
  display: flex;
  gap: 4px;
}

.page-item-btn {
  width: 36px;
  height: 36px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  cursor: pointer;
  transition: all .2s;
}

.page-item-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* ====================================================== */
/* TOAST & FOOTER                                         */
/* ====================================================== */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  border: 1px solid #334155;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.footer {
  margin-top: auto;
  padding: 24px 0;
  text-align: center;
  font-size: .8rem;
  color: var(--text4);
  border-top: 1px solid var(--border);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.hidden {
  display: none !important;
}

/* ====================================================== */
/* RESPONSIVE MOBILE (< 640px)                            */
/* ====================================================== */
@media (max-width: 640px) {
  .site-nav-container, .container, .container-sm {
    padding: 0 12px;
  }

  .store-header {
    padding-top: 16px;
    padding-bottom: 12px;
  }

  .store-title {
    font-size: 1.25rem;
  }

  .product-row-card {
    padding: 10px;
    gap: 10px;
  }

  .product-thumb {
    width: 72px;
    height: 58px;
    border-radius: 6px;
  }

  .product-title {
    font-size: .84rem;
    margin-bottom: 3px;
  }

  .product-desc {
    display: none;
  }

  .btn-access {
    padding: 6px 10px;
    font-size: .75rem;
  }

  .detail-title {
    font-size: 1.25rem;
  }

  .prompt-box-card {
    padding: 14px;
  }
}
