/**
 * Article New Styles
 * Replaces article.css
 */

/* Post Content Typography */
.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--alufacade-dark);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2 {
    font-family: var(--alufacade-font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--alufacade-dark);
}

.post-content h3 {
    font-family: var(--alufacade-font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--alufacade-dark);
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
}

.post-content ol li {
    list-style-type: decimal;
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--alufacade-primary);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: rgba(15, 82, 186, 0.04);
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.post-content img,
.post-content figure {
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    border-radius: 8px;
    display: block;
}

.post-content figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.post-content a {
    color: var(--alufacade-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.post-content a:hover {
    color: var(--alufacade-secondary);
}

/* Sidebar & Widgets */
.sidebar-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-family: var(--alufacade-font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--alufacade-light);
    color: var(--alufacade-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Table of Contents */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1rem;
}

.toc-list li::before {
    content: "•";
    color: var(--alufacade-primary);
    position: absolute;
    left: 0;
    top: 0;
}

.toc-list a {
    text-decoration: none;
    color: #475569;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.toc-list a:hover {
    color: var(--alufacade-primary);
}

/* Related Posts */
.related-post-card {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.related-post-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-post-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.related-post-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    line-height: 1.4;
}

.related-post-info h4 a {
    color: var(--alufacade-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.related-post-info h4 a:hover {
    color: var(--alufacade-primary);
}

.related-post-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Alignment utilities */
.alignwide {
    max-width: 1000px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: 100%;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}