/* ===========================================
   NetDevOps Micro-Tools - Article Styles
   Used on all blog article pages
   =========================================== */

body {
    line-height: 1.7;
    padding-top: 76px;
}

.container {
    max-width: 720px;
    padding: 3rem 2rem;
}

/* Breadcrumb */
.breadcrumb {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Article Header */
h1 {
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.meta {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.meta .author {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Featured Image */
img.featured-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 2rem;
    border-radius: 12px;
}

/* Article Content */
.content h2 {
    font-family: 'IBM Plex Sans', sans-serif;
    margin: 2rem 0 1rem;
    color: var(--primary);
    font-size: 1.4rem;
}

.content p {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
}

.content ul, .content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.content li {
    margin-bottom: 0.6rem;
}

.content strong {
    color: var(--text-primary);
}

/* Highlight Box (blue accent) */
.highlight-box {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    transition: background-color 0.3s ease;
}

.highlight-box p {
    margin: 0;
    font-style: italic;
}

/* Quote Box (green accent) */
.quote-box {
    background: var(--bg-secondary);
    border-left: 4px solid var(--success);
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    transition: background-color 0.3s ease;
}

/* Danger Box (red) */
.danger-box {
    background: #fef2f2;
    border-left: 4px solid var(--danger);
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

[data-theme="dark"] .danger-box {
    background: rgba(220, 38, 38, 0.1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .danger-box {
        background: rgba(220, 38, 38, 0.1);
    }
}

/* Success Box (green) */
.success-box {
    background: #f0fdf4;
    border-left: 4px solid var(--success);
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

[data-theme="dark"] .success-box {
    background: rgba(5, 150, 105, 0.1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .success-box {
        background: rgba(5, 150, 105, 0.1);
    }
}

/* Step Box (green border) */
.step-box {
    background: #f0fdf4;
    border: 1px solid #86efac;
    padding: 1.2rem 1.5rem;
    margin: 1rem 0;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .step-box {
    background: rgba(5, 150, 105, 0.1);
    border-color: rgba(134, 239, 172, 0.3);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .step-box {
        background: rgba(5, 150, 105, 0.1);
        border-color: rgba(134, 239, 172, 0.3);
    }
}

.step-box h4 {
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--success);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* CTA Box */
.cta {
    background: var(--bg-footer);
    color: white;
    padding: 2rem;
    text-align: center;
    margin: 2.5rem 0;
    border-radius: 12px;
}

.cta h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    margin-bottom: 0.5rem;
}

.cta p {
    opacity: 0.9;
    margin-bottom: 1rem;
    color: white;
}

.cta a {
    color: var(--accent);
    font-weight: 600;
}

/* Article Navigation */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.article-nav a {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 48%;
}

.article-nav a:hover {
    background: var(--border-color);
}

.article-nav .nav-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-nav .nav-title {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
    line-height: 1.4;
}

.article-nav .prev {
    text-align: left;
}

.article-nav .next {
    text-align: right;
    margin-left: auto;
}

@media (max-width: 600px) {
    .article-nav { flex-direction: column; }
    .article-nav a { max-width: 100%; }
    .article-nav .next { text-align: left; }
}
