/*
Theme Name: Brandon MMO Blog
Theme URI: https://brandonmmo.com/blog/
Author: Brandon Mmo
Author URI: https://brandonmmo.com/me
Description: Custom blog theme for Brandon MMO — dark theme, SEO optimized.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: brandonmmo-blog
*/

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg:        #0b0f14;
  --bg2:       #0f1821;
  --bg3:       #141c27;
  --bg4:       #192231;
  --accent:    #00c896;
  --accent-dk: #009e76;
  --accent-lt: #00e5ac;
  --text:      #e6edf5;
  --muted:     #7a8fa2;
  --dim:       #3d5068;
  --border:    rgba(0,200,150,0.22);
  --border2:   rgba(255,255,255,0.07);
}
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--bg); color: var(--text); font-family: 'DM Sans', system-ui, sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ─── NAVBAR ─── */
.navbar {
  position: sticky; top: 0; z-index: 999;
  height: 58px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px; background: var(--bg); border-bottom: 1px solid var(--border2);
  backdrop-filter: blur(12px);
}
.nav-logo { font-size: 15px; font-weight: 600; color: var(--text); text-decoration: none; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { font-size: 13px; color: var(--muted); transition: color .2s; position: relative; padding-bottom: 3px; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -3px; left: 0; right: 0; height: 1.5px; background: var(--accent); border-radius: 2px; }
.btn-cta { background: var(--accent); color: #000; font-size: 13px; font-weight: 600; padding: 9px 22px; border-radius: 6px; border: none; cursor: pointer; transition: background .2s, transform .15s; }
.btn-cta:hover { background: var(--accent-lt); transform: translateY(-1px); }

/* ─── BLOG HERO ─── */
.blog-hero {
  padding: 72px 56px 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--border2);
  position: relative; overflow: hidden;
}
.blog-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,200,150,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.blog-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; position: relative; }
.blog-hero-tag { font-size: 10.5px; font-weight: 700; letter-spacing: 2.8px; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.blog-hero-tag::before { content: ''; display: inline-block; width: 20px; height: 1.5px; background: var(--accent); }
.blog-hero-title { font-size: 52px; font-weight: 900; line-height: 1.05; letter-spacing: -1px; margin-bottom: 18px; }
.blog-hero-title .italic-green { color: var(--accent); font-style: italic; }
.blog-hero-desc { font-size: 14px; color: var(--muted); max-width: 480px; line-height: 1.75; }
.blog-hero-right { flex-shrink: 0; }
.blog-search { display: flex; align-items: center; background: var(--bg3); border: 1px solid var(--border2); border-radius: 8px; overflow: hidden; width: 280px; transition: border-color .2s; }
.blog-search:focus-within { border-color: var(--border); }
.blog-search svg { width: 16px; height: 16px; color: var(--dim); margin: 0 12px; flex-shrink: 0; }
.blog-search input { background: none; border: none; outline: none; font-family: inherit; font-size: 13px; color: var(--text); padding: 11px 12px 11px 0; width: 100%; }
.blog-search input::placeholder { color: var(--dim); }

/* ─── CATEGORY TABS ─── */
.category-bar { padding: 0 56px; border-bottom: 1px solid var(--border2); display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.category-bar::-webkit-scrollbar { display: none; }
.cat-tab { flex-shrink: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 16px 18px; cursor: pointer; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; white-space: nowrap; }
.cat-tab:hover { color: var(--text); }
.cat-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ─── MAIN CONTENT ─── */
.blog-main { padding: 56px 56px; }

/* ─── FEATURED POST ─── */
.featured-wrap { margin-bottom: 64px; }
.section-label { font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border2); }
.featured-card { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--bg2); border: 1px solid var(--border2); border-radius: 14px; overflow: hidden; transition: border-color .25s, transform .25s; }
.featured-card:hover { border-color: var(--border); transform: translateY(-3px); }
.featured-img { position: relative; overflow: hidden; min-height: 360px; background: var(--bg3); }
.featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.featured-card:hover .featured-img img { transform: scale(1.04); }
.featured-img-placeholder { width: 100%; height: 100%; min-height: 360px; background: linear-gradient(135deg, var(--bg3) 0%, var(--bg4) 50%, rgba(0,200,150,0.08) 100%); display: flex; align-items: center; justify-content: center; }
.featured-img-placeholder svg { width: 48px; height: 48px; color: var(--dim); }
.featured-badge { position: absolute; top: 18px; left: 18px; background: var(--accent); color: #000; font-size: 9.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; }
.featured-body { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.post-cat { font-size: 10.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.featured-title { font-size: 26px; font-weight: 800; line-height: 1.25; margin-bottom: 16px; color: var(--text); transition: color .2s; }
.featured-card:hover .featured-title { color: var(--accent); }
.featured-excerpt { font-size: 13.5px; color: var(--muted); line-height: 1.8; margin-bottom: 32px; }
.post-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.post-meta-item { font-size: 11.5px; color: var(--dim); display: flex; align-items: center; gap: 5px; }
.post-meta-item svg { width: 13px; height: 13px; }
.read-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent); transition: gap .2s; }
.read-link:hover { gap: 12px; }
.read-link svg { width: 14px; height: 14px; }

/* ─── SIDE CARDS ─── */
.featured-side { display: flex; flex-direction: column; gap: 16px; margin-bottom: 64px; }
.featured-side-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.side-card { background: var(--bg2); border: 1px solid var(--border2); border-radius: 12px; overflow: hidden; transition: border-color .25s, transform .2s; }
.side-card:hover { border-color: var(--border); transform: translateY(-2px); }
.side-card-img { height: 160px; overflow: hidden; background: var(--bg3); }
.side-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.side-card:hover .side-card-img img { transform: scale(1.05); }
.side-card-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--bg3) 0%, rgba(0,200,150,0.06) 100%); display: flex; align-items: center; justify-content: center; }
.side-card-img-placeholder svg { width: 28px; height: 28px; color: var(--dim); }
.side-card-body { padding: 20px 22px 22px; }
.side-cat { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.side-title { font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--text); margin-bottom: 10px; transition: color .2s; }
.side-card:hover .side-title { color: var(--accent); }
.side-excerpt { font-size: 12px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.side-meta { font-size: 11px; color: var(--dim); }

/* ─── POSTS GRID ─── */
.latest-wrap { }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { background: var(--bg2); border: 1px solid var(--border2); border-radius: 12px; overflow: hidden; transition: border-color .25s, transform .2s; display: flex; flex-direction: column; }
.post-card:hover { border-color: var(--border); transform: translateY(-3px); }
.post-card-img { height: 180px; overflow: hidden; background: var(--bg3); flex-shrink: 0; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--bg3) 0%, var(--bg4) 60%, rgba(0,200,150,0.05) 100%); display: flex; align-items: center; justify-content: center; }
.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card-cat { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.post-card-title { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--text); margin-bottom: 10px; transition: color .2s; }
.post-card:hover .post-card-title { color: var(--accent); }
.post-card-excerpt { font-size: 12.5px; color: var(--muted); line-height: 1.75; margin-bottom: 18px; flex: 1; }
.post-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.post-read-time { font-size: 11px; color: var(--dim); display: flex; align-items: center; gap: 5px; }
.post-read-time svg { width: 12px; height: 12px; }
.post-card-arrow { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s; }
.post-card:hover .post-card-arrow { background: var(--accent); border-color: var(--accent); }
.post-card-arrow svg { width: 12px; height: 12px; color: var(--muted); transition: color .2s; }
.post-card:hover .post-card-arrow svg { color: #000; }

/* ─── PAGINATION ─── */
.pagination-wrap { text-align: center; margin-top: 48px; }
.pagination { display: inline-flex; gap: 8px; align-items: center; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 6px; font-size: 13px; font-weight: 600; border: 1px solid var(--border2); color: var(--muted); transition: all .2s; }
.pagination a:hover { border-color: var(--border); color: var(--text); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #000; }
.btn-load-more { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--border2); color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 600; padding: 11px 28px; border-radius: 8px; cursor: pointer; transition: border-color .2s, color .2s; }
.btn-load-more:hover { border-color: var(--border); color: var(--text); }

/* ─── SINGLE POST ─── */
.single-hero { padding: 64px 56px 48px; border-bottom: 1px solid var(--border2); max-width: 860px; margin: 0 auto; }
.single-cat-date { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.single-cat { font-size: 10.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.single-date { font-size: 12px; color: var(--dim); }
.single-title { font-size: 40px; font-weight: 900; line-height: 1.1; letter-spacing: -0.5px; margin-bottom: 20px; }
.single-excerpt { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 28px; }
.single-meta { display: flex; align-items: center; gap: 20px; }
.single-meta-item { font-size: 12px; color: var(--dim); display: flex; align-items: center; gap: 6px; }
.single-meta-item svg { width: 14px; height: 14px; }
.single-thumb { width: 100%; max-width: 860px; margin: 0 auto; }
.single-thumb img { width: 100%; height: 420px; object-fit: cover; border-radius: 12px; }
.single-content { max-width: 720px; margin: 0 auto; padding: 56px 56px 80px; }
.single-content h2 { font-size: 24px; font-weight: 800; margin: 40px 0 16px; color: var(--text); }
.single-content h3 { font-size: 19px; font-weight: 700; margin: 32px 0 12px; color: var(--text); }
.single-content p { font-size: 15px; color: var(--muted); line-height: 1.85; margin-bottom: 20px; }
.single-content ul, .single-content ol { margin: 0 0 20px 24px; }
.single-content li { font-size: 15px; color: var(--muted); line-height: 1.85; margin-bottom: 8px; }
.single-content strong { color: var(--text); font-weight: 600; }
.single-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.single-content blockquote { border-left: 3px solid var(--accent); padding: 16px 24px; margin: 28px 0; background: var(--bg2); border-radius: 0 8px 8px 0; }
.single-content blockquote p { color: var(--text); font-style: italic; margin: 0; }
.single-content img { border-radius: 8px; margin: 24px 0; }
.single-content pre { background: var(--bg3); border: 1px solid var(--border2); border-radius: 8px; padding: 20px 24px; overflow-x: auto; margin-bottom: 20px; }
.single-content code { font-size: 13.5px; color: var(--accent-lt); }
.back-to-blog { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 40px; transition: color .2s; }
.back-to-blog:hover { color: var(--accent); }
.back-to-blog svg { width: 14px; height: 14px; }

/* ─── NEWSLETTER ─── */
.newsletter { margin: 72px 56px; background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 56px 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; overflow: hidden; }
.newsletter::before { content: ''; position: absolute; top: -60px; right: -60px; width: 240px; height: 240px; background: radial-gradient(circle, rgba(0,200,150,0.12) 0%, transparent 70%); pointer-events: none; }
.newsletter-tag { font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.newsletter-title { font-size: 32px; font-weight: 900; line-height: 1.15; letter-spacing: -0.3px; margin-bottom: 14px; }
.newsletter-title .italic-green { color: var(--accent); font-style: italic; }
.newsletter-desc { font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.newsletter-input { background: var(--bg3); border: 1px solid var(--border2); border-radius: 8px; padding: 13px 16px; font-family: inherit; font-size: 13.5px; color: var(--text); outline: none; transition: border-color .2s; }
.newsletter-input::placeholder { color: var(--dim); }
.newsletter-input:focus { border-color: var(--border); }
.newsletter-btn { background: var(--accent); color: #000; font-family: inherit; font-size: 14px; font-weight: 700; padding: 13px 24px; border-radius: 8px; border: none; cursor: pointer; transition: background .2s, transform .15s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.newsletter-btn:hover { background: var(--accent-lt); transform: translateY(-1px); }
.newsletter-note { font-size: 11.5px; color: var(--dim); text-align: center; }

/* ─── FOOTER ─── */
.footer { border-top: 1px solid var(--border2); padding: 40px 56px; display: flex; align-items: center; justify-content: space-between; }
.footer-logo { font-size: 14px; font-weight: 600; }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 28px; list-style: none; }
.footer-links a { font-size: 12.5px; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--dim); }

/* ─── MODAL ─── */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.75); backdrop-filter: blur(6px); align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--bg2); border: 1px solid var(--border2); border-radius: 14px; padding: 40px 44px; width: 100%; max-width: 500px; box-shadow: 0 24px 80px rgba(0,0,0,0.6); position: relative; animation: modalIn .3s ease; }
@keyframes modalIn { from { opacity:0; transform: translateY(24px) scale(0.97); } to { opacity:1; transform: none; } }
.modal-close { position: absolute; top: 16px; right: 18px; background: none; border: none; color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-title { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.modal-sub { font-size: 13px; color: var(--muted); margin-bottom: 28px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea { background: var(--bg3); border: 1px solid var(--border2); border-radius: 7px; color: var(--text); font-size: 13.5px; font-family: inherit; padding: 11px 14px; outline: none; transition: border-color .2s; resize: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--dim); }
.form-group select option { background: var(--bg3); }
.btn-submit { width: 100%; background: var(--accent); color: #000; font-family: inherit; font-size: 13.5px; font-weight: 700; padding: 13px; border-radius: 7px; border: none; cursor: pointer; transition: background .2s, transform .15s; letter-spacing: 0.5px; }
.btn-submit:hover { background: var(--accent-lt); transform: translateY(-1px); }
.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success .check-icon { width: 56px; height: 56px; background: rgba(0,200,150,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.form-success h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.form-success p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
@keyframes shakeInput { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }

/* ─── ANIMATIONS ─── */
.fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp .55s ease forwards; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .blog-hero { padding: 48px 20px 40px; }
  .blog-hero-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .blog-hero-title { font-size: 36px; }
  .blog-hero-right { width: 100%; }
  .blog-search { width: 100%; }
  .category-bar { padding: 0 20px; }
  .blog-main { padding: 40px 20px; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-img { min-height: 220px; }
  .featured-side-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .newsletter { margin: 40px 20px; padding: 36px 24px; grid-template-columns: 1fr; gap: 32px; }
  .newsletter-title { font-size: 26px; }
  .footer { padding: 32px 20px; flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .single-hero { padding: 40px 20px 32px; }
  .single-title { font-size: 28px; }
  .single-content { padding: 36px 20px 60px; }
}
