/* SafeSound Blog & Article Styling */
.blog-page {
    background-color: var(--bg-dark, #0A0B0E);
    color: var(--text-primary, #FFFFFF);
    min-height: 100vh;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-dim, #718096);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.breadcrumbs a {
    color: var(--text-secondary, #A1A7B5);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumbs a:hover {
    color: var(--accent, #00E676);
}
.breadcrumbs__sep {
    color: var(--border, rgba(255, 255, 255, 0.15));
}
.breadcrumbs__current {
    color: var(--text-dim, #718096);
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Filter Chips */
.blog-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 32px 0 40px;
}
.filter-btn {
    background: var(--bg-card, #12151B);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    color: var(--text-secondary, #A1A7B5);
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--accent-bg, rgba(0, 230, 118, 0.12));
    border-color: var(--accent, #00E676);
    color: var(--accent, #00E676);
}

/* Blog Cards Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin-bottom: 80px;
}
.article-card {
    background: var(--bg-card, #12151B);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.07));
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent, #00E676), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent, rgba(0, 230, 118, 0.35));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 230, 118, 0.1);
}
.article-card:hover::before {
    opacity: 1;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
}
.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 230, 118, 0.1);
    color: var(--accent, #00E676);
    padding: 4px 12px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 12px;
}
.card-time {
    color: var(--text-dim, #718096);
}
.card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px;
    color: var(--text-primary, #FFFFFF);
    transition: color 0.2s ease;
}
.article-card:hover .card-title {
    color: var(--accent, #00E676);
}
.card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary, #A1A7B5);
    margin-bottom: 20px;
    flex-grow: 1;
}
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border, rgba(255, 255, 255, 0.05));
    font-size: 13px;
    color: var(--text-dim, #718096);
}
.card-read-more {
    color: var(--accent, #00E676);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Article Page Layout */
.article-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}
.article-header {
    margin-bottom: 40px;
}
.article-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: var(--accent, #00E676);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}
.article-title {
    font-size: 38px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    color: #FFFFFF;
}
@media (max-width: 768px) {
    .article-title { font-size: 28px; }
}
.article-info-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-secondary, #A1A7B5);
    font-size: 14px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    flex-wrap: wrap;
}
.article-info-bar span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Article Body Typography */
.article-body {
    font-size: 17px;
    line-height: 1.75;
    color: #D1D5DB;
}
.article-body h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.35;
    color: #FFFFFF;
    margin: 48px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.article-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #F3F4F6;
    margin: 32px 0 14px;
}
.article-body p {
    margin-bottom: 20px;
}
.article-body strong {
    color: #FFFFFF;
    font-weight: 600;
}
.article-body em {
    color: #E2E8F0;
}
.article-body code {
    background: #1A1F2B;
    color: #00E676;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.article-body a {
    color: var(--accent, #00E676);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}
.article-body a:hover {
    opacity: 0.85;
}

/* Callouts / Quotes */
.article-quote {
    background: #121620;
    border-left: 4px solid var(--accent, #00E676);
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 28px 0;
    color: #E2E8F0;
    font-size: 16px;
    line-height: 1.65;
}
.article-quote strong {
    color: var(--accent, #00E676);
}

/* Lists */
.article-list {
    margin: 0 0 24px 20px;
    padding: 0;
}
.article-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}
.article-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 40px 0;
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    margin: 32px 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #11141B;
}
.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    text-align: left;
}
.article-table th {
    background: #181D26;
    color: #FFFFFF;
    font-weight: 600;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.article-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #CBD5E1;
}
.article-table tr:last-child td {
    border-bottom: none;
}

/* In-article CTA Card */
.article-cta {
    background: linear-gradient(135deg, #131A24 0%, #0E141D 100%);
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: 18px;
    padding: 36px;
    margin: 48px 0;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 230, 118, 0.12);
}
.article-cta__badge {
    display: inline-block;
    background: rgba(0, 230, 118, 0.15);
    color: #00E676;
    padding: 4px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}
.article-cta__title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #FFFFFF;
}
.article-cta__desc {
    font-size: 15px;
    color: #94A3B8;
    max-width: 540px;
    margin: 0 auto 24px;
    line-height: 1.6;
}
a.article-cta__btn,
.article-cta .article-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #00E676;
    color: #0A0B0E !important;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none !important;
    font-size: 16px;
    box-shadow: 0 4px 18px rgba(0, 230, 118, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
a.article-cta__btn:hover,
.article-cta .article-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.6);
    color: #0A0B0E !important;
}
.article-cta__note {
    font-size: 12px;
    color: #64748B;
    margin-top: 14px;
}

/* Related articles */
.related-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.related-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #FFFFFF;
}

/* Reading Progress Indicator */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #00E676;
    z-index: 9999;
    transition: width 0.1s;
}
