/* === Base: reuse your dark neon aesthetic === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at center, #001a20 0%, #000 100%);
  color: #f5f5f5;
  line-height: 1.6;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 80px 0; }

/* === Header (copied structure/classes for perfect visual parity) === */
.navbar { background: radial-gradient(circle at top left, #001f2f, #000); padding: 24px 0; }
.navbar.scrolled { box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1300px; margin: 0 auto; padding: 0 30px; }
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 40px; width: auto; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav ul { display: flex; gap: 24px; list-style: none; }
.main-nav a { color: #f5f5f5; text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color .3s ease; }
.main-nav a:hover { color: #00ffe0; }
.main-nav a.active { color: #00ffe0; position: relative; }
.main-nav a.active::after { content: ""; position: absolute; bottom: -6px; left: 0; width: 100%; height: 2px; background: #00ffe0; border-radius: 2px; }
.nav-cta { background: rgba(0,255,224,.1); color: #00ffe0 !important; padding: 8px 18px; border-radius: 24px; font-weight: 600; border: 1.5px solid rgba(0,255,224,.5); box-shadow: 0 0 0 1px rgba(0,255,224,.4); text-transform: uppercase; letter-spacing: .4px; }
.nav-cta:hover { background: rgba(0,255,224,.15); box-shadow: 0 0 12px 2px rgba(0,255,224,.6), 0 0 20px rgba(0,255,224,.3); color: #fff !important; border-color: #00ffe0; }

/* === Blog Hero === */
.blog-hero { background: radial-gradient(circle at top left, #001f2f, #000); }
.blog-hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.blog-hero h1 { font-size: 2.6rem; line-height: 1.2; margin-bottom: 12px; background: linear-gradient(to right, #00ffe0, #00b8ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent; }
.blog-hero p { color: #cfcfcf; font-size: 1.05rem; max-width: 680px; }
.blog-breadcrumbs { margin-top: 16px; color: #9ad; display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.blog-breadcrumbs a { color: #9ad; text-decoration: none; }
.blog-breadcrumbs a:hover { color: #00ffe0; }
.blog-hero-image img { width: 100%; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,255,224,.08); }

/* === Layout Grid === */
.blog-layout { background: radial-gradient(circle at center, #001a20 0%, #000 100%); }
.blog-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }

/* === Post Cards === */
.post-card { background: #0c1c1c; border: 1px solid rgba(0,255,224,.12); border-radius: 16px; overflow: hidden; box-shadow: 0 0 16px rgba(0,255,224,.05); transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 0 25px rgba(0,255,224,.18); }
.post-thumb img { display: block; width: 100%; height: 350px; object-fit: cover; }
.post-content { padding: 22px 22px 20px; }
.post-meta { display: flex; align-items: center; gap: 10px; color: #97abb0; font-size: .9rem; margin-bottom: 10px; }
.meta-badge { background: rgba(0,255,224,.12); color: #00ffe0; border: 1px solid rgba(0,255,224,.35); padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .2px; }
.post-title { font-size: 1.35rem; line-height: 1.35; margin: 6px 0 10px; }
.post-title a { color: #fff; text-decoration: none; }
.post-title a:hover { color: #00ffe0; }
.post-excerpt { color: #c6c6c6; font-size: .98rem; line-height: 1.7; }
.post-actions { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.read-more { display: inline-block; padding: 10px 16px; border-radius: 30px; background: linear-gradient(to right, #00ffe0, #00b8ff); color: #111; font-weight: 700; font-size: .92rem; text-decoration: none; box-shadow: 0 4px 20px rgba(0,255,224,.18); }
.read-more:hover { background: #00ffe0; color: #000; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: .8rem; color: #9bd; text-decoration: none; background: rgba(0,255,224,.06); padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(0,255,224,.18); }
.tag:hover { color: #00ffe0; border-color: rgba(0,255,224,.45); }

/* === Pagination === */
.pagination { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 28px; }
.page-link { color: #d9f; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); padding: 8px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.page-link:hover { color: #00ffe0; border-color: rgba(0,255,224,.35); }
.page-link.active { background: linear-gradient(to right, #00ffe0, #00b8ff); color: #111; border: none; }
.page-link.disabled { opacity: .5; pointer-events: none; }

/* === Sidebar === */
.blog-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 22px; }
.sidebar-card { background: #0c1c1c; border: 1px solid rgba(0,255,224,.12); border-radius: 16px; padding: 20px; box-shadow: 0 0 16px rgba(0,255,224,.05); }
.sidebar-title { font-size: 1.1rem; color: #00ffe0; margin-bottom: 14px; font-weight: 700; }

/* Search */
.search-wrap { display: flex; align-items: center; gap: 10px; background: #111; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; padding: 8px 10px; }
.search-wrap input { flex: 1; background: transparent; border: none; color: #fff; outline: none; padding: 6px 10px; font-size: .95rem; }
.search-wrap button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(0,255,224,.35); background: rgba(0,255,224,.12); color: #00ffe0; cursor: pointer; }
.search-wrap button:hover { background: rgba(0,255,224,.2); }

/* Categories */
.sidebar-list { list-style: none; display: grid; gap: 10px; }
.sidebar-list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-decoration: none; color: #cfe; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.sidebar-list a:hover { color: #00ffe0; border-color: rgba(0,255,224,.35); }
.sidebar-list span { font-size: .85rem; color: #9bd; }

/* Featured */
.featured-list { display: grid; gap: 12px; }
.featured-item { display: grid; grid-template-columns: 60px 1fr; gap: 12px; align-items: center; text-decoration: none; color: #eaeaea; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 10px; }
.featured-item:hover { border-color: rgba(0,255,224,.35); }
.featured-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.featured-item h4 { font-size: .95rem; margin-bottom: 4px; color: #fff; }
.featured-item time { font-size: .8rem; color: #99b; }

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: .85rem; padding: 8px 12px; border-radius: 999px; background: rgba(0,255,224,.08); border: 1px solid rgba(0,255,224,.2); color: #9bd; text-decoration: none; }
.chip:hover { color: #00ffe0; border-color: rgba(0,255,224,.45); }

/* Newsletter + Footer (reuse your existing look to stay consistent) */
.newsletter { background: radial-gradient(circle at center, #001a20 0%, #000 100%); color: #fff; text-align: center; padding: 100px 20px; }
.newsletter h3 { font-size: 2.2rem; margin-bottom: 16px; font-weight: 700; background: linear-gradient(to right, #00ffe0, #00b8ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.newsletter p { font-size: 1.1rem; max-width: 700px; margin: 0 auto 40px; color: #ccc; }
.newsletter .cta-gradient-button { display: inline-block; padding: 16px 32px; font-size: 1rem; font-weight: 600; border-radius: 50px; background: linear-gradient(to right, #00ffe0, #00b8ff); color: #111; text-decoration: none; box-shadow: 0 8px 24px rgba(0,255,224,.2); }
.newsletter .cta-gradient-button:hover { background: #00ffe0; color: #000; }

/* Footer */
.footer {
  background: radial-gradient(circle at top left, #001f2f, #000);
  color: #ccc;
  padding: 60px 20px 30px;
  font-size: 0.95rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-column {
  flex: 1;
  min-width: 240px;
}

.footer-title {
  font-size: 1.2rem;
  color: #00ffe0;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #00ffe0;
}

.footer-tagline {
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: #aaa;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #00ffe0;
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 255, 224, 0.1);
  color: #00ffe0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid rgba(0, 255, 224, 0.3);
}

.social-icons a:hover {
  background-color: #00ffe0;
  color: #111;
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(0, 255, 224, 0.5);
}

.footer-newsletter {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.footer-newsletter input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 30px;
  border: none;
  background: #111;
  color: #fff;
}

.footer-newsletter input::placeholder {
  color: #888;
}

.footer-newsletter button {
  padding: 10px 20px;
  background: #00ffe0;
  color: #111;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.footer-newsletter button:hover {
  background: #00b8ff;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  color: #777;
  font-size: 0.85rem;
}

.footer-bottom hr {
  border: 0;
  height: 1px;
  background: rgba(0, 255, 224, 0.15);
  margin-bottom: 20px;
}

/* Chatbase bubble button */
#chatbase-bubble-button {
  background: radial-gradient(circle at top left, #001f2f, #000) !important;
  border: 2px solid #00ffe0 !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  box-shadow: 0 0 20px rgba(0, 255, 224, 0.2) !important;
  transition: all 0.3s ease !important;
  z-index: 9999 !important;
}

#chatbase-bubble-button:hover {
  transform: scale(1.1);
  background: radial-gradient(circle at center, #003f48, #000) !important;
  box-shadow: 0 0 30px rgba(0, 255, 224, 0.4) !important;
}

/* Make inner SVG icon glow slightly */
#chatbase-bubble-button svg {
  filter: drop-shadow(0 0 5px #00ffe0);
  width: 32px;
  height: 32px;
}

/* Chat bubble container (optional if you want to tweak that) */
#chatbase-message-bubbles {
  background: #001f2f !important;
  border-radius: 12px !important;
  box-shadow: 0 0 15px rgba(0, 255, 224, 0.15) !important;
  color: #fff !important;
  font-family: 'Open Sans', sans-serif;
}

/* Close button on chat bubble */
#chatbase-message-bubbles > div {
  background-color: #00ffe0 !important;
  color: #111 !important;
  font-weight: bold;
  font-size: 12px !important;
}

@media (max-width: 768px) {
  #chatbase-bubble-button {
    width: 72px !important;
    height: 72px !important;
  }

  #chatbase-bubble-button svg {
    width: 40px !important;
    height: 40px !important;
  }
}


/* === Mobile nav (same interaction) === */
.menu-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; }
.menu-toggle .bar { width: 24px; height: 2px; background: #00ffe0; transition: all .3s; }
.menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === Responsive === */
@media (max-width: 992px) {
  .blog-hero-inner { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
}
@media (max-width: 768px) {
  .nav-container { flex-wrap: wrap; }
  .menu-toggle { display: flex; z-index: 1001; }
  .main-nav { position: fixed; top: 0; right: 0; height: 100%; width: 100%; max-width: 320px; background: #000; padding: 80px 24px 40px; box-shadow: -2px 0 10px rgba(0,255,224,.2); transform: translateX(100%); transition: transform .4s ease; flex-direction: column; align-items: flex-start; z-index: 1000; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; width: 100%; gap: 20px; margin-bottom: 40px; }
  .nav-cta { width: 100%; text-align: center; border: 2px solid #00ffe0; background: transparent; }
}


/* Single-column blog layout (no sidebar) */
.blog-grid.single {
  grid-template-columns: 1fr;
}

/* Optional: make cards a touch wider on large screens */
@media (min-width: 1280px) {
  .blog-grid.single .blog-list {
    max-width: 900px;
    margin: 0 auto;
  }
}
