@import url("../../../styles/reset.css");
@import url("../../../styles/variables.css");
@import url("../../../styles/global.css");

/* Blog styling */
.blog-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px;
    background-color: var(--color-background);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.blog-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: var(--background-border);
}

.blog-title {
    margin-bottom: 10px;
}

.blog-meta {
    color: var(--color-secondary);
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.blog-featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 4px solid var(--color-peach);
    /* Purple from palette */
}

.blog-content {
    line-height: 1.6;
    color: var(--color-text);
}

.blog-content p {
    margin-bottom: 20px;
}

.blog-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.blog-content h3 {
    color: var(--color-secondary);
    /* Green from palette */
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-content ul {
    padding-left: 30px;
}

.blog-content ol {
    padding-left: 30px;
}

blockquote {
    border-left: 4px solid var(--color-secondary);
    /* Green from palette */
    padding: 15px;
    margin: 20px 0;
    background-color: rgba(138, 66, 122, 0.1);
    font-style: italic;
    /* Purple from palette */
}

.blog-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: var(--background-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-tags {
    display: flex;
    gap: 10px;
}

.blog-tag {
    background-color: var(--color-secondary);
    /* Green from palette */
    color: var(--color-background);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.blog-share {
    display: flex;
    gap: 15px;
}

.share-icon {
    width: 30px;
    height: 30px;
    background-color: var(--color-primary);
    /* Purple from palette */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.share-icon:hover {
    background-color: var(--color-alert);
    /* Orange from palette */
}

.blog-author {
    display: flex;
    align-items: center;
    margin-top: 50px;
    padding: 20px;
    background-color: rgba(138, 66, 122, 0.1);
    border-radius: 8px;
}

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid var(--color-primary);
    /* Purple from palette */
}

.author-bio {
    font-size: 0.9rem;
    color: var(--color-text);
}

.author-bio h4 {
    color: var(--color-primary);
    /* Purple from palette */
    margin-top: 0;
    margin-bottom: 10px;
}

.related-posts {
    margin-top: 60px;
}

.related-posts h3 {
    color: var(--color-primary);
    /* Purple from palette */
    text-align: center;
    margin-bottom: 30px;
}

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

.related-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.related-image {
    width: 100%;
    height: 150px;
    background-color: var(--color-primary);
    /* Purple from palette */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.related-content {
    padding: 15px;
}

.related-title {
    color: var(--color-primary);
    /* Purple from palette */
    margin-top: 0;
    font-size: 1rem;
}

.related-excerpt {
    color: #555;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Site footer styling */
.site-footer {
    color: var(--color-text);
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.footer-socket-wrapper {
    width: 100%;
}

.inner-wrap {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem;
}

.footer-socket-area {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Comments section */
.blog-comments {
    margin-top: 60px;
}

.blog-comments h3 {
    margin-bottom: 30px;
    color: var(--color-primary);
}

.comment-form {
    margin-bottom: 30px;
    background-color: rgba(36, 91, 11, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--color-secondary);
}

.comment-form h4 {
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 15px;
}

.form-row {
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    color: var(--color-primary);
    font-weight: bold;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    box-sizing: border-box;
}

.form-row textarea {
    min-height: 120px;
    resize: vertical;
}

.name-email-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.name-email-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.name-email-row .form-row {
    flex: 1;
    min-width: 0;
}

button {
    background-color: var(--color-primary);
    color: var(--color-background);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--color-alert);
}

.comment {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: bold;
    color: var(--color-secondary);
}

.comment-timestamp {
    color: var(--color-light-text);
    font-size: 0.85rem;
}

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

.comment-actions {
    display: flex;
    gap: 10px;
}

.comment-children {
    margin-top: 15px;
    border-left: 3px solid var(--color-secondary);
    padding-left: 17px;
}

.comment-children .comment {
    margin-left: 0 !important;
    border-bottom: 1px solid #eee;
}

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

.reply-link {
    display: inline-block;
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
}

.reply-link:hover {
    color: var(--color-alert);
}

.comment-reply-form {
    margin-top: 10px;
    border-left: 3px solid var(--color-secondary);
    padding: 15px;
    background-color: rgba(36, 91, 11, 0.05);
    border-radius: 8px;
    max-width: 100%;
    box-sizing: border-box;
}

.comment-reply-form form {
    width: 100%;
}

.comment-form,
.comment-reply-form,
.form-row,
.name-email-row {
    box-sizing: border-box;
}

.admin-comment {
    background-color: rgba(138, 66, 122, 0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
}

/* Responsive design for mobile */
@media screen and (max-width: 768px) {
    .blog-container {
        width: 90%;
        padding: 20px;
        margin: 40px auto;
    }

    .blog-meta {
        flex-direction: column;
        gap: 5px;
    }

    .blog-footer {
        flex-direction: column;
        gap: 20px;
    }

    .blog-author {
        flex-direction: column;
        text-align: center;
    }

    .author-image {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .navbar a:not(:first-child) {
        padding: 10px 10px;
        font-size: 0.9rem;
    }

    .inner-wrap {
        width: 90%;
        padding: 0.3rem;
    }

    .copyright {
        font-size: 0.75rem;
    }

    .name-email-row {
        flex-direction: column;
        gap: 15px;
    }

    .name-email-row .form-row {
        width: 100%;
    }

    .comment-reply-form {
        padding: 10px;
    }
}