/* ============================================================
   PriceONN Deep Look — Styles
   Adapted from blog-single.php layout for visual consistency.
   Deep Look additions: TOC sidebar, source attribution, format badge.
   ============================================================ */

/* ============================================================
   DEEP LOOK THEME — Blue accent override for header/footer/global
   Overrides main.css green (#00d4aa) with Deep Look blue (#4A9EFF)
   ============================================================ */
body.deep-look-theme {
    --accent-teal: #4A9EFF;
    --accent-teal-dark: #3578D9;
    --border-glow: rgba(74,158,255,0.3);
    --gradient-main: linear-gradient(135deg, #4A9EFF 0%, #3b82f6 50%, #8b5cf6 100%);
    --gradient-teal: linear-gradient(135deg, #4A9EFF 0%, #3578D9 100%);
}
body.deep-look-theme .logo-text {
    background: linear-gradient(135deg, #fff 0%, #4A9EFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
body.deep-look-theme .cookie-content a { color: #4A9EFF; }
body.deep-look-theme .cookie-btn-accept { background: linear-gradient(135deg, #4A9EFF 0%, #3578D9 100%); }
body.deep-look-theme .cookie-btn-accept:hover { box-shadow: 0 4px 12px rgba(74,158,255,0.3); }
body.deep-look-theme .notification-modal-action { background: linear-gradient(135deg, #4A9EFF 0%, #3578D9 100%); }
body.deep-look-theme .login-btn { background: linear-gradient(135deg, #4A9EFF 0%, #3578D9 100%) !important; }

/* ============================================================
   HERO — Animated gradient blob background
   ============================================================ */
.article-hero {
    position: relative;
    background: #0c1220;
    border: 1px solid rgba(74,158,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
}
.article-hero-inner {
    position: relative;
    padding: 24px;
    z-index: 1;
}

/* Blob layer 1 — primary orbs with blur */
.article-hero-inner::before {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    background:
        radial-gradient(circle 280px at 30% 40%, rgba(74,158,255,0.45) 0%, transparent 70%),
        radial-gradient(circle 220px at 75% 30%, rgba(53,120,217,0.35) 0%, transparent 65%),
        radial-gradient(circle 200px at 55% 85%, rgba(59,130,246,0.30) 0%, transparent 60%);
    filter: blur(40px);
    animation: dl-blob-drift 18s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
    opacity: 1;
    mask-image: none;
    -webkit-mask-image: none;
}
/* Blob layer 2 — counter-drift accent */
.article-hero::after {
    content: '';
    position: absolute;
    width: 130%;
    height: 130%;
    top: -15%;
    left: -15%;
    background:
        radial-gradient(circle 250px at 70% 55%, rgba(74,158,255,0.30) 0%, transparent 65%),
        radial-gradient(circle 200px at 20% 65%, rgba(109,181,255,0.22) 0%, transparent 60%);
    filter: blur(50px);
    animation: dl-blob-counter 24s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}
/* Top ambient glow */
.article-hero-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(74,158,255,0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

@keyframes dl-blob-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(3%, -4%) scale(1.06); }
    50% { transform: translate(-3%, 3%) scale(0.95); }
    75% { transform: translate(2%, 1%) scale(1.03); }
}
@keyframes dl-blob-counter {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-4%, 3%) scale(1.05); }
    66% { transform: translate(3%, -4%) scale(0.95); }
}

[dir="rtl"] .article-hero-inner::before {
    /* blob animation is symmetric, no RTL change needed */
}
.article-hero-text {
    min-width: 0;
}

/* Breadcrumb */
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
}
.article-breadcrumb a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.article-breadcrumb a:hover { color: #4A9EFF; }
.article-breadcrumb svg { width: 12px; height: 12px; }
.article-breadcrumb .separator { color: rgba(255,255,255,0.2); }

/* Category / Format Badge */
.article-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4A9EFF;
    background: linear-gradient(135deg, rgba(74,158,255,0.2), rgba(74,158,255,0.1));
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid rgba(74,158,255,0.2);
}
.article-category:hover {
    background: linear-gradient(135deg, rgba(74,158,255,0.3), rgba(74,158,255,0.15));
    transform: translateY(-1px);
}
.article-category svg { width: 14px; height: 14px; }

/* Title */
.article-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    line-height: 1.28;
    margin: 0 0 16px 0;
    letter-spacing: -0.03em;
}

/* Excerpt / Subtitle */
.article-excerpt,
.article-summary {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin: 0 0 24px 0;
    max-width: 700px;
}

/* Meta Info */
.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.meta-item svg { width: 16px; height: 16px; opacity: 0.6; }
.meta-item strong { color: rgba(255,255,255,0.8); font-weight: 600; }

/* Author Mini Card in Meta */
.meta-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.08);
}
.meta-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A9EFF 0%, #3578D9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    flex-shrink: 0;
}
.meta-author-info { display: flex; flex-direction: column; }
.meta-author-name { font-size: 13px; font-weight: 600; color: #fff; }
.meta-author-role { font-size: 11px; color: rgba(255,255,255,0.5); }

/* ============================================================
   ARTICLE CONTENT — Same design system as blog
   ============================================================ */
.article-content {
    --ab-bg: #0d1117;
    --ab-bg-alt: #131a21;
    --ab-surface: #131a21;
    --ab-surface-hover: #1a222c;
    --ab-ink: #e6edf3;
    --ab-ink-light: #c5cdd8;
    --ab-ink-muted: #636e7b;
    --ab-accent: #4A9EFF;
    --ab-accent-dark: #3578D9;
    --ab-accent-light: #6DB5FF;
    --ab-accent-glow: rgba(74,158,255,0.06);
    --ab-border: rgba(255,255,255,0.1);
    --ab-border-light: rgba(255,255,255,0.06);
    --ab-success: #22c55e;
    --ab-success-bg: rgba(34,197,94,0.1);
    --ab-warning: #f59e0b;
    --ab-warning-bg: rgba(245,158,11,0.1);
    --ab-info: #3b82f6;
    --ab-info-bg: rgba(59,130,246,0.08);
    --ab-quote-bg: rgba(74,158,255,0.04);
    --ab-table-head-bg: rgba(74,158,255,0.06);
    --ab-shadow-sm: 0 2px 12px rgba(0,0,0,0.25);
    --ab-shadow-md: 0 8px 24px rgba(0,0,0,0.35);

    background: var(--ab-surface);
    border: 1px solid var(--ab-border);
    border-radius: 10px;
    padding: 36px 36px 40px;
    margin-bottom: 14px;
    overflow-x: hidden;
}

.article-body {
    color: var(--ab-ink-light);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.78;
    -webkit-font-smoothing: antialiased;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow-x: hidden;
    letter-spacing: 0.01em;
}

/* Headings */
.article-body h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--ab-ink);
    margin: 40px 0 16px;
    padding: 16px 0 12px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.article-body h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }

.article-body h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ab-ink);
    margin: 28px 0 10px;
    padding-left: 14px;
    line-height: 1.35;
    letter-spacing: -0.01em;
    border-left: 3px solid var(--ab-accent);
}
.article-body h4 {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ab-accent-light);
    margin: 24px 0 8px;
}

