/**
 * PromptVerse - Custom Editorial Styles & Utility Enhancements
 * Loaded alongside local compiled tailwind.css
 */

:root {
  --pv-accent: #4f46e5;
  --pv-accent-hover: #4338ca;
}

/* Smooth custom scrollbars for prompt boxes and dropdowns */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Rich prose formatting for static pages & SEO content blocks */
.pv-prose h2 {
  font-size: 1.375rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.pv-prose h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.pv-prose p {
  color: #475569;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.pv-prose ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  color: #475569;
  margin-bottom: 1rem;
}
.pv-prose li {
  margin-bottom: 0.375rem;
}
.pv-prose a {
  color: #4f46e5;
  text-decoration: underline;
}

/* Line clamp fallbacks */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}


/* Admin responsive layout: desktop sidebar + mobile off-canvas navigation */
.admin-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
}
.admin-menu-toggle svg { width: 21px; height: 21px; }
.admin-sidebar-backdrop { display: none; }
.admin-content { overflow-wrap: anywhere; }
.admin-content table { min-width: 680px; }
.admin-content { min-width: 0; }
.admin-content form, .admin-content article { min-width: 0; }
.admin-content .overflow-x-auto { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-content input, .admin-content select, .admin-content textarea { max-width: 100%; }

@media (max-width: 767px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .admin-shell { min-height: 100dvh; }
  .admin-menu-toggle { display: inline-flex; }
  .admin-sidebar {
    position: fixed;
    z-index: 60;
    inset: 0 auto 0 0;
    width: min( min(84vw, 320px), 320px );
    max-width: calc(100vw - 48px);
    height: 100dvh;
    min-height: 100dvh;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform .25s ease;
    box-shadow: 18px 0 45px rgba(15, 23, 42, .18);
  }
  body.admin-nav-open .admin-sidebar { transform: translateX(0); }
  .admin-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 50;
    border: 0;
    padding: 0;
    background: rgba(15, 23, 42, .52);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
  }
  body.admin-nav-open .admin-sidebar-backdrop { opacity: 1; visibility: visible; }
  .admin-main { width: 100%; max-width: 100%; min-width: 0; }
  .admin-main > header { min-height: 64px; height: auto; gap: 8px; padding: 10px 12px; }
  .admin-main > header > div:last-child { gap: 6px; flex: 0 0 auto; }
  .admin-main > header a { white-space: nowrap; }
  .admin-main > header a[href*="logout"] { padding-left: 10px; padding-right: 10px; }
  .admin-content { width: 100%; max-width: 100%; padding: 16px 12px; }
  .admin-content > .mb-6 form { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .admin-content > .mb-6 form input[type="search"] { grid-column: 1 / -1; width: 100%; min-width: 0; }
  .admin-content > .mb-6 form select { width: 100%; min-width: 0; }
  .admin-content > .mb-6 form button { min-width: 84px; }
  .admin-content > .mb-6 > a { width: 100%; }
  .admin-content .rounded-2xl.border.bg-white { max-width: 100%; }
  .admin-content table { min-width: 680px; }
.admin-content { min-width: 0; }
.admin-content form, .admin-content article { min-width: 0; }
  .admin-main footer { flex-wrap: wrap; gap: 6px; padding: 14px 12px; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-sidebar, .admin-sidebar-backdrop { transition: none !important; }
}




/* PromptSeen7 white YouTube-style skeleton loader */
.ps7-loader{position:fixed;inset:0;z-index:99999;background:#fff;color:#171717;overflow:auto;opacity:1;visibility:visible;transition:opacity .28s ease,visibility .28s ease}.ps7-loader.ps7-loader-hidden{opacity:0;visibility:hidden;pointer-events:none}.ps7-loader-inner{max-width:1280px;margin:0 auto;padding:18px 24px 28px;min-height:100%;display:flex;flex-direction:column}.ps7-loader-top{height:58px;display:flex;align-items:center;gap:24px;border-bottom:1px solid #f0f0f0;padding-bottom:14px}.ps7-loader-brand{display:flex;align-items:center;gap:10px;min-width:225px;font-size:21px;font-weight:850;letter-spacing:-.6px;color:#171717}.ps7-loader-logo{max-width:38px;max-height:38px;object-fit:contain;border-radius:9px}.ps7-loader-mark{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;color:white;background:linear-gradient(135deg,#4f46e5,#9333ea)}.ps7-loader-mark svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.ps7-skel{display:block;position:relative;overflow:hidden;background:#ededf0;border-radius:9px}.ps7-skel:after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.82),transparent);animation:ps7-shimmer 1.35s infinite}.ps7-top-search{height:39px;max-width:460px;flex:1;margin-left:auto;border-radius:22px;background:#f1f1f3}.ps7-top-circle{width:34px;height:34px;border-radius:50%;background:#eeeef1}.ps7-loader-body{display:grid;grid-template-columns:190px minmax(0,1fr);gap:28px;padding-top:28px;flex:1}.ps7-loader-sidebar{display:flex;flex-direction:column;gap:19px;padding:8px 8px 0 0}.ps7-side-line{height:13px;width:76%;border-radius:20px}.ps7-side-line.wide{width:92%;height:16px;margin-bottom:10px}.ps7-side-line.short{width:54%}.ps7-loader-content{min-width:0}.ps7-hero-skeleton{padding:26px 28px;margin-bottom:22px;border:1px solid #f0eef8;border-radius:20px;background:linear-gradient(110deg,#fbfaff,#fff)}.ps7-hero-title{width:42%;height:24px;margin-bottom:13px;background:#e9e5f3}.ps7-hero-copy{width:65%;height:12px;margin-bottom:18px}.ps7-hero-button{width:118px;height:34px;border-radius:10px;background:#e6e0f4}.ps7-category-skeleton{display:flex;gap:10px;overflow:hidden;margin:0 0 22px}.ps7-chip{width:76px;height:31px;border-radius:20px;flex:0 0 auto}.ps7-chip:nth-child(2){width:92px}.ps7-chip:nth-child(4){width:84px}.ps7-grid-skeleton{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.ps7-prompt-skeleton{min-width:0}.ps7-thumb{width:100%;aspect-ratio:4/3;border-radius:14px;margin-bottom:12px;background:#eaeaec}.ps7-card-line{height:12px;width:82%;margin-bottom:9px}.ps7-card-line.small{height:9px;width:54%;background:#f1f1f3}.ps7-loader-caption{display:flex;align-items:center;justify-content:center;gap:9px;color:#85838c;font-size:12px;padding:25px 0 4px}.ps7-loader-dot{width:7px;height:7px;border-radius:50%;background:#7c3aed;box-shadow:0 0 0 4px #f1eafe;animation:ps7-pulse 1s ease-in-out infinite}@keyframes ps7-shimmer{100%{transform:translateX(100%)}}@keyframes ps7-pulse{50%{opacity:.35;transform:scale(.8)}}
@media(max-width:767px){.ps7-loader-inner{padding:12px 14px 20px}.ps7-loader-top{height:52px;gap:12px}.ps7-loader-brand{min-width:0;font-size:18px;gap:8px}.ps7-loader-logo,.ps7-loader-mark{width:32px;height:32px}.ps7-top-search{max-width:none;min-width:35px;height:34px}.ps7-top-circle{width:30px;height:30px}.ps7-loader-body{display:block;padding-top:18px}.ps7-loader-sidebar{display:none}.ps7-hero-skeleton{padding:20px 17px;margin-bottom:16px}.ps7-hero-title{width:72%;height:20px}.ps7-hero-copy{width:90%}.ps7-grid-skeleton{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ps7-thumb{border-radius:11px;margin-bottom:9px}.ps7-category-skeleton{gap:7px;margin-bottom:16px}.ps7-chip{height:28px;width:64px}}
@media(prefers-reduced-motion:reduce){.ps7-skel:after,.ps7-loader-dot{animation:none}.ps7-loader{transition:none}}
