/**
 * HarryShop - Blog Detail Page CSS
 * Trang chi tiết bài viết
 */

/* ===== Breadcrumb ===== */
.breadcrumb-section {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    color: #999;
}

.breadcrumb li a {
    color: #666;
}

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

.breadcrumb li:last-child {
    color: #333;
    font-weight: 500;
}

/* ===== Blog Detail Page ===== */
.blog-detail-page {
    padding: 30px 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

/* ===== Blog Content ===== */
.blog-content {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.blog-header {
    padding: 30px 30px 0;
}

.blog-title-detail {
    font-size: 28px;
    font-weight: 700;
    color: #0a0a0a;
    line-height: 1.4;
    margin-bottom: 15px;
}

.blog-meta-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #666;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.blog-meta-detail span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta-detail a {
    color: var(--primary-color);
}

.blog-featured-image {
    margin: 25px 30px;
    border-radius: 10px;
    overflow: hidden;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
}

/* ===== Blog Body ===== */
.blog-body {
    padding: 0 30px 30px;
}

.blog-body .lead {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 4px solid var(--primary-color);
}

.blog-body h2 {
    font-size: 22px;
    color: #0a0a0a;
    margin: 30px 0 15px;
}

.blog-body h3 {
    font-size: 18px;
    color: #0a0a0a;
    margin: 25px 0 12px;
}

.blog-body p {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

.blog-body ul,
.blog-body ol {
    margin: 15px 0 20px 25px;
}

.blog-body li {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 8px;
}

.blog-body .blog-image {
    max-width: 100%;
    margin: 25px 0;
    border-radius: 10px;
}

/* ===== Blog Boxes ===== */
.blog-box {
    padding: 20px 25px;
    border-radius: 10px;
    margin: 25px 0;
}

.blog-box h4 {
    font-size: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-box ul {
    margin: 0;
    list-style: none;
}

.blog-box li {
    padding: 6px 0;
}

.blog-box.info {
    background: #e7f3ff;
    border-left: 4px solid #3498db;
}

.blog-box.info h4 {
    color: #2980b9;
}

.blog-box.warning {
    background: #fff8e7;
    border-left: 4px solid #f39c12;
}

.blog-box.warning h4 {
    color: #d68910;
}

.blog-box.success {
    background: #e8f8f0;
    border-left: 4px solid #27ae60;
}

.blog-box.success h4 {
    color: #1e8449;
}

/* ===== Blog Table ===== */
.blog-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.blog-table th,
.blog-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.blog-table th {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.blog-table tr:nth-child(even) {
    background: #f8f8f8;
}

/* ===== Blog Tags ===== */
.blog-tags {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-label {
    font-weight: 600;
    color: #444;
}

.tag {
    padding: 6px 15px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ===== Blog Share ===== */
.blog-share {
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-label {
    font-weight: 600;
    color: #444;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s;
}

.share-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.pinterest { background: #bd081c; }

/* ===== Author Box ===== */
.author-box {
    display: flex;
    gap: 20px;
    padding: 25px 30px;
    background: #f8f8f8;
    margin: 0 30px 25px;
    border-radius: 10px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-avatar i {
    font-size: 30px;
    color: #999;
}

.author-info h4 {
    font-size: 18px;
    color: #0a0a0a;
    margin-bottom: 10px;
}

.author-info p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 12px;
}

.author-social {
    display: flex;
    gap: 10px;
}

.author-social a {
    width: 32px;
    height: 32px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s;
}

.author-social a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ===== Post Navigation ===== */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0 30px 25px;
}

.post-nav-link {
    padding: 20px;
    background: #f8f8f8;
    border-radius: 10px;
    transition: all 0.3s;
}

.post-nav-link:hover {
    background: #f0f0f0;
}

.post-nav-link.next {
    text-align: right;
}

.nav-label {
    font-size: 12px;
    color: #999;
    display: block;
    margin-bottom: 8px;
}

.nav-title {
    font-size: 14px;
    font-weight: 600;
    color: #0a0a0a;
    display: block;
}

.post-nav-link:hover .nav-title {
    color: var(--primary-color);
}

/* ===== Comments Section ===== */
.comments-section {
    padding: 30px;
    border-top: 1px solid #eee;
}

.comments-title {
    font-size: 20px;
    color: #0a0a0a;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-list {
    margin-bottom: 30px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.comment-item.reply {
    margin-left: 60px;
}

.comment-avatar {
    width: 45px;
    height: 45px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment-avatar i {
    font-size: 18px;
    color: #999;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
    color: #0a0a0a;
}

.comment-date {
    font-size: 12px;
    color: #999;
}

.comment-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 10px;
}

.btn-reply {
    border: none;
    background: none;
    color: var(--primary-color);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-reply:hover {
    text-decoration: underline;
}

/* ===== Comment Form ===== */
.comment-form h4 {
    font-size: 18px;
    color: #0a0a0a;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}

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

.btn-submit {
    padding: 14px 30px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #b00606;
}

/* ===== Blog Sidebar ===== */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
}

.widget-title {
    font-size: 16px;
    color: #0a0a0a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

/* ===== Search Widget ===== */
.search-widget {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.search-widget input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    font-size: 14px;
}

.search-widget input:focus {
    outline: none;
}

.search-widget button {
    width: 45px;
    border: none;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.search-widget button:hover {
    background: #b00606;
}

/* ===== Category Widget ===== */
.category-widget {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-widget li {
    border-bottom: 1px solid #eee;
}

.category-widget li:last-child {
    border-bottom: none;
}

.category-widget a {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 14px;
    color: #444;
}

.category-widget a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.category-widget span {
    color: #999;
    font-size: 13px;
}

/* ===== Recent Posts Widget ===== */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post-item {
    display: flex;
    gap: 12px;
}

.recent-post-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.recent-post-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-item:hover h4 {
    color: var(--primary-color);
}

.recent-post-info span {
    font-size: 12px;
    color: #999;
}

/* ===== Tag Cloud Widget ===== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    transition: all 0.3s;
}

.tag-cloud a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ===== Sidebar Banner ===== */
.sidebar-banner img {
    width: 100%;
    border-radius: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .blog-title-detail {
        font-size: 22px;
    }

    .blog-header,
    .blog-body,
    .blog-tags,
    .blog-share,
    .comments-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .blog-featured-image {
        margin-left: 20px;
        margin-right: 20px;
    }

    .author-box {
        margin-left: 20px;
        margin-right: 20px;
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin: 0 auto;
    }

    .author-social {
        justify-content: center;
    }

    .post-navigation {
        grid-template-columns: 1fr;
        padding-left: 20px;
        padding-right: 20px;
    }

    .post-nav-link.next {
        text-align: left;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .comment-item.reply {
        margin-left: 20px;
    }
}

@media (max-width: 576px) {
    .blog-meta-detail {
        gap: 10px;
    }

    .breadcrumb {
        font-size: 12px;
    }
}
