/* Common Styles */
:root {
    --primary-color: #00325D;
    --secondary-color: #004975;
    --text-color: #1e1e1e;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --border-color: #dee2e6;
}

/* Blog Archive Styles */
.blog-header {
    padding: 60px 0;
    background: var(--light-gray);
    text-align: center;
}

.archive-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.archive-description {
    color: var(--medium-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Featured Posts */
.featured-posts {
    padding: 60px 0;
    background: #fff;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.featured-post {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.featured-image {
    position: relative;
    height: 400px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
}

/* Blog Grid */
.blog-grid-section {
    padding: 60px 0;
    background: var(--light-gray);
}

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

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-image {
    height: 200px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
}

/* Post Meta Styles */
.post-categories {
    margin-bottom: 15px;
}

.post-categories a {
    display: inline-block;
    padding: 5px 10px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
    margin-right: 5px;
}

.post-meta {
    color: var(--medium-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Single Post Styles */
.post-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
    text-align: center;
}

.post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.post-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.post-title {
    font-size: 3.5rem;
    margin: 20px 0;
}

/* Table of Contents */
.post-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin: 60px 0;
}

.toc-sidebar {
    position: relative;
}

.toc-wrapper {
    position: sticky;
    top: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.toc-wrapper h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.toc-list {
    font-size: 0.9rem;
}

.toc-sublist {
    margin-left: 15px;
    list-style: none;
    padding-left: 10px;
    border-left: 2px solid var(--border-color);
}

.toc-item {
    margin: 10px 0;
}

.toc-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.toc-link:hover,
.toc-link.active {
    color: var(--primary-color);
}

/* Post Content */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 40px 0 20px;
}

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

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--medium-gray);
}

/* Author Box */
.author-box {
    margin: 60px 0;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
}

.author-avatar img {
    border-radius: 50%;
}

.author-social {
    margin-top: 15px;
}

.author-social a {
    color: var(--medium-gray);
    margin-right: 15px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.author-social a:hover {
    color: var(--primary-color);
}

/* Related Posts */
.related-posts {
    margin: 60px 0;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 40px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 4px;
    background: #fff;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background: var(--primary-color);
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .post-layout {
        grid-template-columns: 1fr;
    }
    
    .toc-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .featured-grid,
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-title {
        font-size: 2.5rem;
    }
    
    .author-box {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
}

/* Comments Section */
.comments-area {
    margin: 60px 0;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comments-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
}

.comments-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    margin-bottom: 30px;
}

.comment:last-child {
    margin-bottom: 0;
}

.comment-body {
    position: relative;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 8px;
    margin-left: 60px;
}

.comment-body::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--light-gray) transparent transparent;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author .avatar {
    position: absolute;
    left: -60px;
    top: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comment-author .fn {
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    margin-right: 10px;
}

.comment-metadata {
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-bottom: 15px;
}

.comment-metadata a {
    color: var(--medium-gray);
    text-decoration: none;
}

.comment-metadata a:hover {
    color: var(--primary-color);
}

.comment-content {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 10px;
}

.reply {
    text-align: right;
}

.reply a {
    display: inline-block;
    padding: 5px 15px;
    font-size: 0.85rem;
    color: var(--medium-gray);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.reply a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(0, 123, 255, 0.05);
}

/* Nested Comments */
.children {
    list-style: none;
    padding-left: 40px;
    margin-top: 30px;
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.comment-form {
    display: grid;
    gap: 20px;
}

.comment-notes {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.comment-form-comment label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.comment-form-comment textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.comment-form-comment textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: grid;
    gap: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.form-submit {
    margin-top: 20px;
}

.submit {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Logged in as */
.logged-in-as {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.logged-in-as a {
    color: var(--primary-color);
    text-decoration: none;
}

.logged-in-as a:hover {
    text-decoration: underline;
}

/* Required Fields */
.required {
    color: #dc3545;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .comments-area {
        padding: 20px;
    }

    .comment-body {
        margin-left: 45px;
    }

    .comment-author .avatar {
        width: 35px;
        height: 35px;
        left: -45px;
    }

    .children {
        padding-left: 20px;
    }

    .comment-form-author,
    .comment-form-email,
    .comment-form-url {
        grid-template-columns: 1fr;
    }
} 