/* ════════════════════════════════════════════
   Blog / Portfolio — Extra Styles
════════════════════════════════════════════ */

/* ── Blog card ─────────────────────────────────────────── */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border-w);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex; flex-direction: column;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.blog-card:hover {
  border-color: rgba(208,255,20,.18);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  transform: translateY(-4px);
}
.blog-card-img-wrap {
  display: block; position: relative;
  height: 200px; overflow: hidden; flex-shrink: 0;
}
.blog-card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.blog-card:hover .blog-card-img { transform: scale(1.04); }
.blog-card-img-ph {
  width: 100%; height: 100%; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(208,255,20,.2); font-size: 2rem;
}
.blog-ai-badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(139,92,246,.8); color: #fff;
  font-size: .68rem; font-weight: 600; font-family: var(--mono);
  padding: 3px 10px; border-radius: 20px;
}
.blog-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.blog-cat-tag {
  font-size: .72rem; font-weight: 600; font-family: var(--mono);
  color: var(--green); background: var(--green-dim);
  border: 1px solid rgba(208,255,20,.2);
  padding: 2px 10px; border-radius: 20px; text-decoration: none;
  letter-spacing: .04em;
}
.blog-date { font-size: .72rem; color: var(--muted); }
.blog-date i { margin-right: 4px; }
.blog-card-title { font-size: .98rem; font-weight: 700; margin: 0; line-height: 1.4; }
.blog-card-title a { color: var(--text); text-decoration: none; }
.blog-card-title a:hover { color: var(--green); }
.blog-card-excerpt { font-size: .85rem; color: var(--muted-2); margin: 0; flex: 1; line-height: 1.65; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border-w); margin-top: auto; }
.blog-read-time { font-size: .72rem; color: var(--muted); }
.blog-read-more { font-size: .78rem; font-weight: 600; font-family: var(--mono); color: var(--green); text-decoration: none; display: flex; align-items: center; gap: 5px; transition: gap .2s; }
.blog-card:hover .blog-read-more { gap: 8px; }

/* ── Search ──────────────────────────────────────────────*/
.blog-search-wrap { display: flex; justify-content: center; }
.blog-search-form { display: flex; max-width: 480px; width: 100%; }
.blog-search-input {
  flex: 1; background: var(--surface); border: 1px solid var(--border-w);
  border-right: none; border-radius: 10px 0 0 10px;
  padding: 10px 16px; color: var(--text); font-size: .9rem; outline: none;
}
.blog-search-input:focus { border-color: rgba(208,255,20,.3); }
.blog-search-btn {
  background: var(--green); border: none; border-radius: 0 10px 10px 0;
  padding: 10px 18px; color: #000; cursor: pointer;
}
.blog-filter-wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }

/* ── Pagination ──────────────────────────────────────────*/
.pagination-wrap { margin-top: 40px; }
.pag-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  border: 1px solid var(--border-w); background: var(--surface);
  color: var(--muted-2); text-decoration: none; font-size: .85rem; transition: all .2s;
}
.pag-btn:hover, .pag-btn.active {
  border-color: var(--border); color: var(--green);
  box-shadow: 0 0 10px rgba(208,255,20,.12);
}

/* ── Single post ─────────────────────────────────────────*/
.post-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; line-height: 1.15; letter-spacing: -.03em; margin: 16px 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: .82rem; color: var(--muted); }
.post-meta i { color: var(--green); margin-right: 4px; }
.post-meta-top { display: flex; gap: 10px; align-items: center; }
.post-content { line-height: 1.8; font-size: 1rem; color: var(--text); }
.post-content h2 { font-size: 1.5rem; font-weight: 800; margin: 2em 0 .75em; color: var(--text); letter-spacing: -.02em; }
.post-content h3 { font-size: 1.2rem; font-weight: 700; margin: 1.6em 0 .6em; color: var(--text); }
.post-content p { margin-bottom: 1.2em; color: var(--muted-2); }
.post-content ul, .post-content ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.post-content li { color: var(--muted-2); margin-bottom: .4em; }
.post-content strong { color: var(--text); }
.post-content a { color: var(--green); text-decoration: underline; }
.post-content code { background: rgba(208,255,20,.08); color: var(--green); padding: 2px 7px; border-radius: 4px; font-size: .88em; }
.post-content pre { background: #0d0d0d; border: 1px solid var(--border-w); border-radius: 10px; padding: 18px; overflow-x: auto; margin: 1.5em 0; }
.post-content blockquote { border-left: 3px solid var(--green); padding: 12px 18px; margin: 1.5em 0; background: rgba(208,255,20,.04); border-radius: 0 8px 8px 0; }

/* Tags & Share */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-tag { background: rgba(255,255,255,.05); border: 1px solid var(--border-w); padding: 4px 12px; border-radius: 20px; font-size: .75rem; color: var(--muted-2); }
.post-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border-w); color: var(--muted-2); font-size: .78rem; text-decoration: none; transition: all .2s; }
.share-btn:hover { border-color: var(--border); color: var(--text); }

