/*
 * NGA Blog Post Styler - Main Stylesheet
 * Version: 1.0.0
 * 
 * This stylesheet provides professional blog post styling that matches
 * the NGA Digital brand identity without affecting header, footer, or other pages.
 */

/* ============================================
   Variables & Root Styles
   ============================================ */
:root {
    --nga-primary-color: #0CB8E8;
    --nga-secondary-color: #1a1a1a;
    --nga-accent-color: #FF6B35;
    --nga-text-dark: #2c2c2c;
    --nga-text-light: #666666;
    --nga-border-color: #e5e5e5;
    --nga-bg-light: #f8f9fa;
    --nga-white: #ffffff;
    --nga-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --nga-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================
   Container & Wrapper
   ============================================ */
.nga-single-post-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    font-family: var(--nga-font-body);
    color: var(--nga-text-dark);
    line-height: 1.7;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.nga-breadcrumbs {
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--nga-text-light);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.nga-breadcrumbs a {
    color: var(--nga-primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nga-breadcrumbs a:hover {
    color: var(--nga-secondary-color);
}

.nga-breadcrumbs .separator {
    color: var(--nga-text-light);
}

.nga-breadcrumbs .current {
    color: var(--nga-text-dark);
    font-weight: 500;
}

/* ============================================
   Post Article
   ============================================ */
.nga-post-article {
    background: var(--nga-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
}

/* Featured Image */
.nga-featured-image {
    position: relative;
    overflow: hidden;
    background: var(--nga-bg-light);
}

.nga-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
}

/* Post Header & Meta */
.nga-post-header {
    padding: 35px 40px 25px;
    border-bottom: 1px solid var(--nga-border-color);
}

.nga-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
    font-size: 14px;
    color: var(--nga-text-light);
}

.nga-post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nga-post-meta svg {
    color: var(--nga-primary-color);
    flex-shrink: 0;
}

.nga-post-category a {
    color: var(--nga-primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nga-post-category a:hover {
    color: var(--nga-accent-color);
}

/* Post Content */
.nga-post-content {
    padding: 45px 40px;
}

.nga-post-content h1,
.nga-post-content h2,
.nga-post-content h3,
.nga-post-content h4,
.nga-post-content h5,
.nga-post-content h6 {
    font-family: var(--nga-font-heading);
    color: var(--nga-secondary-color);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 35px;
    margin-bottom: 20px;
}

.nga-post-content h1 { font-size: 36px; margin-top: 0; }
.nga-post-content h2 { font-size: 32px; }
.nga-post-content h3 { font-size: 26px; }
.nga-post-content h4 { font-size: 22px; }
.nga-post-content h5 { font-size: 18px; }
.nga-post-content h6 { font-size: 16px; }

.nga-post-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--nga-text-dark);
}

.nga-post-content a {
    color: var(--nga-primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.nga-post-content a:hover {
    color: var(--nga-accent-color);
    border-bottom-color: var(--nga-accent-color);
}

.nga-post-content ul,
.nga-post-content ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.nga-post-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.nga-post-content ul li {
    list-style-type: none;
    position: relative;
}

.nga-post-content ul li:before {
    content: "▸";
    color: var(--nga-primary-color);
    font-weight: bold;
    position: absolute;
    left: -20px;
}

.nga-post-content blockquote {
    border-left: 4px solid var(--nga-primary-color);
    background: var(--nga-bg-light);
    padding: 25px 30px;
    margin: 30px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

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

.nga-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.nga-post-content code {
    background: var(--nga-bg-light);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--nga-accent-color);
}

.nga-post-content pre {
    background: var(--nga-secondary-color);
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
}

.nga-post-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.nga-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--nga-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nga-post-content table th,
.nga-post-content table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--nga-border-color);
}

.nga-post-content table th {
    background: var(--nga-bg-light);
    font-weight: 600;
    color: var(--nga-secondary-color);
}

.nga-post-content table tr:last-child td {
    border-bottom: none;
}

/* Post Tags */
.nga-post-tags {
    padding: 25px 40px 35px;
    border-top: 1px solid var(--nga-border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.nga-tags-label {
    font-weight: 600;
    color: var(--nga-secondary-color);
    font-size: 15px;
}

.nga-post-tags a {
    display: inline-block;
    padding: 6px 16px;
    background: var(--nga-bg-light);
    color: var(--nga-text-dark);
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 1px solid var(--nga-border-color);
}

.nga-post-tags a:hover {
    background: var(--nga-primary-color);
    color: var(--nga-white);
    border-color: var(--nga-primary-color);
}

/* ============================================
   Author Box
   ============================================ */
.nga-author-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid var(--nga-border-color);
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 50px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.nga-author-avatar {
    flex-shrink: 0;
}

.nga-author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    border: 3px solid var(--nga-primary-color);
}

.nga-author-info {
    flex: 1;
}

.nga-author-name {
    font-family: var(--nga-font-heading);
    font-size: 22px;
    color: var(--nga-secondary-color);
    margin: 0 0 12px 0;
    font-weight: 700;
}

.nga-author-bio {
    color: var(--nga-text-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.nga-author-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--nga-primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nga-author-link:hover {
    color: var(--nga-accent-color);
    gap: 12px;
}

.nga-author-link svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   Related Posts
   ============================================ */
.nga-related-posts {
    margin-bottom: 60px;
}

.nga-related-title {
    font-family: var(--nga-font-heading);
    font-size: 32px;
    color: var(--nga-secondary-color);
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.nga-related-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--nga-primary-color) 0%, var(--nga-accent-color) 100%);
    border-radius: 2px;
}

.nga-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.nga-related-item {
    background: var(--nga-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid var(--nga-border-color);
}

.nga-related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(12, 184, 232, 0.15);
}

.nga-related-thumbnail {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--nga-bg-light);
}

.nga-related-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nga-related-item:hover .nga-related-thumbnail img {
    transform: scale(1.05);
}

.nga-related-content {
    padding: 25px;
}

.nga-related-date {
    display: block;
    font-size: 13px;
    color: var(--nga-text-light);
    margin-bottom: 10px;
}

.nga-related-post-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.nga-related-post-title a {
    color: var(--nga-secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nga-related-post-title a:hover {
    color: var(--nga-primary-color);
}

.nga-related-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--nga-primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nga-related-read-more:hover {
    color: var(--nga-accent-color);
    gap: 10px;
}

.nga-related-read-more svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   Comments Section
   ============================================ */
.nga-comments-wrapper {
    background: var(--nga-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nga-comments-wrapper .comments-title {
    font-family: var(--nga-font-heading);
    font-size: 28px;
    color: var(--nga-secondary-color);
    margin-bottom: 30px;
    font-weight: 700;
}

.nga-comments-wrapper .comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nga-comments-wrapper .comment {
    border-bottom: 1px solid var(--nga-border-color);
    padding: 25px 0;
}

.nga-comments-wrapper .comment:last-child {
    border-bottom: none;
}

.nga-comments-wrapper .comment-author {
    font-weight: 600;
    color: var(--nga-secondary-color);
}

.nga-comments-wrapper .comment-metadata {
    font-size: 13px;
    color: var(--nga-text-light);
    margin-bottom: 12px;
}

.nga-comments-wrapper .comment-content {
    color: var(--nga-text-dark);
    line-height: 1.7;
}

.nga-comments-wrapper .reply {
    margin-top: 10px;
}

.nga-comments-wrapper .comment-reply-link {
    color: var(--nga-primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nga-comments-wrapper .comment-reply-link:hover {
    color: var(--nga-accent-color);
}

.nga-comments-wrapper .comment-form input[type="text"],
.nga-comments-wrapper .comment-form input[type="email"],
.nga-comments-wrapper .comment-form input[type="url"],
.nga-comments-wrapper .comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--nga-border-color);
    border-radius: 6px;
    font-family: var(--nga-font-body);
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.nga-comments-wrapper .comment-form input:focus,
.nga-comments-wrapper .comment-form textarea:focus {
    outline: none;
    border-color: var(--nga-primary-color);
}

.nga-comments-wrapper .comment-form .submit {
    background: linear-gradient(135deg, var(--nga-primary-color) 0%, #0a9dc7 100%);
    color: var(--nga-white);
    padding: 12px 35px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nga-comments-wrapper .comment-form .submit:hover {
    background: linear-gradient(135deg, #0a9dc7 0%, var(--nga-primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 184, 232, 0.3);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .nga-single-post-wrapper {
        padding: 20px 15px 40px;
    }
    
    .nga-post-header {
        padding: 25px 20px 20px;
    }
    
    .nga-post-content {
        padding: 30px 20px;
    }
    
    .nga-post-tags {
        padding: 20px;
    }
    
    .nga-post-meta {
        gap: 15px;
    }
    
    .nga-author-box {
        flex-direction: column;
        padding: 25px;
        text-align: center;
        align-items: center;
    }
    
    .nga-related-grid {
        grid-template-columns: 1fr;
    }
    
    .nga-post-content h1 { font-size: 28px; }
    .nga-post-content h2 { font-size: 24px; }
    .nga-post-content h3 { font-size: 20px; }
    
    .nga-related-title {
        font-size: 26px;
    }
    
    .nga-comments-wrapper {
        padding: 25px 20px;
    }
    
    .nga-breadcrumbs {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .nga-featured-image img {
        max-height: 300px;
    }
    
    .nga-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .nga-breadcrumbs,
    .nga-author-box,
    .nga-related-posts,
    .nga-comments-wrapper {
        display: none;
    }
    
    .nga-post-article {
        box-shadow: none;
    }
}
