/* ========================================
   Watchsite Theme - Blog Detail Styles
   ======================================== */

/* ==================== Detail Layout ==================== */
.l-detail-layout {
    display: flex;
    gap: 32px;
    padding: 24px 0;
    align-items: flex-start;
}

.l-detail-main {
    flex: 1;
    min-width: 0;
    background: var(--ws-bg-white);
    border-radius: var(--ws-radius-md);
    padding: 24px;
    box-shadow: var(--ws-shadow);
}

/* ==================== Article Header ==================== */
.p-articleHeader {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--ws-border);
}

.p-articleHeader__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.p-articleHeader__cat {
    font-size: 11px;
}

.p-articleHeader__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--ws-text);
    margin-bottom: 12px;
}

.p-articleHeader__author {
    font-size: 14px;
    color: var(--ws-text-light);
    margin-bottom: 16px;
}

.p-articleHeader__thumb {
    border-radius: var(--ws-radius-md);
    overflow: hidden;
    margin-top: 16px;
}

.p-articleHeader__thumb img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

/* ==================== Article Body ==================== */
.p-articleBody {
    line-height: 1.9;
    font-size: 16px;
    color: var(--ws-text);
    word-break: break-word;
}

.p-articleBody h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 32px 0 16px;
    padding-left: 12px;
    border-left: 4px solid var(--ws-accent);
    color: var(--ws-primary);
}

.p-articleBody h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--ws-primary);
}

.p-articleBody p {
    margin-bottom: 16px;
}

.p-articleBody ul,
.p-articleBody ol {
    margin-bottom: 16px;
    padding-left: 24px;
    list-style: disc;
}

.p-articleBody ol {
    list-style: decimal;
}

.p-articleBody li {
    margin-bottom: 6px;
}

.p-articleBody img {
    max-width: 100%;
    border-radius: var(--ws-radius);
    margin: 16px 0;
}

.p-articleBody a {
    color: var(--ws-accent);
    text-decoration: underline;
}

.p-articleBody table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13px;
}

.p-articleBody th,
.p-articleBody td {
    border: 1px solid var(--ws-border);
    padding: 8px 12px;
    text-align: left;
}

.p-articleBody th {
    background: var(--ws-bg);
    font-weight: 700;
}

/* ==================== FAQ Section ==================== */
.p-faq {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--ws-border);
}

.p-faq__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--ws-primary);
}

.p-faq__item {
    margin-bottom: 16px;
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-md);
    overflow: hidden;
}

.p-faq__question {
    background: var(--ws-bg);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ws-primary);
}

.p-faq__question::before {
    content: 'Q. ';
    color: var(--ws-accent);
}

.p-faq__answer {
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.7;
}

.p-faq__answer::before {
    content: 'A. ';
    font-weight: 700;
    color: var(--ws-green);
}

/* ==================== Related Posts ==================== */
.p-relatedPosts {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--ws-border);
}

.p-relatedPosts .c-widget__title.-main {
    margin-bottom: 20px;
}

/* ==================== Responsive ==================== */
@media (max-width: 959px) {
    .l-detail-layout {
        flex-direction: column;
    }

    .l-sidebar {
        width: 100%;
    }
}

@media (max-width: 599px) {
    .p-articleHeader__title {
        font-size: 18px;
    }

    .l-detail-main {
        padding: 16px;
    }
}
