/* ═══════════════════════════════════════════════════════════
   Reboot Monkey Blog Theme — main.css
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --black:  #0a0a0a;
  --dark:   #111111;
  --card:   #161616;
  --border: #232323;
  --yellow: #f5c518;
  --white:  #f0ede8;
  --muted:  #888;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── NAV ───────────────────────────────────────────────────── */
.rm-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(10,10,10,0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo img {
  height: 36px;
  width: auto;
  filter: invert(1);
  display: block;
  transition: opacity 0.2s;
}
.nav-logo img:hover { opacity: 0.8; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a.active { color: var(--yellow); }

.nav-cta {
  background: var(--yellow) !important;
  color: #000 !important;
  font-weight: 600 !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #ffd700 !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── HERO ──────────────────────────────────────────────────── */
.rm-hero {
  margin-top: 72px;
  padding: 100px 48px 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.rm-hero--small {
  padding: 72px 48px 60px;
}

.rm-hero::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(245,197,24,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.rm-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.018'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.25);
  color: var(--yellow);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(.8); }
}

.rm-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2px;
  max-width: 700px;
  margin-bottom: 20px;
}

.rm-hero h1 em { font-style: normal; color: var(--yellow); }

.hero-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ── SEARCH ────────────────────────────────────────────────── */
.search-wrap {
  display: flex;
  max-width: 440px;
}

.search-input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 8px 0 0 8px;
  outline: none;
  transition: border-color 0.2s;
}
.search-input::placeholder { color: #555; }
.search-input:focus { border-color: var(--yellow); }

.search-btn {
  background: var(--yellow);
  border: none;
  padding: 12px 20px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  color: #000;
  transition: background 0.2s;
}
.search-btn:hover { background: #ffd700; }
.search-btn svg { display: block; }

/* ── FILTER BAR ────────────────────────────────────────────── */
.rm-filter-bar {
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: wrap;
}
.rm-filter-bar::-webkit-scrollbar { display: none; }

.rm-filter-bar label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 6px;
  white-space: nowrap;
}

.tag-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s;
}
.tag-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.tag-btn.active { background: var(--yellow); border-color: var(--yellow); color: #000; font-weight: 600; }

/* ── PAGE WRAP ─────────────────────────────────────────────── */
.rm-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 48px 80px;
}

/* ── FEATURED POST ─────────────────────────────────────────── */
.rm-featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 64px;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.3s;
}
.rm-featured-post:hover { border-color: rgba(245,197,24,0.4); transform: translateY(-3px); }

.featured-img {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  background: #1a1a1a;
}
.featured-img img { width:100%; height:100%; object-fit:cover; opacity:.75; transition: opacity 0.4s, transform 0.4s; }
.rm-featured-post:hover .featured-img img { opacity:.9; transform:scale(1.03); }

.featured-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--card) 100%);
}

.featured-badge {
  position: absolute;
  top: 20px; left: 20px;
  background: var(--yellow);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}

.featured-content {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.post-cat { font-size:11px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--yellow); text-decoration:none; }
.post-cat:hover { text-decoration: underline; }
.post-date { font-size:12px; color:var(--muted); }
.dot { color: var(--border); }

.featured-content h2 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.featured-content p { color:var(--muted); font-size:14px; line-height:1.75; margin-bottom:28px; }

.read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: gap 0.2s;
}
.read-btn:hover { gap: 14px; }

/* ── SECTION HEADER ────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-header h3 { font-family:var(--font-head); font-size:22px; font-weight:700; letter-spacing:-0.5px; }
.section-header span { font-size:13px; color:var(--muted); }
.section-divider { width:32px; height:3px; background:var(--yellow); border-radius:2px; margin-top:8px; }

/* ── BLOG GRID ─────────────────────────────────────────────── */
.rm-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.rm-blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.rm-blog-card:hover { border-color:rgba(245,197,24,0.35); transform:translateY(-4px); box-shadow:0 20px 60px rgba(0,0,0,.5); }

