/*
Theme Name: AIWireX ART
Theme URI: https://aiwirex.com
Author: ACWirex
Author URI: https://aiwirex.com
Description: Dark editorial AI art gallery theme with serif typography, hero grid, hover effects and responsive layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aiwirex-art
Tags: art, gallery, dark, blog, two-columns, custom-menu, featured-images, translation-ready
*/

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0c0b0a;
  --bg2:     #131210;
  --surface: #1f1e1b;
  --border:  rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.15);
  --txt:     #e8e4dc;
  --txt2:    #8a8680;
  --txt3:    #5a5652;
  --accent:  #c9a96e;
  --accent2: #8a6a3a;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Outfit', system-ui, sans-serif;
  --r:       12px;
  --rs:      8px;
  --max:     1100px;
  --side:    260px;
}

html { scroll-behavior: smooth; cursor: none; }
body { background: var(--bg); color: var(--txt); font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.6; min-height: 100vh; cursor: none; }
a, button, input, textarea, select { cursor: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: var(--sans); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; flex-shrink: 0; }

/* ── CUSTOM CURSOR ── */
#cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform .15s ease, opacity .2s ease;
  will-change: transform;
}
#cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(201,169,110,.45);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .22s ease, height .22s ease, border-color .22s ease;
  will-change: transform;
}
body.cur-hover #cursor-ring {
  width: 58px; height: 58px;
  border-color: rgba(201,169,110,.9);
}
body.cur-hover #cursor-dot {
  transform: translate(-50%, -50%) scale(0);
}
/* hide on mobile */
@media (hover: none) {
  #cursor-dot, #cursor-ring { display: none; }
  html, body, a, button { cursor: auto; }
}

/* ── NAV ── */
.site-header { border-bottom: 0.5px solid var(--border); position: sticky; top: 0; z-index: 100; background: rgba(12,11,10,.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 32px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.site-branding a { font-family: var(--serif); font-size: 20px; font-weight: 300; letter-spacing: .14em; color: var(--txt); }
.site-branding a em { font-style: italic; color: var(--accent); }
.site-branding a sub { font-size: 11px; letter-spacing: .2em; opacity: .5; vertical-align: middle; margin-left: 4px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--txt2); }
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--txt); }
.nav-links .nav-cta { padding: 7px 18px; border: 0.5px solid var(--border2); border-radius: 20px; color: var(--accent); transition: all .2s; }
.nav-links .nav-cta:hover { background: var(--accent); color: var(--bg); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--txt2); transition: all .2s; }

/* ── HERO GRID ── */
.hero-section { padding: 28px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 420px 200px; gap: 3px; border-radius: var(--r); overflow: hidden; margin-bottom: 3px; }
.hero-card { position: relative; overflow: hidden; cursor: pointer; display: block; }
.hero-card.featured { grid-row: 1 / 3; }
.hero-card-img { position: absolute; inset: 0; transition: transform .55s ease; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-card:hover .hero-card-img { transform: scale(1.04); }
.hero-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.84) 0%, rgba(0,0,0,.08) 55%, transparent 100%); transition: opacity .3s; }
.hero-card:hover .hero-card-overlay { opacity: .9; }
.hero-card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; transform: translateY(4px); transition: transform .3s; }
.hero-card:hover .hero-card-body { transform: translateY(0); }
.art-badge { display: inline-block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); border: 0.5px solid rgba(201,169,110,.35); padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }
.hero-card-title { font-family: var(--serif); font-weight: 300; color: rgba(255,255,255,.94); line-height: 1.2; }
.hero-card.featured .hero-card-title { font-size: 28px; }
.hero-card:not(.featured) .hero-card-title { font-size: 17px; }
.hero-card-date { font-size: 11px; color: rgba(255,255,255,.32); margin-top: 8px; }
.hero-card-placeholder { position: absolute; inset: 0; }

/* ── STRIP ── */
.strip-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; margin-bottom: 52px; }
.strip-card { position: relative; aspect-ratio: 1/1; overflow: hidden; cursor: pointer; display: block; }
.strip-grid .strip-card:first-child { border-radius: var(--rs) 0 0 var(--rs); }
.strip-grid .strip-card:last-child  { border-radius: 0 var(--rs) var(--rs) 0; }
.strip-card-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; position: absolute; inset: 0; transition: transform .45s ease; }
.strip-card:hover .strip-card-img { transform: scale(1.06); }
.strip-card-placeholder { position: absolute; inset: 0; }
.strip-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78) 0%, transparent 55%); }
.strip-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px; }
.strip-cat { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; opacity: .85; }
.strip-title { font-family: var(--serif); font-size: 14px; color: rgba(255,255,255,.9); line-height: 1.25; }

/* ── CONTENT + SIDEBAR ── */
.content-wrap { display: grid; grid-template-columns: 1fr var(--side); gap: 40px; margin-bottom: 64px; }
.sec-label { display: flex; align-items: center; gap: 14px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--txt3); margin-bottom: 20px; }
.sec-label::after { content: ''; flex: 1; height: .5px; background: var(--border); }

