/* Blog Post Specific Styles */
.blog-post {
    padding: 100px 0 0;
    background: var(--bg-light);
}

.post-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.post-content {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.post-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.breadcrumb a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s ease;
}

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

.breadcrumb span {
    margin: 0 0.5rem;
}

.post-category {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 0.9rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
}

.author-title {
    font-size: 0.8rem;
    color: var(--text-light);
}

.post-date,
.read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-image {
    position: relative;
}

.post-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 2rem 1rem;
    font-size: 0.9rem;
    font-style: italic;
}

.post-body {
    padding: 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-intro {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.post-body h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.post-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.post-body p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.post-body a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
}

.post-body a:hover {
    color: var(--secondary-color);
}

.post-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-image.inline-image {
    margin: 2rem 0;
    border-radius: 0;
    box-shadow: none;
}

.post-image.inline-image img {
    border-radius: 8px;
}

.image-gallery-caption {
    margin: -0.5rem 0 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
}

.post-body ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.specs-table {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
}

.spec-value {
    color: var(--text-light);
    flex: 2;
    text-align: right;
}

.image-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.image-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.highlight-box h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.highlight-box p {
    margin: 0;
    opacity: 0.9;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.pros,
.cons {
    padding: 1.5rem;
    border-radius: 8px;
}

.pros {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.cons {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.pros h3 {
    color: #16a34a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cons h3 {
    color: #dc2626;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pros h3::before {
    content: '✓';
    font-weight: bold;
}

.cons h3::before {
    content: '✗';
    font-weight: bold;
}

.pros ul,
.cons ul {
    margin: 0;
    padding-left: 1rem;
}

.pros li {
    color: #15803d;
}

.cons li {
    color: #dc2626;
}

.rating-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.overall-rating {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.rating-label {
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.rating-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 1.5rem;
}

.rating-stars i {
    color: #fbbf24;
}

.rating-number {
    margin-left: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.category-ratings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-rating span:first-child {
    min-width: 100px;
    font-weight: 500;
    color: var(--text-dark);
}

.category-rating span:last-child {
    min-width: 30px;
    font-weight: 600;
    color: var(--text-dark);
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 1s ease;
}

.post-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-share span {
    font-weight: 500;
    color: var(--text-dark);
}

.share-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.share-link:hover {
    transform: translateY(-2px);
}

.share-link.twitter {
    background: #1da1f2;
}

.share-link.facebook {
    background: #4267b2;
}

.share-link.linkedin {
    background: #0077b5;
}

.share-link.reddit {
    background: #ff4500;
}

/* Sidebar */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
}

.related-post img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.related-content h4 {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.related-content h4 a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.related-content h4 a:hover {
    color: var(--primary-color);
}

.related-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.toc {
    list-style: none;
    padding: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    text-decoration: none;
    color: var(--text-dark);
    padding: 0.3rem 0;
    display: block;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    padding-left: 1rem;
}

.toc a:hover {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

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

/* More Posts Section */
.more-posts {
    padding: 4rem 0;
    background: var(--bg-white);
}

.more-posts h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.more-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-category {
    background: var(--gradient-primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
}

.post-card-content h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.post-card-content h3 a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.post-card-content h3 a:hover {
    color: var(--primary-color);
}

.post-card-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .post-sidebar {
        order: -1;
    }

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

    .post-meta {
        gap: 1rem;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }

    .pros-cons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .post-content {
        margin: 0 -20px;
        border-radius: 0;
    }

    .post-header {
        padding: 1.5rem;
    }

    .post-body {
        padding: 1.5rem;
    }

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

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .post-image img {
        height: 250px;
    }

    .category-ratings {
        gap: 0.8rem;
    }

    .category-rating {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .category-rating span:first-child {
        min-width: auto;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .more-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .post-header h1 {
        font-size: 1.5rem;
    }

    .post-body {
        font-size: 1rem;
        line-height: 1.7;
    }

    .post-body h2 {
        font-size: 1.5rem;
    }

    .post-body h3 {
        font-size: 1.3rem;
    }

    .specs-table {
        padding: 1rem;
    }

    .spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .spec-value {
        text-align: left;
    }

    .highlight-box {
        padding: 1.5rem;
    }

    .rating-box {
        padding: 1.5rem;
    }

    .sidebar-widget {
        padding: 1rem;
    }
}