/* Paragraphs */
.article-body p {
    margin-bottom: 18px;
    color: var(--ab-ink-light);
    font-size: 16px;
    line-height: 1.78;
}
.article-body p:last-child { margin-bottom: 0; }

/* Drop cap */
.article-body > p:first-child:not(:has(> a:first-child))::first-letter {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 3.4em;
    float: left;
    line-height: 0.82;
    margin-right: 10px;
    margin-top: 4px;
    color: var(--ab-accent);
    font-weight: 800;
}

.article-body strong {
    color: var(--ab-ink);
    font-weight: 600;
}

/* Links */
.article-body a {
    color: var(--ab-accent-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(74,158,255,0.25);
    transition: all 0.2s;
}
.article-body a:hover {
    color: #fff;
    border-bottom-color: var(--ab-accent);
}

/* Blockquote */
.article-body blockquote {
    margin: 24px 0;
    padding: 18px 22px;
    background: var(--ab-quote-bg);
    border-left: 4px solid var(--ab-accent);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--ab-ink);
    font-size: 15px;
    line-height: 1.7;
}
.article-body blockquote p { color: var(--ab-ink); margin-bottom: 8px; }
.article-body blockquote p:last-child { margin-bottom: 0; }

/* Lists */
.article-body ul, .article-body ol {
    margin: 16px 0 20px;
    padding-left: 28px;
}
.article-body ul { list-style: none; }
.article-body ul li { position: relative; padding-left: 6px; }
.article-body ul li::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ab-accent);
    opacity: 0.7;
}
.article-body li {
    margin-bottom: 8px;
    color: var(--ab-ink-light);
    line-height: 1.7;
}
.article-body ol li::marker { color: var(--ab-accent); font-weight: 600; }