/* ── ARTICLES ── */
.articles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.article-card { border: 0.5px solid var(--border); border-radius: var(--r); overflow: hidden; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; display: block; }
.article-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.article-thumb { height: 260px; position: relative; overflow: hidden; border-radius: var(--r) var(--r) 0 0; }
.article-thumb-img { position: absolute; inset: 0; transition: transform .4s ease; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.article-card:hover .article-thumb-img { transform: scale(1.05); }
.article-thumb-placeholder { position: absolute; inset: 0; }
.article-thumb-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 60%); }
.article-thumb-cat { position: absolute; top: 12px; left: 12px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); opacity: .9; }
.article-info { padding: 14px 16px 18px; }
.article-title { font-family: var(--serif); font-size: 17px; font-weight: 400; color: var(--txt); line-height: 1.3; margin-bottom: 8px; }
.article-meta { font-size: 12px; color: var(--txt3); }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.s-widget { border: 0.5px solid var(--border); border-radius: var(--r); padding: 18px; }
.w-title { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--txt3); margin-bottom: 16px; }
.w-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 0.5px solid var(--border); font-size: 13px; color: var(--txt2); cursor: pointer; transition: color .15s; }
.w-item:last-child { border-bottom: none; padding-bottom: 0; }
.w-item:hover { color: var(--txt); }
.wi-title { flex: 1; line-height: 1.4; font-family: var(--serif); font-size: 14px; }
.wi-count { font-size: 11px; color: var(--txt3); white-space: nowrap; }
.stats-row { display: grid; grid-template-columns: 1fr 1fr; border: 0.5px solid var(--border); border-radius: var(--r); overflow: hidden; }
.stat-box { background: var(--surface); padding: 14px; text-align: center; }
.stat-num { font-family: var(--serif); font-size: 22px; font-weight: 300; color: var(--txt); }
.stat-lbl { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--txt3); margin-top: 2px; }
.submit-w { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--r); padding: 22px; text-align: center; }
.sub-icon { width: 44px; height: 44px; margin: 0 auto 14px; border: 0.5px solid var(--border2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.sub-title { font-family: var(--serif); font-size: 20px; font-weight: 300; color: var(--txt); margin-bottom: 8px; }
.sub-desc { font-size: 12px; color: var(--txt2); line-height: 1.6; margin-bottom: 18px; }
.sub-btn { display: block; width: 100%; padding: 10px; border: 0.5px solid var(--accent2); border-radius: var(--rs); background: transparent; color: var(--accent); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: all .2s; }
.sub-btn:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* ── PAGINATION ── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 20px 0 0; border-top: 0.5px solid var(--border); }
.page-numbers { width: 34px; height: 34px; border-radius: var(--rs); border: 0.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--txt2); cursor: pointer; transition: all .15s; }
.page-numbers:hover { border-color: var(--border2); color: var(--txt); }
.page-numbers.current { border-color: var(--accent2); color: var(--accent); }
.page-numbers.prev, .page-numbers.next { font-size: 15px; color: var(--txt3); }

/* ── FOOTER ── */
.site-footer { border-top: 0.5px solid var(--border); padding: 40px 0; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.footer-desc { font-size: 13px; color: var(--txt2); line-height: 1.7; margin-top: 10px; }
.fc-title { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--txt3); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13px; color: var(--txt2); transition: color .15s; }
.footer-links a:hover { color: var(--txt); }
.footer-bottom { max-width: var(--max); margin: 32px auto 0; padding: 18px 32px 0; border-top: 0.5px solid var(--border); display: flex; justify-content: space-between; font-size: 12px; color: var(--txt3); }

