/*
Theme Name: NusaQu Demo
Theme URI: https://nusaqu.pastibisa.app
Description: Custom theme for NusaQu AI Content Generator demo website.
Author: NusaQu
Author URI: https://nusaqu.pastibisa.app
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: nusaqu-demo
*/

/* ── NusaQu Brand Colors ─────────────────────────── */
:root {
  --nusaqu-primary: #6366f1;
  --nusaqu-primary-dark: #4f46e5;
  --nusaqu-primary-light: #a5b4fc;
  --nusaqu-secondary: #0ea5e9;
  --nusaqu-accent: #8b5cf6;
  --nusaqu-dark: #1e1b4b;
  --nusaqu-gray: #64748b;
  --nusaqu-light: #f8fafc;
  --nusaqu-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #0ea5e9 100%);
}

/* ── Global Styles ────────────────────────────────── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1e293b;
  background: var(--nusaqu-light);
}

/* ── Header / Navigation ──────────────────────────── */
.wp-block-template-part header,
header.wp-block-template-part {
  background: var(--nusaqu-dark) !important;
  padding: 1rem 2rem !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.wp-block-site-title a,
.wp-block-site-title {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  text-decoration: none !important;
}

.wp-block-navigation a {
  color: #e2e8f0 !important;
  font-weight: 500 !important;
  transition: color 0.2s ease !important;
}

.wp-block-navigation a:hover {
  color: var(--nusaqu-primary-light) !important;
}

/* ── Post Cards ───────────────────────────────────── */
.wp-block-post-template {
  gap: 2rem !important;
}

.wp-block-post {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e2e8f0;
}

.wp-block-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
}

.wp-block-post-title a {
  color: var(--nusaqu-dark) !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  transition: color 0.2s ease !important;
}

.wp-block-post-title a:hover {
  color: var(--nusaqu-primary) !important;
}

.wp-block-post-date {
  color: var(--nusaqu-gray) !important;
  font-size: 0.875rem !important;
}

.wp-block-post-excerpt {
  color: #475569 !important;
  line-height: 1.7 !important;
}

/* ── Category Tags ────────────────────────────────── */
.wp-block-post-terms a {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  color: var(--nusaqu-primary-dark) !important;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.wp-block-post-terms a:hover {
  background: var(--nusaqu-primary);
  color: #ffffff !important;
}

/* ── Single Post Content ──────────────────────────── */
.wp-block-post-content {
  line-height: 1.8;
  font-size: 1.05rem;
}

.wp-block-post-content h2 {
  color: var(--nusaqu-dark);
  font-weight: 700;
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--nusaqu-primary-light);
}

.wp-block-post-content h3 {
  color: var(--nusaqu-primary-dark);
  font-weight: 600;
}

.wp-block-post-content blockquote {
  border-left: 4px solid var(--nusaqu-primary) !important;
  background: #f1f5f9;
  padding: 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
}

/* ── Footer ───────────────────────────────────────── */
.wp-block-template-part footer,
footer.wp-block-template-part {
  background: var(--nusaqu-dark) !important;
  color: #cbd5e1 !important;
  padding: 3rem 2rem !important;
}

footer .wp-block-site-title,
footer .wp-block-site-title a {
  color: #ffffff !important;
}

footer a {
  color: var(--nusaqu-primary-light) !important;
  text-decoration: none !important;
}

footer a:hover {
  color: #ffffff !important;
}

/* ── NusaQu Badge ─────────────────────────────────── */
.nusaqu-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 1rem;
}

.nusaqu-badge img {
  width: 16px;
  height: 16px;
}

/* ── Powered By Banner ────────────────────────────── */
.nusaqu-powered-banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: white;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

.nusaqu-powered-banner a {
  color: var(--nusaqu-primary-light) !important;
  font-weight: 600;
  text-decoration: underline !important;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .nusaqu-hero h1 {
    font-size: 1.75rem;
  }
  
  .wp-block-post {
    padding: 1.5rem !important;
  }
}

/* ── Utility Classes ──────────────────────────────── */
.has-nusaqu-primary-color {
  color: var(--nusaqu-primary) !important;
}

.has-nusaqu-primary-background-color {
  background-color: var(--nusaqu-primary) !important;
}

