/* Blog Show Page - Optimized Lightweight Styles */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

/* Typography */
.blog-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
}

.blog-content {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
}

.blog-content p {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.blog-content h2, .blog-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    color: #1a1a1a;
}

.blog-content h4, .blog-content h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem 0;
    color: #1a1a1a;
}

/* Layout */
.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.blog-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.blog-category {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.blog-date {
    color: #666;
}

.blog-author {
    color: #666;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #666;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #1d4ed8;
}

.breadcrumb-separator {
    color: #ccc;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* Featured Image */
.blog-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.blog-image-placeholder {
    text-align: center;
}

.blog-image-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
    color: #dee2e6;
}

/* Content */
.blog-body {
    margin-bottom: 2rem;
}

/* Tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.blog-tag {
    background: #f8f9fa;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid #e9ecef;
}

/* Social Share */
.blog-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-top: 1px solid #e5e5e5;
}

.blog-share-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.blog-share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
}

.share-button:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-1px);
}

/* Navigation */
.blog-navigation {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #e5e5e5;
}

.blog-back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.blog-back-button:hover {
    color: #1d4ed8;
}

.blog-back-button svg {
    width: 16px;
    height: 16px;
}

/* Comments */
.blog-comments {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #e5e5e5;
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.comments-count {
    color: #666;
    font-weight: 400;
}

.no-comments {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}

/* Comment Form */
.comment-form {
    margin-top: 1.5rem;
}

.comment-form-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s;
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.submit-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background: #1d4ed8;
}

/* Sidebar */
.blog-sidebar {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
}

.sidebar-widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e5e5;
}

/* Search Widget */
.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem;
    padding-right: 3rem;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 0.875rem;
}

.search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: #3b82f6;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button svg {
    width: 16px;
    height: 16px;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.categories-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.categories-list a:hover {
    color: #3b82f6;
}

/* Latest Posts Widget */
.latest-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.latest-post {
    display: flex;
    gap: 0.75rem;
}

.latest-post-image {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 4px;
    flex-shrink: 0;
}

.latest-post-content {
    flex: 1;
    min-width: 0;
}

.latest-post-title {
    display: block;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.latest-post-title:hover {
    color: #3b82f6;
}

.latest-post-date {
    font-size: 0.75rem;
    color: #666;
}

/* Banner Widget */
.banner {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    height: 120px;
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: white;
}

.banner-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.banner-text {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-container {
        padding: 0 0.75rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .blog-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding: 0 0.5rem;
    }
    
    .blog-title {
        font-size: 1.5rem;
    }
    
    .blog-image {
        height: 150px;
    }
}

/* Performance Optimizations */
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

.blog-content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #666;
}

.blog-content code {
    background: #f8f9fa;
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-size: 0.875em;
    color: #e83e8c;
}

.blog-content pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1rem 0;
}

.blog-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Print Styles */
@media print {
    .blog-sidebar,
    .blog-share,
    .blog-comments,
    .blog-navigation {
        display: none;
    }
    
    .blog-container {
        max-width: none;
        padding: 0;
    }
    
    .blog-title {
        font-size: 1.5rem;
    }
    
    .blog-content {
        font-size: 0.875rem;
        line-height: 1.5;
    }
}