/* ── SINGLE POST ── */
.post-header { padding: 36px 0 0; margin-bottom: 32px; }
.post-breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--txt3); margin-bottom: 16px; }
.post-breadcrumb a { color: var(--accent); transition: opacity .15s; }
.post-breadcrumb a:hover { opacity: .75; }
.post-breadcrumb a.crumb2 { color: var(--txt2); }
.post-breadcrumb .sep { opacity: .4; }
.post-title-main { font-family: var(--serif); font-size: 44px; font-weight: 300; line-height: 1.15; color: var(--txt); margin-bottom: 20px; max-width: 720px; }
.post-byline { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--txt2); padding-bottom: 24px; border-bottom: 0.5px solid var(--border); flex-wrap: wrap; }
.byline-av { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 0.5px solid var(--border2); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--accent); font-family: var(--serif); overflow: hidden; flex-shrink: 0; }
.byline-av img { width: 100%; height: 100%; object-fit: cover; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--txt3); flex-shrink: 0; }
.post-layout { display: grid; grid-template-columns: 1fr var(--side); gap: 48px; margin-bottom: 64px; }
.post-hero { width: 100%; border-radius: var(--r); margin-bottom: 36px; }
.post-hero img { width: 100%; height: auto; display: block; border-radius: var(--r); object-fit: unset; max-height: none; }
.post-hero-placeholder { width: 100%; aspect-ratio: 16/9; background: var(--surface); border-radius: var(--r); }
.post-body { font-size: 17px; line-height: 1.88; color: #cbc6be; }
.post-body p { margin-bottom: 24px; }
.post-body p:last-child { margin-bottom: 0; }
.post-body h2 { font-family: var(--serif); font-size: 28px; font-weight: 300; color: var(--txt); margin: 36px 0 16px; }
.post-body h3 { font-family: var(--serif); font-size: 22px; font-weight: 300; color: var(--txt); margin: 28px 0 12px; }
.pull-quote { font-family: var(--serif); font-size: 24px; font-style: italic; font-weight: 300; color: var(--txt); border-left: 2px solid var(--accent); padding: 16px 24px; margin: 36px 0; line-height: 1.4; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; padding: 24px 0; border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border); }
.post-tag { font-size: 12px; padding: 5px 16px; border-radius: 20px; border: 0.5px solid var(--border2); color: var(--txt2); cursor: pointer; transition: all .15s; }
.post-tag:hover { color: var(--txt); border-color: var(--border); }
.share-row { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; flex-wrap: wrap; }
.share-lbl { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--txt3); }
.share-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--rs); border: 0.5px solid var(--border2); background: transparent; color: var(--txt2); font-size: 12px; cursor: pointer; transition: all .15s; }
.share-btn:hover { color: var(--txt); border-color: var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.rel-card { border: 0.5px solid var(--border); border-radius: var(--rs); overflow: hidden; cursor: pointer; transition: border-color .2s, transform .2s; display: block; }
.rel-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.rel-thumb { height: 120px; position: relative; overflow: hidden; }
.rel-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.rel-thumb-placeholder { width: 100%; height: 100%; }
.rel-info { padding: 12px; }
.rel-cat { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; opacity: .75; }
.rel-title { font-family: var(--serif); font-size: 15px; color: var(--txt); line-height: 1.3; }
.sticky-sb { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }

/* ── COMMENTS ── */
.comments-area { margin-top: 56px; }
.comments-title { font-family: var(--serif); font-size: 22px; font-weight: 300; color: var(--txt); margin-bottom: 24px; }
.comment-list { list-style: none; margin-bottom: 32px; }
.comment-body { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--rs); padding: 16px; margin-bottom: 16px; font-size: 14px; color: var(--txt2); }
.comment-author { font-size: 13px; font-weight: 500; color: var(--txt); margin-bottom: 6px; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--txt3); margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea { background: var(--surface); border: 0.5px solid var(--border2); border-radius: var(--rs); padding: 12px 14px; font-family: var(--sans); font-size: 14px; color: var(--txt); width: 100%; outline: none; transition: border-color .2s; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent2); }
.comment-form textarea { resize: vertical; }
.comment-form input[type="submit"] { padding: 11px 28px; border: 0.5px solid var(--accent2); border-radius: var(--rs); background: transparent; color: var(--accent); font-family: var(--sans); font-size: 13px; letter-spacing: .06em; cursor: pointer; transition: all .2s; }
.comment-form input[type="submit"]:hover { background: var(--accent); color: var(--bg); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root { --side: 220px; }
  .hero-grid { grid-template-rows: 320px 160px; }
  .hero-card.featured .hero-card-title { font-size: 22px; }
  .post-title-main { font-size: 34px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(12,11,10,.98); border-bottom: 0.5px solid var(--border); padding: 16px 20px; gap: 16px; z-index: 99; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: 260px 160px 160px; }
  .hero-card.featured { grid-row: auto; }
  .hero-card.featured .hero-card-title { font-size: 20px; }
  .hero-card:not(.featured) .hero-card-title { font-size: 15px; }
  .strip-grid { grid-template-columns: repeat(2,1fr); }
  .strip-grid .strip-card:first-child { border-radius: var(--rs) 0 0 0; }
  .strip-grid .strip-card:nth-child(2) { border-radius: 0 var(--rs) 0 0; }
  .strip-grid .strip-card:nth-child(3) { border-radius: 0 0 0 var(--rs); }
  .strip-grid .strip-card:last-child  { border-radius: 0 0 var(--rs) 0; }
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .stats-row, .submit-w { display: none; }
  .articles-grid { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .post-layout aside { display: none; }
  .post-title-main { font-size: 28px; }
  .pull-quote { font-size: 20px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 480px) {
  .hero-grid { grid-template-rows: 220px 140px 140px; }
  .articles-grid { gap: 14px; }
  .related-grid { grid-template-columns: 1fr; }
  .post-title-main { font-size: 24px; }
  .pull-quote { font-size: 18px; }
}
