/* ─── Root & Globals ─── */
:root {
  --bg: #11111b;
  --bg-alt: #181825;
  --fg: #cdd6f4;
  --fg-muted: #a6adc8;
  --accent-blue: #00e0ff;
  --accent-green: #39ff14;
  --glass: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --radius: 12px;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Diagonal Animated BG ─── */
  .bg-diagonal {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
      135deg,
      var(--bg) 0%,
      var(--bg-alt) 25%,
      var(--bg) 50%,
      var(--bg-alt) 75%,
      var(--bg) 100%
    );
    background-size: 400% 400%;
    animation: bgMove 12s ease infinite;
  }
  @keyframes bgMove {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
  }

/* ─── Header ─── */
.apphub-header {
  text-align: center;
  padding: 3rem 1rem 2rem;
  background: transparent;
  position: relative;
  z-index: 1;
}

.apphub-header h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--accent-blue);
}
.apphub-header p {
  color: var(--fg-muted);
  font-size: 1.1rem;
}

/* ─── Blog List ─── */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
  position: relative;
  z-index: 1;
}


/* ─── Blog Card ─── */
.blog-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(30px) saturate(120%);
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.blog-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
}

/* ─── Thumbnail ─── */
.blog-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #222;
}

/* ─── Details ─── */
.blog-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.blog-details h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent-green);
}
.blog-date {
  font-size: 0.9rem;
  color: var(--fg-muted);
}
.blog-details p {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.5;
  max-width: 70ch;
}

/* ─── Back Button ─── */
.floating-back-button {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 100;
  font-size: 1.5rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: background 0.3s ease, transform 0.2s ease;
}
.floating-back-button:hover {
  background: rgba(30, 30, 46, 0.6);
  transform: translateY(-3px);
}



/* ─── Responsive ─── */
@media (max-width: 768px) {
  .blog-list {
    grid-template-columns: 1fr;
    padding: 0 4vw 4rem;
  }
  .apphub-header {
    margin: 3rem 0 1.5rem;
  }
  .apphub-header h1 {
    font-size: 2rem;
  }
  .apphub-header p {
    font-size: 1rem;
  }
}

/* Headings */
.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3 {
  font-family: var(--font-display);
  color: var(--accent-blue);
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-post-content h1 { font-size: 2.2rem; }
.blog-post-content h2 { font-size: 1.8rem; }
.blog-post-content h3 { font-size: 1.5rem; }

/* Paragraphs */
.blog-post-content p {
  margin-bottom: 1.25rem;
}

/* Lists */
.blog-post-content ul,
.blog-post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
}

/* Blockquotes */
.blog-post-content blockquote {
  border-left: 4px solid var(--accent-green);
  background-color: rgba(255, 255, 255, 0.02);
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  color: var(--fg-muted);
  font-style: italic;
}

/* Code */
.blog-post-content code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.95rem;
}

/* Horizontal rule */
.blog-post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.blog-post-content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--fg-muted);
  word-break: break-word;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius); /* optional: makes it match card style */
  display: block;
  margin: 2rem auto; /* optional: centers image with spacing */
}