/* FAQ */
.faq-heading { font-size: 1.3rem; font-weight: 800; margin-bottom: 16px; }
.faq-item { background: var(--surface); border: 1px solid var(--border-w) !important; border-radius: 10px !important; margin-bottom: 8px; overflow: hidden; }
.faq-item .accordion-button { background: transparent !important; color: var(--text) !important; font-weight: 600; font-size: .9rem; box-shadow: none !important; }
.faq-item .accordion-button:not(.collapsed) { color: var(--green) !important; }
.faq-item .accordion-body { color: var(--muted-2); font-size: .88rem; line-height: 1.7; }

/* Art-FAQ — blog detail accordion */
.art-faq { margin: 44px 0 36px; }
.art-faq-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 800; margin-bottom: 20px;
  color: var(--text);
}
.art-faq-title svg { color: var(--green); flex-shrink: 0; }
.art-faq-list { display: flex; flex-direction: column; gap: 10px; }
.art-faq-item {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .25s;
}
.art-faq-item.open {
  border-color: rgba(208,255,20,.3);
}
.art-faq-q {
  width: 100%; background: none; border: none; outline: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; text-align: left;
  color: var(--text,#f0f0f0); font-size: .95rem; font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: color .2s;
}
.art-faq-item.open .art-faq-q { color: #D0FF14; }
.faq-icon {
  flex-shrink: 0; transition: transform .3s ease;
  color: var(--muted,#707070);
}
.art-faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: #D0FF14;
}
.art-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.art-faq-a p {
  margin: 0; padding: 0 20px 18px;
  font-size: .88rem; line-height: 1.75;
  color: rgba(240,240,240,.7);
}

/* Author box */
.author-box { display: flex; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--border-w); border-radius: 14px; }
.author-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--grad); color: #000; display: grid; place-items: center; font-weight: 800; font-family: var(--mono); font-size: .9rem; flex-shrink: 0; }
.author-box strong { display: block; margin-bottom: 6px; }
.author-box p { font-size: .85rem; color: var(--muted-2); margin: 0 0 10px; }

/* Sidebar */
.sidebar-cta { background: linear-gradient(135deg, rgba(208,255,20,.08), rgba(208,255,20,.03)); border: 1px solid rgba(208,255,20,.18); border-radius: 14px; padding: 20px; margin-bottom: 20px; text-align: center; }
.sidebar-cta h5 { font-weight: 700; margin-bottom: 8px; }
.sidebar-cta p { font-size: .85rem; color: var(--muted-2); margin-bottom: 14px; }
.sidebar-widget { background: var(--surface); border: 1px solid var(--border-w); border-radius: 14px; padding: 18px; margin-bottom: 18px; }
.sidebar-widget-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.sidebar-cat-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-w); color: var(--muted-2); text-decoration: none; font-size: .85rem; }
.sidebar-cat-item:last-child { border-bottom: none; }
.sidebar-cat-item:hover { color: var(--green); }
.sidebar-cat-count { font-family: var(--mono); font-size: .72rem; color: var(--green); }
.sidebar-recent-post { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border-w); text-decoration: none; align-items: flex-start; }
.sidebar-recent-post:last-child { border-bottom: none; }
.sidebar-recent-date { font-family: var(--mono); font-size: .68rem; color: var(--green); min-width: 42px; margin-top: 2px; }
.sidebar-recent-title { font-size: .82rem; color: var(--muted-2); line-height: 1.4; }
.sidebar-recent-post:hover .sidebar-recent-title { color: var(--text); }

