/**
 * Path: public_html/assets/css/article.css
 */

.article-page {
    width: min(900px, calc(100% - 32px));
    margin: 54px auto 0;
}

.article-header {
    text-align: center;
}

.article-category {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--burgundy);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.article-header h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.03;
    color: var(--ink);
}

.article-excerpt {
    max-width: 760px;
    margin: 24px auto 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.article-meta {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.article-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(250, 247, 239, 0.78);
    border: 1px solid var(--border);
    color: var(--burgundy);
    font-size: 13px;
    font-weight: 800;
}

.article-featured-image {
    margin: 38px 0 0;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.article-featured-image img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.article-content {
    margin-top: 44px;
    padding: 38px;
    border-radius: 30px;
    background: rgba(250, 247, 239, 0.76);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 18px;
    line-height: 1.9;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    font-family: var(--font-heading);
    color: var(--ink);
    line-height: 1.18;
}

.article-content h2 {
    margin-top: 36px;
    font-size: 38px;
}

.article-content h3 {
    margin-top: 30px;
    font-size: 29px;
}

.article-content p {
    margin: 0 0 22px;
}

.article-content blockquote {
    margin: 30px 0;
    padding: 22px 26px;
    border-left: 4px solid var(--gold);
    border-radius: 18px;
    background: rgba(200, 155, 60, 0.12);
    color: var(--burgundy);
    font-weight: 600;
}

.article-content a {
    color: var(--burgundy);
    font-weight: 800;
    text-decoration: underline;
}

.article-tags {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.article-tags span:first-child {
    color: var(--muted);
    font-weight: 800;
}

.article-tag {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(90, 30, 43, 0.08);
    color: var(--burgundy);
    font-size: 13px;
    font-weight: 800;
}

.article-not-found {
    text-align: center;
}

.article-not-found h1 {
    font-family: var(--font-heading);
    font-size: 52px;
}

.comments-section {
    width: min(900px, calc(100% - 32px));
    margin: 50px auto 0;
}

.comments-header h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 42px;
}

.comments-header p {
    margin-top: 10px;
    color: var(--muted);
}

.comment-success {
    margin-top: 24px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(30,120,60,.12);
    border: 1px solid rgba(30,120,60,.2);
    color: #1e783c;
    font-weight: 700;
}

.comment-form {
    margin-top: 24px;
    padding: 30px;
    border-radius: 28px;
    background: rgba(250,247,239,.78);
    border: 1px solid var(--border);
}

.comment-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 18px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(16,24,32,.12);
    font-family: inherit;
}

.comment-form button {
    margin-top: 18px;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: var(--gold);
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
}

.honeypot-field {
    position: absolute !important;
    left: -9999px !important;
}

.comments-list {
    margin-top: 28px;
    display: grid;
    gap: 18px;
}

.comment-card {
    padding: 24px;
    border-radius: 24px;
    background: rgba(250,247,239,.78);
    border: 1px solid var(--border);
}

.comment-author {
    font-weight: 800;
    color: var(--ink);
}

.comment-date {
    margin-top: 4px;
    font-size: 13px;
    color: var(--muted);
}

.comment-content {
    margin-top: 14px;
    line-height: 1.8;
}

.comments-empty {
    padding: 30px;
    text-align: center;
    border-radius: 24px;
    background: rgba(250,247,239,.78);
    border: 1px solid var(--border);
}

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

@media (max-width: 640px) {
    .article-content {
        padding: 24px;
        font-size: 16px;
    }

    .article-content h2 {
        font-size: 31px;
    }
}