/* Blog Post Specific Styles - Extracted from original blog.css */
/* Root Variables for Blog Posts */
:root {
    --post-preview-background-color: var(--light-green-blue);
    --post-preview-text-color: var(--primary-color);
    --blog-section-padding: 24px;
    --blog-container-max-width: 1200px;
    --blog-post-width: auto; 
    --blog-card-border-radius: 12px;
    --blog-card-shadow: 10px 40px 40px rgba(0,0,0,0.5);
    --blog-card-hover-shadow: 0 8px 24px rgba(0,0,0,0.1);
    --blog-card-gap: 24px;
    --blog-card-padding: 24px;
    --blog-card-bg-1: var(--bg-light);
    --blog-card-bg-2: var(--primary-light);
    --blog-card-bg-1-border: var(--primary-dark);
    --blog-card-bg-2-border: var(--accent-primary);
    --featured-post-shadow: 0 12px 24px rgba(0,0,0,0.1);
    /* fonts
     */
     --font-1: "Roboto", sans-serif;
     --font-2: "Inter", sans-serif;
     
     /* monospace
      */
     --font-mono: Consolas, "Andale Mono", Courier, "Courier New", monospace;
}

/* Override global link styles for navigation elements in blog context */
.tocPanel a.tocLink,
.tocPanel .tocButton a,
.topNav a.navLink {
    text-decoration: none !important;
    display: block;
}

@media screen and (max-width: 768px) {
    .tocPanel a.tocLink,
    .tocPanel .tocButton a,
    .topNav a.navLink {
        text-decoration: none !important;
        display: block;
        font-size: 0.9rem;
    }
}

/* Blog Post Layout */
.blog-post {
    position: relative;
    margin-top: 0;
    margin-right: 1rem;
    margin-bottom: 0;
    margin-left: 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: var(--blog-post-width);
}

.blog-post-content {
    margin-top: 4rem; /* Add space for the fixed banner */
    /* background: var(--bg-light); */
    border-radius: var(--blog-card-border-radius);
    box-shadow: var(--blog-card-shadow);
    padding: 2rem;
}