.card-img { position:relative; height:185px; overflow:hidden; background:#1e1e1e; }
.card-img img { width:100%; height:100%; object-fit:cover; opacity:.7; transition: opacity 0.3s, transform 0.4s; }
.rm-blog-card:hover .card-img img { opacity:.9; transform:scale(1.06); }

.card-img-placeholder {
  width:100%; height:100%;
  background: linear-gradient(135deg, #1a1a1a, #222);
  display:flex; align-items:center; justify-content:center;
}
.card-img-placeholder svg { opacity:.15; }

.card-tag {
  position:absolute; top:14px; left:14px;
  background:rgba(0,0,0,0.75); backdrop-filter:blur(6px);
  border:1px solid var(--border);
  color:var(--yellow);
  font-size:10px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase;
  padding:4px 10px; border-radius:100px;
}

.card-body { padding:24px; flex:1; display:flex; flex-direction:column; }

.card-meta { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.card-date { font-size:11px; color:var(--muted); }
.read-time  { font-size:11px; color:#555; }

.card-body h4 {
  font-family:var(--font-head); font-size:16px; font-weight:700;
  line-height:1.35; letter-spacing:-0.3px; margin-bottom:10px; flex:1;
}

.card-body p {
  font-size:13px; color:#666; line-height:1.65; margin-bottom:18px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}

.card-footer {
  display:flex; align-items:center; justify-content:space-between;
  padding-top:16px; border-top:1px solid var(--border);
}

.card-author { display:flex; align-items:center; gap:8px; }

.avatar {
  width:26px; height:26px; border-radius:50%;
  background: linear-gradient(135deg, var(--yellow), #c49a0e);
  display:flex; align-items:center; justify-content:center;
  font-size:10px; font-weight:700; color:#000; flex-shrink:0;
}

.author-name { font-size:12px; color:#777; font-weight:500; }

.arrow-icon {
  width:28px; height:28px; border:1px solid var(--border); border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:var(--muted);
  transition:all 0.2s; flex-shrink:0;
}
.rm-blog-card:hover .arrow-icon { background:var(--yellow); border-color:var(--yellow); color:#000; }

/* ── PAGINATION ────────────────────────────────────────────── */
.rm-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rm-pagination .page-num,
.rm-pagination a,
.rm-pagination span.current {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  padding: 0 12px;
  transition: all 0.2s;
}

.rm-pagination a:hover { border-color:var(--yellow); color:var(--yellow); }
.rm-pagination span.current,
.rm-pagination .page-num.active { background:var(--yellow); border-color:var(--yellow); color:#000; font-weight:700; }
.rm-pagination .dots { border:none; cursor:default; }

/* ── NO POSTS ──────────────────────────────────────────────── */
.rm-no-posts {
  text-align: center;
  padding: 80px 0;
  color: var(--muted);
}
.rm-no-posts a { color: var(--yellow); text-decoration: none; }
.rm-no-posts a:hover { text-decoration: underline; }

/* ── NEWSLETTER ────────────────────────────────────────────── */
.rm-newsletter {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 64px 48px;
}

.newsletter-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
}

.newsletter-inner::before {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,197,24,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.newsletter-text { flex: 1; }
.newsletter-text h3 { font-family:var(--font-head); font-size:26px; font-weight:700; letter-spacing:-0.5px; margin-bottom:8px; }
.newsletter-text p { color:var(--muted); font-size:14px; }

.newsletter-form { display:flex; flex-shrink:0; }

.nl-input {
  background: var(--card);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 8px 0 0 8px;
  outline: none;
  width: 260px;
  transition: border-color 0.2s;
}
.nl-input::placeholder { color: #555; }
.nl-input:focus { border-color: var(--yellow); }

.nl-btn {
  background: var(--yellow);
  border: none;
  padding: 12px 24px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  color: #000;
  white-space: nowrap;
  transition: background 0.2s;
}
.nl-btn:hover { background: #ffd700; }

/* ── FOOTER ────────────────────────────────────────────────── */
.rm-footer {
  border-top: 1px solid var(--border);
  padding: 60px 48px 36px;
  background: var(--dark);
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  height: 32px;
  width: auto;
  filter: invert(1);
  margin-bottom: 16px;
}

.footer-brand p { color:var(--muted); font-size:13px; line-height:1.7; margin-bottom:24px; max-width:280px; }

.social-links { display:flex; gap:10px; flex-wrap:wrap; }

.social-link {
  width:34px; height:34px;
  border:1px solid var(--border);
  border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  color:var(--muted); text-decoration:none; font-size:13px;
  transition:all 0.2s;
}
.social-link:hover { border-color:var(--yellow); color:var(--yellow); }

.footer-col h5 {
  font-family:var(--font-head);
  font-size:13px; font-weight:700; letter-spacing:1px; text-transform:uppercase;
  margin-bottom:20px;
}

.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:10px; }

.footer-col a { color:var(--muted); text-decoration:none; font-size:13px; transition:color 0.2s; }
.footer-col a:hover { color:var(--yellow); }

.footer-bottom {
  display:flex; align-items:center; justify-content:space-between;
  padding-top:32px; border-top:1px solid var(--border); flex-wrap:wrap; gap:12px;
}
.footer-bottom p { font-size:12px; color:#555; }
.footer-legal { display:flex; gap:24px; }
.footer-legal a { color:#555; text-decoration:none; font-size:12px; transition:color 0.2s; }
.footer-legal a:hover { color:var(--yellow); }

/* ── SINGLE POST ───────────────────────────────────────────── */
.rm-post-hero {
  margin-top: 72px;
  padding: 100px 48px 80px;
  position: relative;
  overflow: hidden;
  background: var(--dark) center/cover no-repeat;
  border-bottom: 1px solid var(--border);
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}

.post-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.6) 50%, rgba(10,10,10,0.3) 100%);
}

.post-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.post-hero-inner h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 16px 0 24px;
}

.post-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.rm-post-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 48px 80px;
}

.rm-post-content {
  max-width: 780px;
  margin: 0 auto 80px;
}

/* WordPress content styles */
.rm-post-content h2,
.rm-post-content h3,
.rm-post-content h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 2em 0 0.75em;
  line-height: 1.2;
}
.rm-post-content h2 { font-size: clamp(22px, 3vw, 32px); }
.rm-post-content h3 { font-size: clamp(18px, 2.5vw, 24px); }
.rm-post-content h4 { font-size: 18px; }

.rm-post-content p { color: #b8b4ae; font-size: 16px; line-height: 1.85; margin-bottom: 1.5em; }
.rm-post-content a { color: var(--yellow); text-decoration: underline; }
.rm-post-content a:hover { color: #ffd700; }

.rm-post-content ul,
.rm-post-content ol { padding-left: 24px; margin-bottom: 1.5em; color: #b8b4ae; line-height: 1.85; }
.rm-post-content li { margin-bottom: 0.5em; }

.rm-post-content img { border-radius: 10px; margin: 2em 0; }

.rm-post-content blockquote {
  border-left: 3px solid var(--yellow);
  padding: 16px 24px;
  margin: 2em 0;
  background: var(--card);
  border-radius: 0 8px 8px 0;
  color: var(--white);
  font-size: 17px;
  line-height: 1.7;
  font-style: italic;
}

.rm-post-content pre,
.rm-post-content code {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: monospace;
  font-size: 14px;
  color: var(--yellow);
}
.rm-post-content pre { padding: 20px; overflow-x: auto; margin: 1.5em 0; }
.rm-post-content code { padding: 2px 6px; }
.rm-post-content pre code { padding: 0; background: none; border: none; }

.rm-post-content hr { border: none; border-top: 1px solid var(--border); margin: 3em 0; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }

.tag-pill {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s;
}
.tag-pill:hover { border-color: var(--yellow); color: var(--yellow); }

.rm-related { margin-top: 64px; }

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}

.rm-hero .hero-tag,
.rm-hero h1,
.rm-hero .hero-sub,
.rm-hero .search-wrap {
  animation: fadeUp 0.6s ease both;
}
.rm-hero h1         { animation-delay: 0.1s; }
.rm-hero .hero-sub  { animation-delay: 0.2s; }
.rm-hero .search-wrap { animation-delay: 0.3s; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .rm-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .rm-nav { padding: 0 24px; }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--dark);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
  }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }

  .rm-hero { padding: 64px 24px 56px; }
  .rm-filter-bar { padding: 20px 24px; }
  .rm-page-wrap { padding: 40px 24px 60px; }

  .rm-featured-post { grid-template-columns: 1fr; }
  .featured-img { min-height: 240px; }
  .featured-img-overlay { background: linear-gradient(to top, var(--card) 0%, transparent 100%); }
  .featured-content { padding: 32px 28px; }

  .rm-blog-grid { grid-template-columns: 1fr; }

  .rm-newsletter { padding: 48px 24px; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; }
  .nl-input { width: 100%; flex: 1; }

  .rm-footer { padding: 48px 24px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .rm-post-hero { padding: 64px 24px 48px; }
  .rm-post-wrap { padding: 40px 24px 60px; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .rm-blog-grid { grid-template-columns: 1fr; }
}