/* ── Demo Notice Bar ──────────────────────────────── */
.nusaqu-demo-notice {
  background: var(--nusaqu-gradient);
  color: white;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 9999;
}

.nusaqu-demo-notice a {
  color: white !important;
  text-decoration: underline !important;
  font-weight: 700;
}

/* ── Site Header ──────────────────────────────────── */
.nq-header {
  background: var(--nusaqu-dark);
  padding: 1rem 2rem;
  position: sticky;
  top: 38px;
  z-index: 999;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.nq-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nq-header-logo img { height: 32px; }
.nq-header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nq-header-nav a {
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}
.nq-header-nav a:hover { color: var(--nusaqu-primary-light); }
.nq-nav-cta {
  background: var(--nusaqu-primary) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}
.nq-nav-cta:hover {
  background: var(--nusaqu-primary-dark) !important;
}
.nq-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* ── Main Content ─────────────────────────────────── */
.nq-main {
  padding: 3rem 2rem;
  min-height: 60vh;
}
.nq-container {
  max-width: 1200px;
  margin: 0 auto;
}
.nq-container-narrow {
  max-width: 780px;
}

/* ── Blog Grid ────────────────────────────────────── */
.nq-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

/* ── Single Post ──────────────────────────────────── */
.nq-single-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.nq-single-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--nusaqu-dark);
  line-height: 1.2;
  margin: 0 0 2rem;
}
.nq-single-content {
  line-height: 1.8;
  font-size: 1.05rem;
  color: #334155;
}
.nq-single-content h2 {
  color: var(--nusaqu-dark);
  font-weight: 700;
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--nusaqu-primary-light);
}
.nq-single-content h3 {
  color: var(--nusaqu-primary-dark);
  font-weight: 600;
  margin-top: 2rem;
}
.nq-single-content ul, .nq-single-content ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}
.nq-single-content li {
  margin-bottom: 0.5rem;
}
.nq-single-content blockquote {
  border-left: 4px solid var(--nusaqu-primary);
  background: #f1f5f9;
  padding: 1.5rem;
  border-radius: 0 0.75rem 0.75rem 0;
  margin: 2rem 0;
  font-style: italic;
  color: #475569;
}
.nq-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 3rem;
}

/* ── Related Posts ────────────────────────────────── */
.nq-related {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid #e2e8f0;
}
.nq-related h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--nusaqu-dark);
  margin: 0 0 1.5rem;
}
.nq-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.nq-related-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.2s;
}
.nq-related-card:hover {
  border-color: var(--nusaqu-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}
.nq-related-card .nq-related-date {
  font-size: 0.75rem;
  color: #94a3b8;
}
.nq-related-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--nusaqu-dark);
  margin: 0.5rem 0 0;
  line-height: 1.4;
}

/* ── Site Footer ──────────────────────────────────── */
.nq-site-footer {
  background: #0f0d2e;
  padding: 4rem 2rem 0;
}
.nq-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nq-footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 1rem;
}
.nq-footer-links h4 {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}
.nq-footer-links a {
  display: block;
  color: #94a3b8;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.nq-footer-links a:hover { color: var(--nusaqu-primary-light); }
.nq-footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
}
.nq-footer-bottom p {
  color: #64748b;
  font-size: 0.8rem;
  margin: 0;
}
.nq-footer-bottom a {
  color: var(--nusaqu-primary-light);
  text-decoration: none;
}

/* ── Pagination ───────────────────────────────────── */
.nq-pagination {
  margin-top: 3rem;
  text-align: center;
}
.nq-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.nq-pagination a, .nq-pagination span {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}
.nq-pagination a {
  background: #f1f5f9;
  color: var(--nusaqu-primary);
  text-decoration: none;
}
.nq-pagination a:hover {
  background: var(--nusaqu-primary);
  color: #fff;
}
.nq-pagination .current {
  background: var(--nusaqu-primary);
  color: #fff;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .nq-header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nusaqu-dark);
    flex-direction: column;
    padding: 1rem 2rem 2rem;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nq-header-nav.open { display: flex; }
  .nq-mobile-toggle { display: block; }
  .nq-header { position: relative; top: 0; }
  .nusaqu-demo-notice { position: relative; top: 0; }
  .nq-posts-grid { grid-template-columns: 1fr; }
  .nq-footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .nq-related-grid { grid-template-columns: 1fr; }
}