/* Post Header */
.post-header {
    margin-bottom: 2rem;
    text-align: left;
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
    .blog-post {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .blog-post-content {
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .blog-post {
        margin: 0 0.5rem;
        padding: 0;
        max-width: calc(100% - 1rem);
    }

    .blog-post-content {
        padding: 1rem;
        margin-top: 0; /* Remove space for TOC banner on mobile */
        border-radius: 0; /* Remove rounded corners on mobile */
        box-shadow: none; /* Remove shadow on mobile */
        background: transparent; /* Remove background on mobile */
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .blog-post {
        margin: 0 0.25rem;
    }
    
    .blog-post-content {
        padding: 0.75rem;
    }
}

/* Post Header */
.post-header {
    margin-bottom: 2rem;
    text-align: center;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

@media screen and (max-width: 768px) {
    .post-title {
        font-size: 2rem;
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .post-header {
        margin-bottom: 1.5rem;
        text-align: left;
    }
}

@media screen and (max-width: 480px) {
    .post-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .post-header {
        margin-bottom: 1rem;
    }
}

/* Post Meta */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta i {
    color: var(--primary-color);
}

@media screen and (max-width: 768px) {
    .post-meta {
        justify-content: flex-start;
        gap: 0.75rem;
        font-size: 0.85rem;
    }
}

/* Post Content - overflow containment to prevent carousel from shifting layout */
.post-content,
.blog-post-content {
    overflow-x: hidden;
}

.post-two-column-table img {
    max-width: 100%;
    height: auto;
}

/* Post Content */
.post-content {
    /* Typography foundation matching Abstract theme */
    font-family: "Roboto", var(--font-1), sans-serif;
    font-size: 0.9rem;           /* 18px with 20px base (matches Abstract's 18px) */
    line-height: 1.6;            /* More readable than 1.3 (Abstract uses ~1.7 equivalent) */
    color: var(--text-color);
    text-rendering: optimizeLegibility;
    -webkit-font-variant-ligatures: common-ligatures;
    font-variant-ligatures: common-ligatures;
    word-wrap: break-word;
    hyphens: auto;
    margin-left: 1rem;
    margin-right: 1rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    /* Header styling matching Abstract theme approach */
    font-family: "Inter", var(--font-2), sans-serif;
    font-weight: 600;
    font-style: normal;
    color: var(--primary-color);
    -webkit-font-variant-ligatures: common-ligatures;
    font-variant-ligatures: common-ligatures;
    text-rendering: optimizeLegibility;
    margin: 2rem 0 1rem;
}

.post-content p {
    margin-bottom: 1.6rem;       /* Consistent with line-height for vertical rhythm */
}

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

@media screen and (max-width: 768px) {
    .post-content {
        font-size: 1rem;
        line-height: 1.6;
        margin-left: 0;
        margin-right: 0;
    }
    
    .post-content p {
        margin-bottom: 1.25rem;
    }
    
    .post-content img {
        border-radius: 4px;
        margin: 1rem 0;
    }
}

/* Headers & Typography */
@media screen and (max-width: 768px) {
    .post-header {
        margin-bottom: 1rem;
    }
}

.post-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 2rem 0 1rem 0;
}

@media screen and (max-width: 768px) {
    .post-content h1 {
        font-size: 2rem;
        margin: 1.5rem 0 0.8rem 0;
    }
}

@media screen and (max-width: 480px) {
    .post-content h1 {
        font-size: 1.75rem;
        margin: 1.25rem 0 0.75rem 0;
    }
}

.post-content h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 4rem;
    margin-right: 0;
    margin-bottom: 1rem;
    margin-left: 0;
    background-color: var(--post-preview-background-color);
}

@media screen and (max-width: 768px) {
    .post-content h2 {
        font-size: 1.5rem;
        margin: 1.25rem 0 0.8rem 0;
        background-color: var(--post-preview-background-color);
    }
}

@media screen and (max-width: 480px) {
    .post-content h2 {
        font-size: 1.35rem;
        margin: 1.125rem 0 0.75rem 0;
    }
}

.post-content h3 {
    font-size: 1.75rem;
    font-weight: bold;
    margin: 1.5rem 0 1rem 0;
}

@media screen and (max-width: 768px) {
    .post-content h3 {
        font-size: 1.5rem;
        margin: 1.25rem 0 0.8rem 0;
    }
}

@media screen and (max-width: 480px) {
    .post-content h3 {
        font-size: 1.25rem;
        margin: 1rem 0 0.7rem 0;
    }
}

.post-content h4 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1.25rem 0 1rem 0;
}

@media screen and (max-width: 768px) {
    .post-content h4 {
        font-size: 1.3rem;
        margin: 1rem 0 0.8rem 0;
    }
}

@media screen and (max-width: 480px) {
    .post-content h4 {
        font-size: 1.15rem;
        margin: 0.9rem 0 0.7rem 0;
    }
}

.post-content h5 {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 1rem 0 0.75rem 0;
}

@media screen and (max-width: 768px) {
    .post-content h5 {
        font-size: 1.1rem;
        margin: 0.8rem 0 0.6rem 0;
    }
}

@media screen and (max-width: 480px) {
    .post-content h5 {
        font-size: 1.05rem;
        margin: 0.75rem 0 0.6rem 0;
    }
}

.post-content h6 {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 1rem 0 0.75rem 0;
}

@media screen and (max-width: 768px) {
    .post-content h6 {
        font-size: 1rem;
        margin: 0.8rem 0 0.6rem 0;
    }
}

@media screen and (max-width: 480px) {
    .post-content h6 {
        font-size: 0.95rem;
        margin: 0.7rem 0 0.5rem 0;
    }
}

/* table styles */
.post-two-column-table {
    margin: 0 auto;
    text-align: center;
    display: flex;
    gap: 0;  /* Remove gap between items */
}

.post-two-column-table-item {
    flex: 1;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post-table-column-heading {
    padding: 0.5rem;
    display: block;
}

.responsive-3plus-col-table {
    width: 100%;
    margin: 1rem 0;
} 

@media screen and (max-width: 768px) {
    .post-two-column-table {
        flex-direction: column;
    }
    
    .post-table-column-heading {
        font-size: 0.875rem;  /* Adjust as needed */
    }
}

.post-3plus-col-table-mobile-view {
    display: none;
}

.post-3plus-col-table-desktop-view {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.post-3plus-col-table-desktop-view th,
.post-3plus-col-table-desktop-view td {
    border: 1px solid #ddd;
    padding: 0.75rem;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .post-3plus-col-table-desktop-view {
        display: none;
    }
    
    .post-3plus-col-table-mobile-view {
        display: block;
    }

    .post-3plus-col-table-mobile-row {
        margin-bottom: 1.5rem;
        padding: 1rem;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    .post-3plus-col-table-mobile-row h6 {
        margin: 0 0 0.75rem 0;
        font-size: 1.1rem;
    }

    .post-3plus-col-table-mobile-row ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .post-3plus-col-table-mobile-row li {
        margin: 0.5rem 0;
        text-align: left;
    }
}

/* Lists */
.post-content ul {
    list-style-type: disc;
    margin: 1rem 0;
    padding-left: 2rem;
}

@media screen and (max-width: 768px) {
    .post-content ul {
        margin: 0.8rem 0;
        padding-left: 1.5rem;
    }
}

.post-content ul li {
    margin-bottom: 0.5rem;
    display: list-item;
}

@media screen and (max-width: 768px) {
    .post-content ul li {
        margin-bottom: 0.4rem;
    }
}

.post-content ol {
    list-style-type: decimal;
    margin: 1rem 0;
    padding-left: 2rem;
}

@media screen and (max-width: 768px) {
    .post-content ol {
        margin: 0.8rem 0;
        padding-left: 1.5rem;
    }
}

.post-content ol li {
    margin-bottom: 0.5rem;
    display: list-item;
}

@media screen and (max-width: 768px) {
    .post-content ol li {
        margin-bottom: 0.4rem;
    }
}

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

@media screen and (max-width: 768px) {
    .post-content li p {
        margin-bottom: 0.4rem;
    }
}

/* Post Metadata */
.post-date {
    margin-right: 1rem;
    padding-top: auto;
}

@media screen and (max-width: 768px) {
    .post-date {
        margin-right: 0.8rem;
    }
}

.post-author {
    font-style: italic;
    padding-left: 0rem;
    margin-left: 0.5rem;
}

@media screen and (max-width: 768px) {
    .post-author {
        padding-left: 0rem;
        margin-left: 0rem;
    }
}

/* Images */
.featured-image {
    margin-left: 0.5rem;
    width: 30%;
    height: auto;
    text-align: left;
}

@media screen and (max-width: 768px) {
    .featured-image {
        margin-left: 0.3rem;
        width: 50%;
    }
}

.featured-image img {
    max-width: 100%;
    height: auto;
}

@media screen and (max-width: 768px) {
    .featured-image img {
        max-width: 100%;
    }
}

.post-image {
    height: auto;
    width: 700px;
    object-fit: cover;
    max-width: 100%;
}

@media screen and (max-width: 768px) {
    .post-image {
        width: 100%;
    }
}

/* Tags & Sharing */
.post-tags {
    margin: 2rem 0;
}

@media screen and (max-width: 768px) {
    .post-tags {
        margin: 1.5rem 0;
    }
}

.tag {
    background: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    margin-right: 0.5rem;
    text-decoration: none;
    color: #333;
}

@media screen and (max-width: 768px) {
    .tag {
        padding: 0.2rem 0.6rem;
        margin-right: 0.4rem;
        font-size: 0.9rem;
    }
}

.share-buttons {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #eee;
}

@media screen and (max-width: 768px) {
    .share-buttons {
        margin: 1.5rem 0;
        padding: 0.8rem 0;
    }
}

/* Comments Section */
.comments {
    margin-top: 3rem;
    border-top: 10px solid #22423d;
    padding-top: 2rem;
}

@media screen and (max-width: 768px) {
    .comments {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}

.comments h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: left;
}

@media screen and (max-width: 768px) {
    .comments h3 {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }
}

.comments p.guidelines {
    text-align: left;
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
}

@media screen and (max-width: 768px) {
    .comments p.guidelines {
        margin-bottom: 1.5rem;
        font-size: 0.9rem;
    }
}

.comment {
    background: #f8f9fa;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

@media screen and (max-width: 768px) {
    .comment {
        margin-bottom: 1rem;
        padding: 1rem;
    }
}

.comment-meta strong {
    color: #2c3e50;
}

@media screen and (max-width: 768px) {
    .comment-meta strong {
        font-size: 0.9rem;
    }
}

.comment-meta span {
    color: #666;
    font-size: 0.9rem;
    margin-left: 1rem;
}

@media screen and (max-width: 768px) {
    .comment-meta span {
        font-size: 0.8rem;
        margin-left: 0.8rem;
    }
}

/* Comment Form */
.comment-form {
    margin-top: 2rem;
    max-width: 600px;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media screen and (max-width: 768px) {
    .comment-form {
        margin-top: 1.5rem;
        max-width: 100%;
        gap: 0.8rem;
    }
}

.form-group {
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .form-group {
        margin-bottom: 0;
    }
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .form-group label {
        margin-bottom: 0.4rem;
        font-size: 0.9rem;
    }
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

@media screen and (max-width: 768px) {
    .form-group input {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}

.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    min-height: 150px;
    resize: vertical;
}

@media screen and (max-width: 768px) {
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
        min-height: 120px;
    }
}

.comment-form button {
    background-color: #2c3e50;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    width: auto;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

@media screen and (max-width: 768px) {
    .comment-form button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

.comment-form button:hover {
    background-color: #34495e;
}

@media screen and (max-width: 768px) {
    .comment-form button:hover {
        background-color: #2c3e50;
    }
}

/* Blog-specific inline logo style */
.inline-logo-blog {
    display: inline;
    vertical-align: middle;
    width: auto;
    margin: 0;
    position: relative;
    top: -0.6rem;  /* Adjust this value to move the logo up */
    max-height: 5rem;
    white-space: nowrap;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

@media screen and (max-width: 768px) {
    .inline-logo-blog {
        top: -0.6rem;  /* Slightly different adjustment for mobile */
        max-height: 4rem;
    }
}

/* Author Bio */
.author-bio {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--blog-card-border-radius);
    display: flex;
    gap: 2rem;
    align-items: center;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

@media screen and (max-width: 768px) {
    .author-bio {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
}

/* Social Media Section */
.comments {
    margin-top: 3rem;
    text-align: center;
}

.comments h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.social-media-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.social-button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.social-button:hover {
    transform: translateY(-2px);
}

.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.youtube {
    background: #FF0000;
}

@media screen and (max-width: 768px) {
    .social-media-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .social-button {
        width: 100%;
        text-align: center;
    }
}

/* Blog card button styling for "Read Next" buttons in blog posts */
.blog-card-button {
    display: inline-block;
    padding: 10px;
    color: var(--accent-primary);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 24px;
    font-weight: 500;
    transition: all 0.2s ease;
    align-self: flex-start;
    flex-shrink: 0;
    z-index: 2;
    margin-top: 8px;
    background: white;
}

.blog-card-button:hover {
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-underline-offset: 4px;
    background: white;
    color: var(--accent-primary);
}

@media screen and (max-width: 768px) {
    .blog-card-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
} 