/* =========================================
   BLOG SHARED STYLES - MP3aud.io
   (style.css is loaded first and provides
    font, body, header, and sidebar rules)
   ========================================= */

:root {
    --brand: #FF5500;
    --brand-dark: #cc4400;
    --brand-light: #fff3ee;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --bg: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --radius: 16px;
    --shadow: 0 4px 24px rgba(0,0,0,0.07);
    --shadow-hover: 0 8px 40px rgba(0,0,0,0.12);
}

/* Scope link color override to blog content only — NOT the sidebar */
.main-content a { color: var(--brand); }
.main-content a:hover { text-decoration: underline; }


/* =========================================
   BLOG INDEX - POST LIST
   (Matches shop page card aesthetic)
   ========================================= */
.blog-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-post-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    position: relative;
    text-decoration: none;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.blog-post-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.blog-post-cat {
    background: linear-gradient(135deg, #2980b9 0%, #176394 100%);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 6px;
}

.blog-post-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

.blog-post-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
    text-align: left;
}

.blog-post-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-post-title a:hover {
    color: #2980b9;
}

.blog-post-excerpt {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.55;
    margin: 0;
    text-align: left;
}

.blog-post-read-more,
.main-content a.blog-post-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 8px;
    text-decoration: none;
    align-self: flex-start;
    margin-top: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.15);
}

.blog-post-read-more:hover,
.main-content a.blog-post-read-more:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.25);
    text-decoration: none;
}

/* Fade-in animation (matches shop page) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.blog-post-card.fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}


/* =========================================
   ARTICLE PAGE
   ========================================= */
/* =========================================
   ARTICLE PAGE & CARDS
   ========================================= */
.article-card {
    max-width: 860px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.comparison-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.88rem;
}
.comparison-table th {
    background: var(--text-primary);
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}
.comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
.comparison-table tr:nth-child(even) td { background: var(--bg); }
.comparison-table tr:hover td { background: var(--brand-light); }
.check { color: #22c55e; font-weight: 700; }
.cross { color: #ef4444; font-weight: 700; }

.article-breadcrumb {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    display: flex;
    gap: 6px;
    align-items: center;
}
.article-breadcrumb a { color: var(--text-muted); }
.article-breadcrumb a:hover { color: var(--brand); text-decoration: none; }
.article-header { margin-bottom: 40px; }
.article-cats {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.article-cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--brand);
    background: var(--brand-light);
    padding: 3px 10px;
    border-radius: 20px;
}
.article-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px;
    color: var(--text-primary);
}
.article-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0; }
.article-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    background: var(--brand-light);
    border-left: 4px solid var(--brand);
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 40px;
    line-height: 1.7;
}
.article-body h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 44px 0 12px;
    color: var(--text-primary);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}
.article-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 28px 0 8px;
    color: var(--text-primary);
}
.article-body p { color: var(--text-secondary); margin: 0 0 20px; }
.article-body ul, .article-body ol {
    color: var(--text-secondary);
    margin: 0 0 20px;
    padding-left: 24px;
}
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text-primary); }
.article-body img,
.article-body video,
.article-body iframe {
    max-width: 100%;
    height: auto;
}
.article-body pre,
.article-body code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
.article-body p,
.article-body li,
.article-intro,
.step-box,
.tip-box,
.warning-box {
    word-break: break-word;
    overflow-wrap: break-word;
}

.step-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.step-number {
    background: var(--brand);
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.step-content { flex: 1; }
.step-content strong { display: block; margin-bottom: 4px; color: var(--text-primary); font-size: 1rem; }
.step-content p { margin: 0; font-size: 0.95rem; color: var(--text-secondary); }
.tip-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #22c55e;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 0.95rem;
    color: #166534;
}
.tip-box strong { color: #15803d; }
.warning-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 0.95rem;
    color: #92400e;
}

.article-cta {
    background: linear-gradient(135deg, #FF5500, #ff8c42);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    margin-top: 56px;
}
.article-cta h2 { color: white; font-size: 1.5rem; font-weight: 800; margin: 0 0 10px; }
.article-cta p { color: rgba(255,255,255,0.88); margin: 0 0 24px; }
.article-cta-btn {
    display: inline-block;
    background: white;
    color: var(--brand);
    font-weight: 700;
    font-size: 1rem;
    padding: 13px 28px;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.article-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.2); text-decoration: none; }
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.article-nav a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}
.article-nav a:hover { color: var(--brand); text-decoration: none; }

/* =========================================
   RESPONSIVE (Mobile & Tablet)
   ========================================= */
@media (max-width: 768px) {
    .blog-nav { gap: 14px; }
    .blog-nav a { font-size: 0.8rem; }
    .blog-post-card { padding: 18px 20px; }

    .article-card {
        padding: 20px 16px;
        border-radius: 12px;
    }
    .article-header { margin-bottom: 24px; }
    .article-header h1 {
        font-size: 1.45rem;
        line-height: 1.25;
    }
    .article-intro {
        font-size: 0.95rem;
        padding: 14px 16px;
        margin-bottom: 24px;
    }
    .article-body h2 {
        font-size: 1.2rem;
        margin: 32px 0 10px;
    }
    .article-body h3 {
        font-size: 1rem;
        margin: 20px 0 6px;
    }
    .step-box {
        padding: 14px 16px;
        gap: 12px;
    }
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
    .tip-box,
    .warning-box {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
    .article-cta {
        padding: 28px 18px;
        margin-top: 36px;
        border-radius: 12px;
    }
    .article-cta h2 { font-size: 1.3rem; }
    .article-cta-btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 12px 20px;
    }
    .article-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 32px;
        padding-top: 24px;
    }
    .article-nav a {
        justify-content: center;
        padding: 10px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
    }
}
