/*
Theme Name: NorthForge3D Forge Updates
Theme URI: https://northforge3d.com/
Description: Custom theme for the Forge Updates blog to match the main NorthForge3D site.
Author: Trevas / NorthForge3D
Version: 0.5
*/

/* Global body fallback to match main site */
body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, sans-serif;
  background-color: #0a0f0a;
  color: #e8f5ed;
  line-height: 1.6;
}

/* Ensure links inherit the dark theme */
a {
  color: #5df27c;
}
a:hover {
  color: #ffffff;
}

/* Header / nav bar */

.nf-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 1000;
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(3, 7, 5, 0.92);
  border-bottom: 1px solid rgba(93, 242, 124, 0.25);
}

.nf-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.nf-nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nf-nav-logo {
  width: 28px;
  height: 28px;
}

.nf-nav-title {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8f5ed;
}

.nf-nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nf-nav-links a {
  text-decoration: none;
  color: #c0d8ce;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.18s ease;
}

.nf-nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #34c759, #5df27c);
  transition: width 0.18s ease;
}

.nf-nav-links a:hover {
  color: #ffffff;
}

.nf-nav-links a:hover::after {
  width: 100%;
}

/* Blog hero/banner */

.blog-hero {
  margin-top: 56px;
  height: 40vh;
  min-height: 260px;
  max-height: 420px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('/img/forge-updates-banner.png') center center / cover no-repeat;
}

.blog-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.9));
}

.blog-hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  padding: 0 1.5rem;
}

.blog-hero-title {
  font-size: 2.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
  color: #ffffff;
}

.blog-hero-subtitle {
  font-size: 1.05rem;
  color: #c5dcd0;
  max-width: 640px;
  margin: 0 auto;
}

/* Layout: main + sidebar */

.blog-layout {
  max-width: 1100px;
  margin: 2rem auto 3.5rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(260px, 0.9fr);
  gap: 2rem;
  box-sizing: border-box;
}

.blog-main {
  min-width: 0;
}

.blog-post-card {
  margin-bottom: 1.75rem;
}

.blog-post-card-inner {
  padding: 1.5rem;
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(93, 242, 124, 0.12), rgba(7, 13, 9, 0.98));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(73, 184, 110, 0.25);
}

.blog-post-title {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
}

.blog-post-title a {
  color: #ffffff;
  text-decoration: none;
}

.blog-post-title a:hover {
  color: #5df27c;
}

.blog-post-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9fb8ac;
  margin-bottom: 0.75rem;
}

.blog-post-excerpt {
  margin: 0.4rem 0 0.8rem;
  color: #d3e1da;
}

/* "Read more" link */

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5df27c;
  text-decoration: none;
}

.blog-read-more::after {
  content: '→';
  font-size: 0.85rem;
}

/* Sidebar */

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-block {
  border-radius: 18px;
  padding: 1.25rem 1.3rem 1.4rem;
  background: radial-gradient(circle at top, rgba(93, 242, 124, 0.13), rgba(7, 12, 9, 0.98));
  box-shadow: 0 16px 40px rgba(0,0,0,0.72);
  border: 1px solid rgba(73, 184, 110, 0.28);
}

.sidebar-block h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #e5f4eb;
}

.sidebar-text {
  font-size: 0.9rem;
  color: #c5dcd0;
  margin-bottom: 0.7rem;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  margin: 0.25rem 0;
}

.sidebar-list a {
  text-decoration: none;
  color: #c8ddd3;
  font-size: 0.9rem;
}

.sidebar-list a:hover {
  color: #5df27c;
}

/* Sidebar signup input */

.sidebar-signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.sidebar-signup-form input[type="email"] {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(116, 228, 144, 0.7);
  background: rgba(5, 10, 7, 0.95);
  color: #e8f5ed;
  font-size: 0.9rem;
  outline: none;
}

.sidebar-signup-form button {
  border: none;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(90deg, #34c759, #5df27c);
  color: #020402;
  font-weight: 600;
}

/* Footer alignment tweak */

.blog-footer {
  margin-top: 1rem;
}

/* Responsive */

@media (max-width: 860px) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .nf-nav-inner {
    padding: 0 1rem;
  }
  .blog-hero-title {
    font-size: 2rem;
  }
}

/* === Footer styling === */

footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: #080d08;
}

.footer-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-logo-icon {
  width: 48px;
  height: auto;
  opacity: 0.95;
}

.footer-logo-txt {
  width: 160px;
  height: auto;
  opacity: 0.9;
}

footer p {
  font-size: 0.85rem;
  opacity: 0.8;
}

@media (max-width: 480px) {
  .footer-logo-wrap {
    flex-direction: column;
    gap: 0.3rem;
  }
}

/* === RESPONSIVE POST IMAGES (ALL INSIDE CONTENT ONLY) === */

.nf3d-article-content img,
.nf3d-article-content figure img,
.nf3d-article-content .wp-block-image img,
.entry-content img,
.entry-content figure img {
  display: block;
  max-width: 80% !important;
  width: auto !important;
  height: auto !important;
  margin: 1.8rem auto;
  border-radius: 14px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 18px rgba(93, 242, 124, 0.18);
  object-fit: contain;
}
/* === Single Post Clean Layout === */
.nf3d-single-article {
  padding: 0;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
/* === Blog Footer Social Links (matches main site) === */

.footer-links {
  margin-bottom: 0.6rem;
}

.footer-blog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-bottom: 0.3rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.4rem 0 0.6rem;
}

.footer-icon {
  width: 22px;
  height: 22px;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover .footer-icon,
.footer-blog:hover .footer-icon {
  opacity: 1;
  transform: translateY(-1px);
}
