/* Blog Page Styles */
.blog-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 30px;
    min-height: calc(100vh - 200px);
}

/* Sidebar Styles */
.blog-sidebar {
    width: 300px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-sidebar h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-item {
    padding: 12px 15px;
    background-color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.blog-item:hover {
    background-color: #667eea;
    color: white;
    border-left-color: #764ba2;
    transform: translateX(5px);
}

.blog-item.active {
    background-color: #667eea;
    color: white;
    border-left-color: #764ba2;
}

.blog-item-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
}

.blog-item-date {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Main Content Styles */
.blog-content {
    flex: 1;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-post h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.blog-meta {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.blog-post-content {
    color: #333;
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-post-content h2 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.blog-post-content h3 {
    color: #667eea;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.blog-post-content p {
    margin-bottom: 1.2rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-left: 2rem;
    margin-bottom: 1.2rem;
}

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

.blog-post-content code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.blog-post-content pre {
    background-color: #2c3e50;
    color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1.2rem;
}

.blog-post-content pre code {
    background-color: transparent;
    color: #f8f9fa;
    padding: 0;
}

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

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

.comments-list {
    margin-bottom: 2rem;
}

.comment {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 3px solid #667eea;
}

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

.comment-author {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.05rem;
}

.comment-date {
    color: #666;
    font-size: 0.85rem;
}

.comment-text {
    color: #333;
    line-height: 1.6;
}

/* Comment Form */
.comment-form-container {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 2rem;
}

.comment-form-container h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.comment-note {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.comment-form .form-group {
    margin-bottom: 1.2rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

.comment-form label .required {
    color: #e74c3c;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.comment-form .char-count {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.3rem;
    text-align: right;
}

.comment-form .char-count.warning {
    color: #e74c3c;
    font-weight: 600;
}

.comment-form .submit-btn {
    background-color: #667eea;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-bottom: 1rem;
}

.comment-form .submit-btn:hover {
    background-color: #5568d3;
    transform: translateY(-2px);
}

.comment-form .submit-btn:active {
    transform: translateY(0);
}

.comment-form .moderation-note {
    background-color: #fff3cd;
    color: #856404;
    padding: 12px 15px;
    border-radius: 5px;
    border-left: 4px solid #ffc107;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.comment-form .moderation-note strong {
    color: #664d03;
}

.comment-form .success-message,
.success-message {
    display: none;
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-top: 1.5rem;
    text-align: center;
    border: 1px solid #c3e6cb;
}

.comment-form .success-message.show,
.success-message.show {
    display: block;
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-container {
        flex-direction: column;
    }

    .blog-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }

    .blog-content {
        padding: 25px;
    }

    .blog-post h1 {
        font-size: 2rem;
    }

    .blog-post-content {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .blog-container {
        padding: 15px;
    }

    .blog-sidebar {
        padding: 15px;
    }

    .blog-content {
        padding: 20px;
    }

    .blog-post h1 {
        font-size: 1.8rem;
    }

    .comment-form-container {
        padding: 20px;
    }
}
