/**
 * Arvex Smart News Aggregator — Public Stylesheet
 *
 * Orbix-style news article page with hero image, modern card layout,
 * professional typography, and mobile-first responsive design.
 *
 * @package Arvex_Smart_News_Aggregator
 */

/* ─── CSS Variables ──────────────────────────────────────────────── */
:root {
    --asna-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --asna-p-primary: #6366f1;
    --asna-p-primary-dark: #4f46e5;
    --asna-p-primary-light: #818cf8;
    --asna-p-accent: #f59e0b;
    --asna-p-success: #10b981;
    --asna-p-bg: #f8fafc;
    --asna-p-card: #ffffff;
    --asna-p-text: #1e293b;
    --asna-p-text-muted: #64748b;
    --asna-p-text-light: #94a3b8;
    --asna-p-border: #e2e8f0;
    --asna-p-radius: 16px;
    --asna-p-radius-sm: 10px;
    --asna-p-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --asna-p-shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --asna-p-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --asna-p-bg: #0f172a;
        --asna-p-card: #1e293b;
        --asna-p-text: #f1f5f9;
        --asna-p-text-muted: #94a3b8;
        --asna-p-text-light: #64748b;
        --asna-p-border: #334155;
    }
}

/* ─── Article Container ──────────────────────────────────────────── */
.asna-article {
    font-family: var(--asna-font);
    color: var(--asna-p-text);
    background: var(--asna-p-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ─── Hero Section ───────────────────────────────────────────────── */
.asna-hero {
    position: relative;
    width: 100%;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    background-color: #1e293b;
    display: flex;
    align-items: flex-end;
}

.asna-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(15, 23, 42, 0.6) 40%,
        rgba(15, 23, 42, 0.3) 70%,
        rgba(15, 23, 42, 0.1) 100%
    );
    display: flex;
    align-items: flex-end;
}

.asna-hero-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
    position: relative;
    z-index: 2;
}

/* ─── Breadcrumb ─────────────────────────────────────────────────── */
.asna-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 13px;
}

.asna-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--asna-p-transition);
}

.asna-breadcrumb a:hover {
    color: #fff;
}

.asna-breadcrumb-sep {
    color: rgba(255, 255, 255, 0.4);
}

/* ─── Category Badge ─────────────────────────────────────────────── */
.asna-category-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--asna-p-primary);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

/* ─── Article Title ──────────────────────────────────────────────── */
.asna-article-title {
    color: #fff;
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 20px;
    letter-spacing: -0.5px;
}

/* ─── Meta Bar ───────────────────────────────────────────────────── */
.asna-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.asna-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.asna-meta-item svg {
    opacity: 0.7;
    flex-shrink: 0;
}

.asna-meta-source {
    font-weight: 600;
    color: var(--asna-p-primary-light);
}

/* ─── Content Wrapper ────────────────────────────────────────────── */
.asna-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.asna-content-main {
    min-width: 0;
}

/* ─── Summary Section ────────────────────────────────────────────── */
.asna-summary-section {
    margin-bottom: 32px;
}

.asna-summary-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--asna-p-text);
}

.asna-summary-content p {
    margin-bottom: 16px;
}

.asna-summary-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 28px 0 12px;
    color: var(--asna-p-text);
}

.asna-summary-content ul {
    padding-left: 0;
    list-style: none;
}

.asna-summary-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.asna-summary-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--asna-p-primary);
    border-radius: 50%;
}

/* ─── Info Cards (Highlights & Facts) ────────────────────────────── */
.asna-info-card {
    background: var(--asna-p-card);
    border-radius: var(--asna-p-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--asna-p-shadow);
    border: 1px solid var(--asna-p-border);
    transition: var(--asna-p-transition);
}

.asna-info-card:hover {
    box-shadow: var(--asna-p-shadow-lg);
    transform: translateY(-2px);
}

.asna-highlights-card {
    border-left: 4px solid var(--asna-p-primary);
}

.asna-facts-card {
    border-left: 4px solid var(--asna-p-accent);
}

.asna-info-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.asna-info-card-header svg {
    flex-shrink: 0;
}

.asna-highlights-card .asna-info-card-header svg {
    color: var(--asna-p-primary);
}

.asna-facts-card .asna-info-card-header svg {
    color: var(--asna-p-accent);
}

.asna-info-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--asna-p-text);
}

