/* Article page specific styles (scoped) */
.article-page .da-page-header {
    margin-top: 24px;
    margin-bottom: 16px;
    text-align: right;
}
.article-page .da-page-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}
.article-page .da-page-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 620px;
}

.article-page .da-articles-page {
    max-width: 960px;
    margin: 0 auto;
}

.article-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.article-page .da-articles-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.article-page .da-view-toggle {
    display: inline-flex;
    padding: 4px;
    gap: 6px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
}

.article-page .da-view-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-muted);
    border-radius: 10px;
    border: 1px solid transparent;
}

.article-page .da-view-toggle-btn.active {
    background: linear-gradient(135deg, rgba(91, 60, 245, 0.15), rgba(34, 211, 238, 0.18));
    border-color: rgba(91, 60, 245, 0.45);
    color: var(--text-main);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.55);
}

.article-page .da-articles-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    min-width: 280px;
}

.article-page .da-articles-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 13px;
    outline: none;
}

.article-page .da-articles-search button {
    border: none;
    background: linear-gradient(135deg, var(--primary), #22d3ee);
    color: #fff;
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
}

.article-page .da-articles-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 16px;
}

.article-page .da-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-muted);
    font-size: 13px;
    transition: all .15s ease;
}

.article-page .da-filter-pill.active {
    border-color: var(--accent);
    color: var(--text-main);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.6);
}

.article-page .da-filter-count {
    font-size: 12px;
    color: var(--text-muted);
}

.article-page .da-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

@media (max-width: 900px) {
    .article-page .da-articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .article-page .da-articles-grid { grid-template-columns: 1fr; }
}

.article-page .da-articles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-page .da-article-card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.article-page .da-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.7);
    border-color: rgba(234, 179, 8, 0.6);
}

.article-page .da-article-card--list {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.article-page .da-article-card-main {
    flex: 1;
}

.article-page .da-article-card-toprow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.article-page .da-article-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid transparent;
    background: rgba(15, 23, 42, 0.9);
}

.article-page .da-article-badge-blue { border-color: rgba(59, 130, 246, 0.4); background: rgba(37, 99, 235, 0.25); }
.article-page .da-article-badge-yellow { border-color: rgba(250, 204, 21, 0.5); background: rgba(250, 204, 21, 0.15); }
.article-page .da-article-badge-pink { border-color: rgba(244, 114, 182, 0.5); background: rgba(244, 114, 182, 0.18); }

.article-page .da-article-reading {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.article-page .da-article-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.article-page .da-article-card-excerpt {
    font-size: 13px;
    color: var(--text-muted);
}

.article-page .da-article-card-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.article-page .da-article-card-footer {
    margin-top: 4px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 12px;
}

.article-page .da-article-card-cta a,
.article-page .da-article-card-footer a {
    color: var(--accent);
    font-size: 13px;
    white-space: nowrap;
}

.article-page .da-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.article-page .da-page-item {
    list-style: none;
    display: flex;
}

.article-page .da-page-link {
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: rgba(15, 23, 42, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-main);
    padding: 0 14px;
    font-weight: 700;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
    text-decoration: none;
}

.article-page .da-page-item.active .da-page-link {
    background: linear-gradient(135deg, var(--primary), #22d3ee);
    border-color: transparent;
    color: #fff;
}

.article-page .da-page-item:not(.active):not(.disabled) .da-page-link:hover {
    border-color: var(--accent);
    color: var(--text-main);
}

.article-page .da-page-btn {
    padding: 8px 14px;
}

.article-page .da-page-item.disabled .da-page-link,
.article-page .da-page-btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.article-page .da-page-info {
    font-size: 14px;
    color: var(--text-muted);
}

.article-page .da-pagination-wrapper {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .article-page .da-article-card--list {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-page .da-articles-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-page .da-articles-search {
        width: 100%;
    }
}