/* Tables — Card Layout */
.article-body .table-wrap {
    margin: 28px 0;
}
.article-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.7;
}
/* Hide thead — column labels shown inline via data-label */
.article-body thead {
    display: none;
}
.article-body tbody tr {
    display: block;
    position: relative;
    background: rgba(74,158,255,0.03);
    border: 1px solid var(--ab-border-light);
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 16px;
}
.article-body tbody tr:last-child {
    margin-bottom: 0;
}
.article-body tbody tr:hover {
    border-color: rgba(74,158,255,0.25);
    background: rgba(74,158,255,0.05);
}
.article-body td {
    display: block;
    padding: 0;
    border: none;
    color: var(--ab-ink-light);
}
/* First cell — scenario name as card header */
.article-body td:first-child {
    font-size: 16px;
    font-weight: 700;
    color: var(--ab-ink);
    margin-bottom: 14px;
    line-height: 1.4;
    padding-right: 70px;
}
/* Second cell — probability badge, top-right */
.article-body td:nth-child(2) {
    position: absolute;
    top: 20px;
    right: 22px;
    background: rgba(74,158,255,0.12);
    color: var(--ab-accent);
    font-weight: 700;
    font-size: 13px;
    padding: 4px 14px;
    border-radius: 6px;
}
/* Remaining cells — labeled content blocks */
.article-body td:nth-child(n+3) {
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.article-body td:nth-child(n+3)::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ab-accent);
    margin-bottom: 6px;
    opacity: 0.8;
}

/* HR — gradient divider */
.article-body hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(74,158,255,0.25) 30%, rgba(74,158,255,0.25) 70%, transparent 100%);
    margin: 32px 0;
}

/* Code */
.article-body code {
    background: rgba(74,158,255,0.08);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    border: 1px solid rgba(74,158,255,0.12);
}
.article-body pre {
    background: rgba(0,0,0,0.35);
    padding: 18px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--ab-border-light);
}

/* ============================================================
   DEEP LOOK SPECIFIC — TOC Sidebar
   ============================================================ */
.dl-article-layout {
    display: flex;
    gap: 24px;
}
.dl-article-main {
    flex: 1;
    min-width: 0;
}
.dl-toc {
    position: sticky;
    top: 80px;
    align-self: start;
    width: 240px;
    flex-shrink: 0;
    padding: 16px;
    background: #131a21;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.dl-toc-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #4A9EFF;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.dl-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dl-toc-list li { margin: 0; }
.dl-toc-list a {
    display: block;
    padding: 5px 0 5px 10px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s;
    border-left: 2px solid transparent;
}
.dl-toc-list a:hover,
.dl-toc-list a.active {
    color: #4A9EFF;
    border-left-color: #4A9EFF;
}
.dl-toc-list .toc-h3 a {
    padding-left: 22px;
    font-size: 11.5px;
}

/* ============================================================
   DEEP LOOK SPECIFIC — Source Attribution
   ============================================================ */
.dl-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 24px 0;
    padding: 14px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.dl-sources-label {
    font-weight: 600;
    color: #4A9EFF;
    margin-right: 4px;
}
.dl-source-lang-tag {
    display: inline-flex;
    padding: 2px 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   DEEP LOOK SPECIFIC — Source Article Links
   ============================================================ */
.dl-sources-detail {
    margin: 16px 0 24px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
}
.dl-sources-heading {
    font-size: 0.8em;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px;
    padding: 0;
}
.dl-sources-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}
.dl-sources-list li {
    font-size: 0.78em;
    line-height: 1.6;
    color: rgba(255,255,255,0.35);
}
.dl-source-link {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,0.15);
    transition: color 0.2s;
}
.dl-source-link:hover {
    color: #4A9EFF;
    border-bottom-color: #4A9EFF;
}
.dl-source-date {
    margin-left: 4px;
    color: rgba(255,255,255,0.25);
    font-size: 0.9em;
}

