/* ---- React mount area: reserve space + branded loading state ---- */
.cp-app { min-height: 78vh; }
.cp-app:empty { position: relative; }
/* pulsing COLDPOST mark */
.cp-app:empty::after {
  content: ""; position: absolute; left: 50%; top: 176px; width: 48px; height: 48px; margin-left: -24px;
  background: url("../img/coldpost-mark.svg") center / contain no-repeat;
  border-radius: 50%; animation: cpMark 1.3s var(--ease) infinite;
  filter: drop-shadow(0 6px 16px rgba(0,255,135,.35));
}
/* radiating mint ring */
.cp-app:empty::before {
  content: ""; position: absolute; left: 50%; top: 176px; width: 48px; height: 48px; margin-left: -24px;
  border-radius: 50%; animation: cpRing 1.6s ease-out infinite;
}
@keyframes cpMark { 0%,100% { transform: scale(.84); opacity: .55; } 50% { transform: scale(1); opacity: 1; } }
@keyframes cpRing { 0% { box-shadow: 0 0 0 0 rgba(0,255,135,.45); } 100% { box-shadow: 0 0 0 30px rgba(0,255,135,0); } }
.cp-app > * { animation: cpfade .45s var(--ease) both; }
@keyframes cpfade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cp-app > * { animation: none; } .cp-app:empty::after, .cp-app:empty::before { animation: none; } }

/* ============================================================
   COLDPOST WordPress theme — PHP chrome + blog styles
   (loads after styles.css / mockups.css / pages.css)
   ============================================================ */

/* ---- PHP header (nav) ---- */
.cp-nav { position: sticky; top: 0; z-index: 60; background: rgba(250,252,251,.82);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s, background .25s; }
.cp-nav.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(250,252,251,.92); }
.cp-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.cp-brand { display: inline-flex; align-items: center; gap: 11px; }
.cp-brand img { height: 27px; width: auto; display: block; }
.cp-menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.cp-menu a { font-size: 14.5px; font-weight: 500; color: var(--gray); transition: color .18s; text-decoration: none; }
.cp-menu a:hover, .cp-menu .current-menu-item > a { color: var(--ink); }
.cp-nav-cta { display: flex; align-items: center; gap: 10px; }
.cp-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg-2); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.cp-mobile { display: none; }
@media (max-width: 860px){
  .cp-menu, .cp-nav-cta { display: none; }
  .cp-burger { display: inline-flex; }
  .cp-mobile { display: none; border-top: 1px solid var(--line); background: var(--bg-2); padding: 12px 32px 18px; }
  .cp-mobile.open { display: block; }
  .cp-mobile ul { list-style: none; margin: 0; padding: 0; }
  .cp-mobile a { display: block; padding: 11px 12px; font-size: 16px; font-weight: 600; color: var(--ink);
    border-radius: 9px; text-decoration: none; transition: background .15s, color .15s; }
  .cp-mobile a:active, .cp-mobile a:hover { background: var(--tint); color: var(--accent-ink); }
  .cp-mobile-cta { display: flex; flex-direction: row; gap: 10px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
  .cp-mobile-cta .btn { flex: 1; height: 48px; font-size: 14.5px; gap: 8px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
  .cp-mobile-cta .btn svg { width: 15px; height: 15px; flex: none; display: block; }
}

/* ---- PHP footer ---- */
.cp-foot-menu { list-style: none; margin: 0; padding: 0; }
.cp-foot-menu a { display: block; font-size: 14.5px; color: var(--gray); margin-bottom: 11px; transition: color .15s; text-decoration: none; }
.cp-foot-menu a:hover { color: var(--ink); }

/* ---- Blog (native posts) ---- */
.cp-blog { padding: 56px 0 0; }
.cp-blog .post-grid { margin-top: 8px; }
.cp-post-thumb { height: 168px; position: relative; overflow: hidden; background: linear-gradient(135deg,#1f2937,#0c111b); display:block; }
.cp-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-feature-thumb { min-height: 320px; background: linear-gradient(135deg,#1f2937,#0c111b); position: relative; overflow: hidden; }
.cp-feature-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; position:absolute; inset:0; }
.cp-thumb-motif { position:absolute; inset:0; display:grid; place-items:center; color: rgba(0,255,135,.9); }
.cp-thumb-motif .g { position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; }
.post-card .av { width: 28px; height: 28px; border-radius: 99px; background: var(--ink); color: var(--accent); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.cp-cat-pill { border: 1px solid var(--line); background: var(--bg-2); border-radius: 99px; padding: 8px 16px;
  font-size: 13.5px; font-weight: 600; color: var(--gray); cursor: pointer; transition: all .18s; text-decoration: none; }
.cp-cat-pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cp-cat-pill:hover:not(.on) { border-color: #d4d8df; color: var(--ink); }

/* ---- Single post (article) ---- */
.cp-article { max-width: 760px; margin: 0 auto; padding: 8px 0 0; }
.cp-article .cp-cat { display:inline-flex; align-items:center; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--tint); border: 1px solid rgba(4,122,72,.2); border-radius: 99px; padding: 4px 10px; }
.cp-article h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 18px 0 0; }
.cp-article .cp-meta { display:flex; align-items:center; gap: 11px; margin: 22px 0; font-size: 14px; color: var(--gray-2); }
.cp-article .cp-meta .av { width: 36px; height: 36px; border-radius: 99px; background: var(--ink); color: var(--accent); display:grid; place-items:center; font-weight:700; font-size:13px; }
.cp-article .cp-hero-img { width: 100%; border-radius: var(--radius); overflow: hidden; margin: 8px 0 30px; border: 1px solid var(--line); }
.cp-article .cp-hero-img img { width: 100%; display: block; }
.cp-prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.cp-prose p { margin: 0 0 20px; }
.cp-prose h2 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; margin: 36px 0 14px; }
.cp-prose h3 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
.cp-prose ul, .cp-prose ol { margin: 0 0 20px; padding-left: 22px; }
.cp-prose li { margin-bottom: 8px; }
.cp-prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.cp-prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.cp-prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--ink); font-size: 19px; }

/* page-content (default page.php) */
.cp-page-body { max-width: 760px; margin: 0 auto; }
.cp-page-body h1.page-title { margin-bottom: 24px; }

/* pagination + 404 */
.cp-pagination { display:flex; gap: 8px; justify-content:center; margin-top: 44px; flex-wrap: wrap; }
.cp-pagination .page-numbers { display:inline-flex; align-items:center; justify-content:center; min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--bg-2); color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.cp-pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.cp-pagination .page-numbers:hover:not(.current) { border-color: #d4d8df; }
.cp-404 { text-align:center; padding: 100px 0; }
.cp-404 .big { font-size: 90px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
