/* ========================================
   Blog Detail Page Styles
   ======================================== */

.blog-detail-container {
    max-width: 1400px;
    margin: 180px auto 0;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
}

/* Main Content */
.blog-detail-main {
    background: var(--pure-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.blog-detail-image {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.blog-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-gray);
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--secondary-teal);
}

.blog-detail-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--deep-teal);
    line-height: 1.3;
    margin-bottom: 2rem;
}

.blog-detail-content {
    color: var(--deep-gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

.blog-detail-content p {
    margin-bottom: 1.5rem;
}

.blog-detail-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--deep-teal);
    margin: 2.5rem 0 1.5rem;
}

.blog-detail-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--deep-teal);
    margin: 2rem 0 1rem;
}

.blog-detail-content blockquote {
    background: var(--light-gray);
    border-left: 4px solid var(--secondary-teal);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--accent-gray);
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.tag {
    padding: 0.5rem 1rem;
    background: var(--light-gray);
    color: var(--deep-teal);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--secondary-teal);
    color: var(--pure-white);
}

.blog-share {
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.blog-share h3 {
    font-size: 1.2rem;
    color: var(--deep-teal);
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--pure-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.pinterest {
    background: #bd081c;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Sidebar */
.blog-detail-sidebar {
    position: sticky;
    top: 180px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--pure-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--deep-teal);
    margin-bottom: 1.5rem;
}

/* Search Box */
.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background: var(--secondary-teal);
    color: var(--pure-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: var(--deep-teal);
}

/* Recent Posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    cursor: pointer;
}

.recent-post-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content h4 {
    font-size: 1rem;
    color: var(--deep-teal);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.recent-post-item:hover h4 {
    color: var(--secondary-teal);
}

.recent-post-date {
    font-size: 0.85rem;
    color: var(--accent-gray);
}

/* Categories */
.categories-list {
    list-style: none;
}

.categories-list li {
    border-bottom: 1px solid #eee;
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    color: var(--deep-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.categories-list a:hover {
    color: var(--secondary-teal);
}

.categories-list span {
    color: var(--accent-gray);
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-item {
    padding: 0.5rem 1rem;
    background: var(--light-gray);
    color: var(--deep-teal);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--secondary-teal);
    color: var(--pure-white);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .blog-detail-container {
        grid-template-columns: 1fr;
        margin-top: 160px;
    }

    .blog-detail-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-detail-container {
        padding: 2rem 1rem;
    }

    .blog-detail-main {
        padding: 2rem 1.5rem;
    }

    .blog-detail-image {
        height: 300px;
    }

    .blog-detail-title {
        font-size: 2rem;
    }

    .blog-detail-meta {
        gap: 1rem;
    }

    .blog-detail-content h2 {
        font-size: 1.5rem;
    }

    .blog-detail-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .blog-detail-title {
        font-size: 1.5rem;
    }

    .blog-detail-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .share-buttons {
        justify-content: center;
    }
}
