/* Gruion Blog — Custom Design Overrides
   Loaded after theme CSS to improve blog post readability and visual design.
   Brand colors: #00a7bd (teal), #ffd04d (gold), #393939 (dark text), #626262 (body text)
*/

/* =============================================
   1. POST CONTENT TYPOGRAPHY
   ============================================= */

.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #393939;
}

.post-content p {
  margin-bottom: 1.5em;
}

.post-content h2 {
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  font-family: "Raleway", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #00a7bd;
  border-bottom: 2px solid #ffd04d;
  padding-bottom: 0.4em;
}

.post-content h3 {
  margin-top: 2em;
  margin-bottom: 0.5em;
  font-family: "Raleway", sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #393939;
}

.post-content h4 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-family: "Raleway", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #393939;
}

.post-content a {
  color: #00a7bd;
  text-decoration: underline;
  text-decoration-color: #ffd04d;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.post-content a:hover {
  color: #ffd04d;
}

.post-content strong {
  font-weight: 700;
  color: #393939;
}

.post-content hr {
  width: 100%;
  max-width: 200px;
  margin: 2.5em auto;
  border: none;
  border-top: 2px solid #ffd04d;
}

/* =============================================
   2. LISTS
   ============================================= */

.post-content ul,
.post-content ol {
  margin: 1.25em 0;
  padding-left: 1.75em;
}

.post-content li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

.post-content ul li::marker {
  color: #ffd04d;
}

.post-content ol li::marker {
  color: #00a7bd;
  font-weight: 700;
}

/* =============================================
   3. CODE BLOCKS & INLINE CODE
   ============================================= */

.post-content code {
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
  background-color: #f4f6f8;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: #00a7bd;
}

.post-content pre {
  margin: 1.5em 0;
  padding: 1.25em 1.5em;
  background-color: #1e2028;
  border-radius: 8px;
  overflow-x: auto;
  border-left: 4px solid #ffd04d;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: #e0e6ed;
  font-size: 0.85em;
  line-height: 1.6;
}

/* =============================================
   4. BLOCKQUOTES
   ============================================= */

.post-content blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 4px solid #00a7bd;
  background: #f7fcfd;
  font-style: italic;
  color: #626262;
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

/* =============================================
   5. TABLES
   ============================================= */

.post-content table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.post-content th {
  background: #00a7bd;
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  text-align: left;
  padding: 0.75em 1em;
  border: 1px solid #00a7bd;
}

.post-content td {
  padding: 0.75em 1em;
  border: 1px solid #e3e9ed;
}

.post-content tr:nth-child(even) {
  background: #f7fcfd;
}

/* =============================================
   6. HEADER / HERO SECTION
   ============================================= */

.post-template .header {
  background: linear-gradient(135deg, #f7fcfd 0%, #fff 100%);
  padding-bottom: 2rem;
}

.post-full-header {
  padding: 120px 0 40px;
}

.post-full-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: #00a7bd;
  font-family: "Raleway", sans-serif;
}

.post-full-byline-meta .byline-meta-date,
.post-full-byline-meta .byline-reading-time {
  font-family: "Raleway", sans-serif;
  font-size: 0.9rem;
  color: #626262;
}

.post-full-byline-meta .bull {
  margin: 0 0.25em;
}

.post-full-image {
  margin: 1rem 0;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
}

.post-full-image img {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Description / excerpt */
.post-full-custom-excerpt {
  font-family: "Raleway", sans-serif;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #626262;
  font-weight: 400;
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: left;
  border-left: 3px solid #ffd04d;
  padding-left: 1.25em;
}

/* =============================================
   7. TAGS
   ============================================= */

.post-full-tags {
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 2rem 0 1rem;
}

.post-full-tags a {
  display: inline-block;
  padding: 0.3em 0.8em;
  background: #f7fcfd;
  color: #00a7bd;
  border: 1px solid #00a7bd;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.2s;
}

.post-full-tags a:hover {
  background: #00a7bd;
  color: #fff;
}

/* =============================================
   8. POST BYLINE
   ============================================= */

.post-full-byline {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.author-name {
  font-family: "Raleway", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #393939;
}

/* =============================================
   9. READ NEXT / POST NAVIGATION
   ============================================= */

.read-next {
  background: #f7fcfd;
  border-bottom: none;
  padding: 3rem 0;
}

.read-next-card {
  background: #fff;
  border: 1px solid #e3e9ed;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.read-next-card-header h3 {
  color: #393939;
  font-family: "Raleway", sans-serif;
}

.read-next-card-header h3 a {
  color: #00a7bd;
  opacity: 1;
}

.read-next-card-content h4 {
  font-family: "Raleway", sans-serif;
}

.read-next-card-content li a {
  color: #00a7bd;
  opacity: 1;
}

.read-next-card-content li a:hover {
  color: #ffd04d;
}

.read-next-card-content li {
  border-bottom-color: #e3e9ed;
  border-bottom-style: solid;
  border-bottom-width: 1px;
}

.read-next-card-meta p {
  color: #626262;
}

/* Post cards in navigation */
.read-next .post-card {
  background: #fff;
  border: 1px solid #e3e9ed;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.read-next .post-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.read-next .post-card-title {
  color: #00a7bd;
}

.read-next .post-card-excerpt {
  color: #626262;
}

/* =============================================
   10. IMAGES IN CONTENT
   ============================================= */

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* =============================================
   11. RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
  .post-full-header {
    padding: 80px 1rem 20px;
  }

  .post-full-title {
    font-size: 1.75rem;
  }

  .post-content {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .post-content h2 {
    font-size: 1.5rem;
  }

  .post-content h3 {
    font-size: 1.25rem;
  }

  .post-full-custom-excerpt {
    font-size: 1rem;
  }

  .read-next-feed {
    flex-direction: column;
  }
}

/* =============================================
   12. NAVBAR OVERRIDES FOR POST & TAG PAGES
   ============================================= */

/* On post and tag pages, navbar text should be black (not white) */
@media (min-width: 992px) {
  .post-template .navbar-custom .nav-item .nav-link,
  .tag-template .navbar-custom .nav-item .nav-link {
    color: #393939;
    opacity: 1;
  }

  .post-template .navbar-custom .nav-item .nav-link:hover,
  .post-template .navbar-custom .nav-item .nav-link.active,
  .tag-template .navbar-custom .nav-item .nav-link:hover,
  .tag-template .navbar-custom .nav-item .nav-link.active {
    color: #00a7bd;
  }

  .post-template .navbar-custom .fa-stack-2x,
  .tag-template .navbar-custom .fa-stack-2x {
    color: #ffd04d;
  }

  .post-template .navbar-custom .fa-stack-1x,
  .tag-template .navbar-custom .fa-stack-1x {
    color: #000;
  }
}

/* =============================================
   13. TAG/LIST PAGE — REMOVE HEADER MARGIN
   ============================================= */

.tag-template .header {
  margin-bottom: 0;
  background: #fff !important;
  background-image: none !important;
}

.tag-template .post-full-header {
  padding: 100px 0 20px;
}

.tag-template .site-main {
  padding-top: 0;
}

@media (max-width: 500px) {
  .post-full-title {
    font-size: 1.5rem;
  }

  .post-content {
    font-size: 0.95rem;
  }

  .post-full-tags {
    gap: 0.4em;
  }

  .post-full-tags a {
    font-size: 0.7rem;
    padding: 0.25em 0.6em;
  }
}
