/* ================================================================
   WordPress additions for the ZJ Programmers theme.
   The original design is untouched in main.css.
   ================================================================ */

/* Keep the fixed header below the WordPress admin bar when logged in. */
.admin-bar .site-header { top: 32px; }
.admin-bar .scroll-progress { top: 32px; }
.admin-bar .mobile-menu { top: 104px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .scroll-progress { top: 46px; }
  .admin-bar .mobile-menu { top: 118px; }
}
@media (max-width: 600px) {
  /* WordPress lets the admin bar scroll away on small phones. */
  .admin-bar .site-header, .admin-bar .scroll-progress { top: 0; }
  .admin-bar .mobile-menu { top: 72px; }
}

/* Spam trap field — invisible to people. */
.zj-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Contact form sending / error state. */
.btn-submit[disabled] { opacity: .7; cursor: progress; }
.form-status { margin: 14px 0 0; padding: 12px 14px; border: 1px solid rgba(255, 99, 99, .35); border-radius: 12px; color: #ff9b9b; background: rgba(255, 99, 99, .08); font-size: .8rem; text-align: center; }

/* Project modal: optional "View live project" button next to the main one. */
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.modal-actions [hidden] { display: none !important; }

/* Regular WordPress pages, posts and 404. */
.zj-page { padding-top: 170px; min-height: 70vh; }
.zj-page-inner { max-width: 880px; }
.zj-entry-head { margin-bottom: 34px; }
.zj-entry-head h1, .zj-404 h1 { margin: 16px 0 0; font-family: "Manrope", sans-serif; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -.05em; }
.zj-entry-image img { width: 100%; height: auto; margin-bottom: 28px; border-radius: 22px; }
.zj-entry-content { padding: clamp(24px, 5vw, 48px); border-radius: 25px; color: var(--muted); line-height: 1.8; }
.zj-entry-content > :first-child { margin-top: 0; }
.zj-entry-content > :last-child { margin-bottom: 0; }
.zj-entry-content h2, .zj-entry-content h3, .zj-entry-content h4 { color: var(--text); font-family: "Manrope", sans-serif; line-height: 1.25; letter-spacing: -.03em; }
.zj-entry-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.zj-entry-content img { height: auto; border-radius: 14px; }
.zj-entry-content ul, .zj-entry-content ol { padding-left: 1.3em; }
.zj-entry-content blockquote { margin: 1.5em 0; padding-left: 18px; border-left: 3px solid var(--primary); color: var(--text); }
.zj-entry-meta { color: var(--muted); font-size: .8rem; }
.zj-post-list { display: grid; gap: 18px; }
.zj-post-card { padding: 28px; border-radius: 22px; }
.zj-post-card h2 { margin: 6px 0 10px; font-family: "Manrope", sans-serif; letter-spacing: -.03em; }
.zj-post-card p { color: var(--muted); }
.zj-pagination { margin-top: 30px; }
.zj-pagination .nav-links { display: flex; gap: 10px; }
.zj-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; }
.zj-pagination .current { border-color: var(--primary); color: var(--primary); }
.zj-404 { text-align: center; }
.zj-404 p { margin: 18px auto 28px; color: var(--muted); max-width: 520px; }
.zj-404 .btn { display: inline-flex; }