/* ── Portfolio card ──────────────────────────────────────*/
.port-card { background: var(--surface); border: 1px solid var(--border-w); border-radius: 16px; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: all .3s; }
.port-card:hover { border-color: rgba(208,255,20,.2); box-shadow: 0 14px 40px rgba(0,0,0,.45); transform: translateY(-5px); }
.port-img-wrap { position: relative; height: 220px; overflow: hidden; flex-shrink: 0; display: block; }
.port-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.port-card:hover .port-img { transform: scale(1.05); }
.port-img-ph { width: 100%; height: 100%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: rgba(208,255,20,.2); font-size: 2.5rem; }
.port-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; }
.port-card:hover .port-overlay { opacity: 1; }
.port-overlay-cta { color: var(--green); font-weight: 700; font-family: var(--mono); font-size: .85rem; }
.port-featured-badge { position: absolute; top: 12px; left: 12px; background: var(--grad); color: #000; font-size: .68rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; font-family: var(--mono); }
.port-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.port-meta { display: flex; gap: 8px; }
.proj-cat { font-size: .72rem; font-weight: 600; font-family: var(--mono); color: var(--green); background: var(--green-dim); border: 1px solid rgba(208,255,20,.18); padding: 2px 10px; border-radius: 20px; }
.proj-name { font-size: 1rem; font-weight: 700; margin: 0; }
.proj-name a { color: var(--text); text-decoration: none; }
.proj-name a:hover { color: var(--green); }
.proj-desc { font-size: .85rem; color: var(--muted-2); margin: 0; flex: 1; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.ptag { font-size: .7rem; color: var(--muted-2); background: rgba(255,255,255,.04); border: 1px solid var(--border-w); padding: 2px 9px; border-radius: 20px; }
.proj-links { display: flex; gap: 8px; }
.proj-link-btn { font-size: .75rem; font-weight: 600; font-family: var(--mono); padding: 5px 14px; border-radius: 6px; background: rgba(208,255,20,.08); border: 1px solid rgba(208,255,20,.18); color: var(--green); text-decoration: none; transition: all .2s; }
.proj-link-btn:hover { background: rgba(208,255,20,.15); color: var(--green); }
.proj-link-live { background: rgba(255,255,255,.05); border-color: var(--border-w); color: var(--muted-2); }
.proj-link-live:hover { color: var(--text); }

/* ── Breadcrumb ──────────────────────────────────────────*/
.breadcrumb-nav { margin-bottom: 24px; }
.breadcrumb { background: none; padding: 0; font-size: .8rem; }
.breadcrumb-item a { color: var(--muted); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--green); }
.breadcrumb-item.active { color: var(--muted-2); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--muted); }

/* ── Footer ──────────────────────────────────────────────*/
.site-footer { background: var(--surface); border-top: 1px solid var(--border-w); padding: 64px 0 32px; margin-top: 80px; }
.footer-brand { font-size: 1.4rem; font-weight: 900; color: var(--text); text-decoration: none; }
.footer-brand span { color: var(--green); }
.footer-desc { color: var(--muted-2); font-size: .88rem; line-height: 1.7; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.04); border: 1px solid var(--border-w); display: grid; place-items: center; color: var(--muted-2); text-decoration: none; transition: all .2s; }
.footer-socials a:hover { border-color: var(--border); color: var(--green); }
.footer-heading { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--muted-2); text-decoration: none; font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--green); }
.footer-post { display: flex; gap: 8px; margin-bottom: 10px; text-decoration: none; align-items: flex-start; }
.footer-post-date { font-family: var(--mono); font-size: .7rem; color: var(--green); min-width: 42px; }
.footer-post-title { font-size: .82rem; color: var(--muted-2); line-height: 1.4; transition: color .2s; }
.footer-post:hover .footer-post-title { color: var(--text); }
.footer-badge { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.footer-badge i { color: var(--green); }
.footer-bottom { border-top: 1px solid var(--border-w); padding-top: 24px; margin-top: 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: var(--muted); font-size: .78rem; margin: 0; }
.footer-keywords a { color: var(--muted); font-size: .72rem; text-decoration: none; }
.footer-keywords a:hover { color: var(--green); }

/* Filter buttons (shared) */
.portfolio-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