/* ============================================================
   DEEP LOOK SPECIFIC — YMYL Disclaimer
   ============================================================ */
.dl-disclaimer {
    margin-top: 24px;
    padding: 14px 18px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255,255,255,0.45);
}

/* ============================================================
   RELATED POSTS — Same as blog
   ============================================================ */
.related-posts-section {
    background: #131a21;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 14px;
}
.related-posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.related-posts-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.related-posts-title svg { width: 18px; height: 18px; color: #4A9EFF; }
.related-posts-view-all {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4A9EFF;
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.2s;
}
.related-posts-view-all:hover { gap: 10px; }
.related-posts-view-all svg { width: 16px; height: 16px; }
.related-posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.related-post-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}
.related-post-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(74,158,255,0.2);
    transform: translateY(-1px);
}
.related-post-image {
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-post-content { flex: 1; min-width: 0; }
.related-post-title {
    font-size: 14px;
    font-weight: 600;
    color: #e6edf3;
    line-height: 1.4;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-post-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}
.related-post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.related-post-meta svg { width: 13px; height: 13px; opacity: 0.5; }

/* ============================================================
   ARTICLE FOOTER — Same as blog
   ============================================================ */
.article-footer {
    background: #131a21;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 14px;
}
.author-section {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 20px;
}
.author-avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A9EFF 0%, #3578D9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    flex-shrink: 0;
}
.author-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.author-details { flex: 1; }
.author-label {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.author-name-large {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}
.author-role-large {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
}
.author-bio {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
}
.actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.btn-back:hover { color: #4A9EFF; }
.btn-back svg { width: 16px; height: 16px; }
.share-section {
    display: flex;
    align-items: center;
    gap: 12px;
}
.share-label {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.share-buttons {
    display: flex;
    gap: 6px;
}
.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0;
    padding: 0;
}
.share-btn svg { width: 15px; height: 15px; }
.share-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.share-btn.share-twitter:hover { color: #1DA1F2; border-color: #1DA1F2; }
.share-btn.share-facebook:hover { color: #1877F2; border-color: #1877F2; }
.share-btn.share-linkedin:hover { color: #0A66C2; border-color: #0A66C2; }
.share-btn.share-telegram:hover { color: #0088CC; border-color: #0088CC; }
.share-btn.share-whatsapp:hover { color: #25D366; border-color: #25D366; }
.share-btn.share-copy:hover { color: #4A9EFF; border-color: #4A9EFF; }

/* ============================================================
   CTA — Same as blog pattern
   ============================================================ */
.article-cta {
    padding: 18px;
    background: linear-gradient(135deg, rgba(74,158,255,0.1), rgba(41,98,255,0.08));
    border: 1px solid rgba(74,158,255,0.2);
    border-radius: 8px;
    text-align: center;
}

/* (List page styles are now inline in pages/deep-look.php, matching blog layout) */

/* ============================================================
   BLOG LAYOUT — Shared sidebar for list + single pages
   ============================================================ */
.blog-layout { display:flex; gap:16px; width:100%; align-items:flex-start; padding:16px 0 0 0; margin:0; }
.blog-sidebar { width:220px; flex-shrink:0; transition:width .3s ease; display:flex; flex-direction:column; overflow-y:auto; scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.1) transparent; position:sticky; top:80px; align-self:flex-start; max-height:calc(100vh - 100px); }
.blog-sidebar::-webkit-scrollbar { width:4px; }
.blog-sidebar::-webkit-scrollbar-track { background:transparent; }
.blog-sidebar::-webkit-scrollbar-thumb { background:rgba(255,255,255,.1); border-radius:2px; }
.blog-sidebar .sidebar-card { background:transparent; border:none; border-radius:0; overflow:hidden; }
.blog-sidebar .sidebar-menu { list-style:none; padding:4px 0; margin:0; }
.blog-sidebar .sidebar-menu-item { margin-bottom:1px; }

@keyframes blog-sidebar-glow-pulse { 0%,100%{opacity:.7} 50%{opacity:1} }
.blog-sidebar .sidebar-menu-link { display:flex; align-items:center; gap:10px; padding:9px 14px; color:rgba(255,255,255,.55); text-decoration:none; border-radius:8px; font-size:13px; font-weight:400; letter-spacing:.01em; background:transparent; position:relative; transition:color .25s ease; }
.blog-sidebar .sidebar-menu-link::before { content:''; position:absolute; inset:0; border-radius:8px; background:rgba(74,158,255,.07); box-shadow:inset 0 0 0 1px rgba(74,158,255,.35),0 0 10px rgba(74,158,255,.1); opacity:0; transition:opacity .25s ease; -webkit-mask-image:linear-gradient(90deg,black 0%,black 40%,transparent 95%); mask-image:linear-gradient(90deg,black 0%,black 40%,transparent 95%); pointer-events:none; }
.blog-sidebar .sidebar-menu-link:hover { color:#4A9EFF; }
.blog-sidebar .sidebar-menu-link:hover::before { opacity:1; animation:blog-sidebar-glow-pulse 2s ease-in-out infinite; }
.blog-sidebar .sidebar-menu-link.active { color:#4A9EFF; font-weight:500; }
.blog-sidebar .sidebar-menu-link.active::before { opacity:.7; box-shadow:inset 0 0 0 1px rgba(74,158,255,.25),0 0 8px rgba(74,158,255,.08); }
.blog-sidebar .sidebar-menu-link.active svg { color:#4A9EFF; }
.blog-sidebar .sidebar-menu-link.all-posts-link::before { display:none; }
.blog-sidebar .sidebar-menu-link svg { width:17px; height:17px; flex-shrink:0; color:rgba(255,255,255,.35); transition:color .2s ease; stroke-width:1.8; }
.blog-sidebar .sidebar-menu-link:hover svg { color:#4A9EFF; }
.blog-sidebar .sidebar-divider { height:1px; background:rgba(255,255,255,.05); margin:6px 14px; }
.blog-sidebar .sidebar-section-title { font-size:10px; font-weight:500; text-transform:uppercase; letter-spacing:.8px; color:rgba(255,255,255,.25); padding:12px 14px 6px; margin:0; }
.category-count { margin-left:auto; font-size:10px; background:rgba(255,255,255,.06); padding:2px 7px; border-radius:10px; color:rgba(255,255,255,.35); font-weight:400; }
.blog-sidebar .sidebar-menu-link.active .category-count { background:rgba(74,158,255,.15); color:rgba(74,158,255,.8); }
.blog-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:0; }

/* ============================================================
   RTL Support
   ============================================================ */
[dir="rtl"] .dl-toc-list a { padding-left: 0; padding-right: 10px; border-left: none; border-right: 2px solid transparent; }
[dir="rtl"] .dl-toc-list a:hover,
[dir="rtl"] .dl-toc-list a.active { border-right-color: #4A9EFF; }
[dir="rtl"] .dl-toc-list .toc-h3 a { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .meta-author { margin-left: 0; margin-right: auto; padding-left: 0; padding-right: 20px; border-left: none; border-right: 1px solid rgba(255,255,255,0.08); }
[dir="rtl"] .article-body blockquote { border-left: none; border-right: 4px solid var(--ab-accent); border-radius: 6px 0 0 6px; }

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .dl-article-layout {
        flex-direction: column;
    }
    .dl-toc {
        position: static;
        width: 100%;
        max-height: none;
    }
}

@media (max-width: 900px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-layout { flex-direction: column; }
    .blog-sidebar { display: none; }
    .article-hero-inner { padding: 20px 16px; }
    .article-title { font-size: 24px; }
    .article-excerpt, .article-summary { font-size: 14px; }
    .article-meta { flex-wrap: wrap; gap: 12px; }
    .meta-author { padding-left: 0; border-left: none; margin-left: 0; width: 100%; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.08); }
    .article-content { padding: 20px 16px 24px; }
    .related-post-card { padding: 12px; }
    .related-post-image { width: 100px; height: 56px; }
    .related-post-title { font-size: 13px; }
    .author-section { flex-direction: column; text-align: center; }
    .actions-bar { flex-direction: column; gap: 16px; }
    .share-section { justify-content: center; }
}