.asna-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.asna-info-list li {
    position: relative;
    padding: 10px 0 10px 28px;
    font-size: 15px;
    line-height: 1.6;
    border-bottom: 1px solid var(--asna-p-border);
    color: var(--asna-p-text);
}

.asna-info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.asna-info-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    font-weight: 700;
}

.asna-highlights-card .asna-info-list li::before {
    color: var(--asna-p-primary);
}

.asna-facts-card .asna-info-list li::before {
    color: var(--asna-p-accent);
}

/* ─── CTA Section ────────────────────────────────────────────────── */
.asna-cta-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 36px 0;
}

.asna-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--asna-p-radius-sm);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--asna-p-transition);
    cursor: pointer;
    border: none;
    font-family: var(--asna-font);
}

.asna-cta-primary {
    background: linear-gradient(135deg, var(--asna-p-primary), var(--asna-p-primary-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.asna-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    color: #fff;
}

.asna-cta-primary svg {
    transition: transform 0.3s ease;
}

.asna-cta-primary:hover svg {
    transform: translateX(4px);
}

.asna-cta-secondary {
    background: var(--asna-p-card);
    color: var(--asna-p-text);
    border: 2px solid var(--asna-p-border);
    box-shadow: var(--asna-p-shadow);
}

.asna-cta-secondary:hover {
    border-color: var(--asna-p-primary);
    color: var(--asna-p-primary);
    transform: translateY(-2px);
    box-shadow: var(--asna-p-shadow-lg);
}

/* ─── Source Attribution ─────────────────────────────────────────── */
.asna-source-attribution {
    background: var(--asna-p-card);
    border-radius: var(--asna-p-radius);
    padding: 24px;
    border: 1px solid var(--asna-p-border);
    margin-top: 32px;
}

.asna-attribution-content {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.asna-attribution-content svg {
    color: var(--asna-p-primary);
    flex-shrink: 0;
}

.asna-attribution-label {
    font-size: 12px;
    color: var(--asna-p-text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.asna-attribution-source {
    margin: 2px 0 0;
    font-size: 16px;
    color: var(--asna-p-text);
}

.asna-attribution-notice {
    font-size: 13px;
    color: var(--asna-p-text-light);
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--asna-p-border);
    font-style: italic;
}

/* ─── Sidebar ────────────────────────────────────────────────────── */
.asna-sidebar {
    position: sticky;
    top: 40px;
    align-self: start;
}

.asna-sidebar-card {
    background: var(--asna-p-card);
    border-radius: var(--asna-p-radius);
    padding: 24px;
    box-shadow: var(--asna-p-shadow);
    border: 1px solid var(--asna-p-border);
}

.asna-sidebar-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--asna-p-primary);
    color: var(--asna-p-text);
}

.asna-related-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--asna-p-border);
    text-decoration: none;
    transition: var(--asna-p-transition);
}

.asna-related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.asna-related-item:hover {
    transform: translateX(4px);
}

.asna-related-thumb {
    width: 64px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.asna-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asna-related-info h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--asna-p-text);
    margin: 0 0 4px;
}

.asna-related-item:hover h4 {
    color: var(--asna-p-primary);
}

.asna-related-date {
    font-size: 11px;
    color: var(--asna-p-text-light);
}

.asna-no-related {
    font-size: 14px;
    color: var(--asna-p-text-muted);
    text-align: center;
    padding: 16px 0;
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .asna-content-wrapper {
        grid-template-columns: 1fr;
        padding: 24px 16px;
        gap: 24px;
    }

    .asna-hero {
        min-height: 320px;
    }

    .asna-hero-content {
        padding: 24px 16px;
    }

    .asna-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    .asna-hero {
        min-height: 280px;
    }

    .asna-article-title {
        font-size: 22px;
    }

    .asna-meta-bar {
        gap: 12px;
    }

    .asna-meta-item {
        font-size: 12px;
    }

    .asna-summary-content {
        font-size: 15px;
    }

    .asna-cta-btn {
        padding: 14px 20px;
        font-size: 14px;
    }

    .asna-info-card {
        padding: 18px;
    }
}

/* ─── Animations ─────────────────────────────────────────────────── */
@keyframes asna-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.asna-summary-section,
.asna-info-card,
.asna-cta-section,
.asna-source-attribution {
    animation: asna-fade-in-up 0.5s ease both;
}

.asna-info-card:nth-child(2) {
    animation-delay: 0.1s;
}

.asna-cta-section {
    animation-delay: 0.2s;
}

.asna-source-attribution {
    animation-delay: 0.3s;
}
