/*
Theme Name: TrioMRR Child Theme
Theme URI: https://www.triomrr.com
Author: TrioMRR
Author URI: https://www.triomrr.com
Description: Child theme for TrioMRR Theme with custom blog post styling and templates
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Template: triomrr-theme
License: Private
License URI: https://www.triomrr.com
Text Domain: triomrr-child
Domain Path: /languages
*/

/* All styles are inherited from the parent theme (triomrr-theme/style.css)
   and overridden below as needed for child theme customizations */

/* ========================================
   SINGLE POST / BLOG POST STYLES
======================================== */
.post-single {
  margin: 0;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--slate-400);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.post-meta a {
  color: var(--teal-500);
  text-decoration: none;
  transition: color 0.2s;
}

.post-meta a:hover {
  color: var(--accent-500);
}

.post-single h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin-bottom: 1.5rem;
  margin-top: 0;
}

.post-thumbnail-wrapper {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
}

.post-thumbnail-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0;
  display: block;
}

.post-content {
  margin: 2rem 0;
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-900);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.post-content h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-content p {
  font-size: 1.05rem;
  color: var(--slate-500);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: var(--slate-500);
}

.post-content li {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 0.4rem;
}

.post-content a {
  color: var(--teal-500);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content a:hover {
  color: var(--accent-500);
}

.post-content blockquote {
  border-left: 3px solid var(--accent-500);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--slate-500);
}

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

.post-content th,
.post-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
  font-size: 0.95rem;
}

.post-content th {
  font-weight: 600;
  color: var(--navy-900);
  background: var(--slate-50);
}

.post-content td {
  color: var(--slate-500);
}

.post-content img {
  border-radius: 8px;
  margin: 1.5rem 0;
  max-width: 100%;
  height: auto;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--slate-200);
  margin: 2rem 0;
}

.post-navigation {
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.post-navigation .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
}

/* ========================================
   BLOG LISTING / ARCHIVE STYLES
======================================== */
.blog-header {
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--slate-200);
  margin-bottom: 3rem;
}

.blog-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.blog-header p {
  font-size: 1.05rem;
  color: var(--slate-500);
  max-width: 600px;
  margin: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding-bottom: var(--section-pad);
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
}

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-500);
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--slate-400);
  margin-bottom: 0.5rem;
}

.blog-card-body h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 0.65rem;
  line-height: 1.3;
}

.blog-card-body h2 a {
  color: var(--navy-900);
  text-decoration: none;
}

.blog-card-body h2 a:hover {
  color: var(--teal-500);
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--slate-500);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.blog-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-500);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-card-link:hover {
  color: var(--accent-600);
}

.blog-card-link svg {
  transition: transform 0.2s;
}

.blog-card-link:hover svg {
  transform: translateX(3px);
}

/* Pagination */
.pagination {
  padding: 2rem 0 var(--section-pad);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-500);
  text-decoration: none;
  border: 1px solid var(--slate-200);
  transition: all 0.2s;
}

.page-numbers:hover {
  border-color: var(--navy-900);
  color: var(--navy-900);
}

.page-numbers.current {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
