/* ═══════════════════════════════════════════
   Blog System CSS — Ink Forge
   Inherits LP dark theme, blood-red accents
   ═══════════════════════════════════════════ */

/* ── Buttons ────────────────────────────── */
.blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.blog-btn--primary {
    background: #7b1113;
    color: #fff;
    box-shadow: 0 0 15px rgba(123, 17, 19, 0.3);
}

.blog-btn--primary:hover {
    background: #dc2626;
    box-shadow: 0 0 25px rgba(220, 38, 38, 0.4);
    transform: translateY(-1px);
}

.blog-btn--ghost {
    background: transparent;
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-btn--ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

/* ── Cards ──────────────────────────────── */
.blog-card {
    background: #1E1E1E;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ── Form Elements ──────────────────────── */
.blog-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.blog-input {
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    color: #fff;
    padding: 0.625rem 0.875rem;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.blog-input:focus {
    border-color: #dc2626;
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.blog-input::placeholder {
    color: #4b5563;
}

select.blog-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* ── Table ──────────────────────────────── */
.blog-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-table {
    width: 100%;
    border-collapse: collapse;
}

.blog-table thead {
    background: #1a1a1a;
}

.blog-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.blog-table tbody tr {
    transition: background 0.2s ease;
}

.blog-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ── Badges ─────────────────────────────── */
.blog-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.blog-badge--published {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.blog-badge--draft {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ── Action Buttons ─────────────────────── */
.blog-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #9ca3af;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
}

.blog-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* ── Alerts ─────────────────────────────── */
.blog-alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

.blog-alert--success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.blog-alert--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* ── Empty State ────────────────────────── */
.blog-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    border: 2px dashed rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

/* ── Progress ───────────────────────────── */
.blog-progress {
    height: 3px;
    background: #2a2a2a;
    border-radius: 3px;
    overflow: hidden;
}

.blog-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #7b1113, #dc2626);
    border-radius: 3px;
    width: 0%;
    transition: width 1s ease;
}

.blog-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #2a2a2a;
    border-top: 2px solid #dc2626;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #4b5563;
    transition: color 0.3s ease;
}

.progress-step.active {
    color: #d1d5db;
}

.progress-step.done {
    color: #34d399;
}

.progress-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4b5563;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.progress-step.active .progress-dot {
    background: #dc2626;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.5);
}

.progress-step.done .progress-dot {
    background: #34d399;
}

/* ── Post Cards (Public Blog) ───────────── */
.blog-post-card {
    display: block;
    background: #1E1E1E;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(123, 17, 19, 0.15);
}

.blog-post-card__image {
    overflow: hidden;
    background: #151515;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Pagination ─────────────────────────── */
.blog-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #9ca3af;
    background: #1E1E1E;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
    text-decoration: none;
}

.blog-pagination-btn:hover {
    background: #2a2a2a;
    color: #fff;
}

.blog-pagination-btn--active {
    background: #7b1113;
    color: #fff;
    border-color: #7b1113;
}

/* ═══════════════════════════════════════════
   Article Styles (Generated SEO Content)
   Applied to .blog-article and .blog-article-preview
   ═══════════════════════════════════════════ */

.blog-article,
.blog-article-preview {
    color: #d1d5db;
    line-height: 1.8;
    font-size: 1rem;
}

.blog-article h1,
.blog-article-preview h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.blog-article h2,
.blog-article-preview h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
}

.blog-article h3,
.blog-article-preview h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.blog-article h4,
.blog-article-preview h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #d1d5db;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.blog-article p,
.blog-article-preview p {
    margin-bottom: 1rem;
}

.blog-article strong,
.blog-article-preview strong {
    color: #fff;
    font-weight: 600;
}

.blog-article a,
.blog-article-preview a {
    color: #dc2626;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.blog-article a:hover,
.blog-article-preview a:hover {
    color: #ff8080;
}

.blog-article ul,
.blog-article-preview ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.blog-article ol,
.blog-article-preview ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.blog-article li,
.blog-article-preview li {
    margin-bottom: 0.375rem;
}

.blog-article blockquote,
.blog-article-preview blockquote {
    border-left: 3px solid #7b1113;
    padding: 0.75rem 1rem;
    margin: 1.25rem 0;
    background: rgba(123, 17, 19, 0.08);
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #9ca3af;
}

.blog-article table,
.blog-article-preview table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.875rem;
}

.blog-article th,
.blog-article-preview th {
    background: #1a1a1a;
    padding: 0.625rem 0.875rem;
    text-align: left;
    font-weight: 600;
    color: #e5e7eb;
    border-bottom: 2px solid rgba(220, 38, 38, 0.3);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.blog-article td,
.blog-article-preview td {
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #d1d5db;
}

.blog-article code,
.blog-article-preview code {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.85em;
    color: #fbbf24;
}

.blog-article pre,
.blog-article-preview pre {
    background: #0a0a0a;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.25rem 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-article pre code,
.blog-article-preview pre code {
    background: none;
    padding: 0;
    color: #d1d5db;
}

.blog-article img,
.blog-article-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.blog-article picture,
.blog-article-preview picture {
    display: block;
    margin: 1.25rem 0;
}

.blog-article address,
.blog-article-preview address {
    font-style: normal;
    color: #9ca3af;
    font-size: 0.875rem;
}

.blog-article time,
.blog-article-preview time {
    color: #6b7280;
    font-size: 0.875rem;
}

.blog-article section,
.blog-article-preview section {
    margin-bottom: 1.5rem;
}

.blog-article aside,
.blog-article-preview aside {
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    font-size: 0.9rem;
}

/* FAQ section styling */
.blog-article details,
.blog-article-preview details {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.blog-article summary,
.blog-article-preview summary {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #e5e7eb;
    transition: background 0.2s ease;
}

.blog-article summary:hover,
.blog-article-preview summary:hover {
    background: rgba(255, 255, 255, 0.03);
}

.blog-article details[open]>summary,
.blog-article-preview details[open]>summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-article details>*:not(summary),
.blog-article-preview details>*:not(summary) {
    padding: 0.75rem 1rem;
}