/* Blog article shared styles - extends styles.css */

/* Article Layout */
.article-hero {
    background: var(--hero-gradient);
    padding: 50px 0 60px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(102,126,234,0.25) 0%, transparent 70%);
    pointer-events: none;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin: 0 0 16px 0;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    flex: none;
    width: 100%;
}

.article-breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.article-breadcrumb a:hover { color: #fff; }
.article-breadcrumb span { color: rgba(255,255,255,0.35); }

.article-hero-tag,
.article-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,0.9);
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.article-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.18;
    max-width: 860px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    position: relative;
    z-index: 1;
}

.article-meta strong {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

.article-author-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.article-author-name {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.article-author-name:hover {
    color: var(--primary);
    text-decoration: underline;
}

.article-meta-divider {
    opacity: 0.4;
    margin: 0 4px;
}

/* --- Light Mode Hero Overrides --- */
[data-theme="light"] .article-hero {
    background: linear-gradient(160deg, #f0f4ff 0%, #e6efff 45%, #f4f2ff 100%);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .article-hero::before {
    background: radial-gradient(ellipse, rgba(0, 102, 204, 0.1) 0%, transparent 70%);
}

[data-theme="light"] .article-breadcrumb {
    color: var(--text-secondary);
}

[data-theme="light"] .article-breadcrumb a {
    color: var(--text-secondary);
}

[data-theme="light"] .article-breadcrumb a:hover {
    color: var(--primary);
}

[data-theme="light"] .article-breadcrumb span {
    color: var(--text-tertiary);
}

[data-theme="light"] .article-hero-tag,
[data-theme="light"] .article-tag {
    background: rgba(0, 102, 204, 0.08);
    border-color: rgba(0, 102, 204, 0.2);
    color: var(--primary);
}

[data-theme="light"] .article-hero h1 {
    color: var(--text-primary);
}

[data-theme="light"] .article-meta {
    color: var(--text-secondary);
}

[data-theme="light"] .article-meta strong {
    color: var(--text-primary);
}

/* Article Body */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    padding: 60px 0 80px;
    align-items: start;
}

.article-body {
    min-width: 0;
}

.article-body h2 {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text-primary);
    scroll-margin-top: 80px;
}

.article-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.article-body p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.3rem;
}

.article-body ul,
.article-body ol {
    padding-left: 22px;
    margin: 16px 0 24px;
}

.article-body li {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 10px;
}

.article-body li strong {
    color: var(--text-primary);
}

.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(0,122,255,0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}
.article-body a:hover {
    text-decoration-color: var(--primary);
}

/* Callout boxes */
.callout {
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin: 28px 0;
    border-left: 4px solid;
}

.callout-tip {
    background: rgba(0,122,255,0.06);
    border-color: var(--primary);
}

.callout-warning {
    background: rgba(255,149,0,0.07);
    border-color: #ff9500;
}

.callout-success {
    background: rgba(52,199,89,0.07);
    border-color: #34c759;
}

.callout-title {
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.callout-tip .callout-title { color: var(--primary); }
.callout-warning .callout-title { color: #ff9500; }
.callout-success .callout-title { color: #34c759; }
.callout-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: #ef4444;
}
.callout-danger .callout-title { color: #ef4444; }

.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 18px 24px;
    margin: 28px 0;
    background: var(--bg-secondary);
    border-radius: 0 14px 14px 0;
    font-style: italic;
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.quick-takeaways {
    background: var(--primary-light, rgba(0, 102, 204, 0.08)) !important;
    border-left: 4px solid var(--primary) !important;
    border-radius: 0 16px 16px 0;
    padding: 24px 28px;
    margin-bottom: 35px;
}

.quick-takeaways h3 {
    color: var(--primary) !important;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0 !important;
    margin-bottom: 14px !important;
}

.quick-takeaways ul {
    margin: 0 !important;
    padding-left: 20px !important;
}

.quick-takeaways li {
    color: var(--text-primary) !important;
    line-height: 1.7;
    margin-bottom: 8px !important;
    font-size: 1rem !important;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 0.94rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.article-body th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 14px 16px;
    font-weight: 700;
    text-align: left;
    border-bottom: 2px solid var(--border);
}

.article-body td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.article-body tr:last-child td {
    border-bottom: none;
}

.article-body tr:hover td {
    background: var(--primary-light);
}

.callout p {
    font-size: 0.97rem !important;
    margin-bottom: 0 !important;
}

/* Step boxes */
.step-grid {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

.step-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.step-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-box h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.step-box p {
    font-size: 0.92rem !important;
    margin-bottom: 0 !important;
}

/* Comparison table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

@media (max-width: 768px) {
    .comparison-table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .comparison-table th,
    .comparison-table td {
        min-width: 120px;
        white-space: normal;
    }
    .comparison-table th:first-child,
    .comparison-table td:first-child {
        position: sticky;
        left: 0;
        background: var(--bg-card);
        z-index: 2;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.12);
    }
    .comparison-table th:first-child {
        z-index: 3;
    }
}

.comparison-table th {
    background: var(--accent-gradient);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 0.88rem;
}

.comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    vertical-align: top;
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: var(--bg-secondary); }

.check { color: #34c759; font-weight: 700; }
.cross { color: #ff3b30; font-weight: 700; }

/* TOC (table of contents) sidebar */
.article-sidebar {
    position: sticky;
    top: 80px;
}

.toc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.toc-card h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 14px;
}

.toc-card ol {
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-card li a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    padding: 2px 0;
    border-left: 2px solid transparent;
    padding-left: 10px;
    transition: all 0.2s;
}

.toc-card li a:hover {
    color: var(--primary);
    border-left-color: var(--primary);
}

/* App promo card in sidebar */
.app-promo-card {
    background: var(--hero-gradient);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    color: #fff;
}

.app-promo-card .app-icon-large {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin: 0 auto 14px;
    animation: none;
}

.app-promo-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.app-promo-card p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 16px;
    line-height: 1.4;
}

.app-promo-card .hero-btn-large {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
    padding: 12px 20px;
}

/* Related articles */
.related-articles {
    padding: 60px 0 80px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.related-card-emoji { font-size: 1.5rem; }
.related-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}
.related-card span {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        position: static;
        order: -1;
    }
    .toc-card { display: none; }
    .related-grid { grid-template-columns: 1fr 1fr; }
    .article-hero h1 { font-size: 2rem; }
}

@media (max-width: 600px) {
    .related-grid { grid-template-columns: 1fr; }
    .article-hero h1 { font-size: 1.7rem; }
    .article-body h2 { font-size: 1.4rem; }
}

/* ============================================================
   MODERN BLOG ARTICLE LAYOUT & COMPONENTS
   ============================================================ */
.blog-wrapper {
    max-width: var(--max-width, 1080px);
    margin: 0 auto;
    padding: 0 24px 60px;
    box-sizing: border-box;
}

.article-container {
    padding: 30px 0 60px;
}

.article-main {
    min-width: 0;
}

.article-content {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text-primary);
    scroll-margin-top: 80px;
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.article-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.article-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.3rem;
}

.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin: 16px 0 24px;
}

.article-content li {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 10px;
}

.article-content li strong {
    color: var(--text-primary);
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(0, 102, 204, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.article-content a:hover {
    text-decoration-color: var(--primary);
}

.article-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

.article-content code {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid var(--border);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.article-content .lead {
    font-size: 1.18rem;
    line-height: 1.75;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 28px;
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--text-tertiary);
}

/* Modern Article Hero */
.article-hero-modern,
.blog-wrapper .article-hero {
    background: linear-gradient(135deg, rgba(61, 220, 132, 0.08) 0%, rgba(30, 58, 138, 0.08) 100%);
    border-radius: var(--radius-lg, 20px);
    padding: 36px 30px;
    margin-bottom: 35px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .blog-wrapper .article-hero {
    background: linear-gradient(135deg, rgba(61, 220, 132, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-color: var(--border);
}

.article-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.22;
    margin: 14px 0;
}

.blog-wrapper .article-meta {
    color: var(--text-tertiary);
    font-size: 0.88rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* App Review Cards */
.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    padding: 28px;
    margin: 36px 0;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
    box-shadow: var(--shadow-md);
}

.app-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 14px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
}

.app-card-header h3 {
    color: var(--text-primary) !important;
    font-size: 1.4rem !important;
    margin: 8px 0 4px !important;
    font-weight: 700;
}

.app-rank-badge {
    background: #10b981;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-block;
    letter-spacing: 0.02em;
}

.badge-android {
    display: inline-block;
    background: #3ddc84;
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    margin-right: 6px;
}

.score-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .score-pill {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.3);
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

.pros-box {
    background: rgba(34, 197, 94, 0.07);
    border-left: 4px solid #22c55e;
    padding: 16px 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border-top: 1px solid rgba(34, 197, 94, 0.15);
    border-right: 1px solid rgba(34, 197, 94, 0.15);
    border-bottom: 1px solid rgba(34, 197, 94, 0.15);
}

.cons-box {
    background: rgba(239, 68, 68, 0.07);
    border-left: 4px solid #ef4444;
    padding: 16px 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border-top: 1px solid rgba(239, 68, 68, 0.15);
    border-right: 1px solid rgba(239, 68, 68, 0.15);
    border-bottom: 1px solid rgba(239, 68, 68, 0.15);
}

.pros-box strong,
.cons-box strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.pros-box ul,
.cons-box ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.pros-box li,
.cons-box li {
    margin-bottom: 6px;
    line-height: 1.5;
}

/* Comparison Tables */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    margin: 28px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.comparison-table th,
.comparison-table td {
    border: 1px solid var(--border);
    padding: 14px 16px;
    text-align: left;
}

.comparison-table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
}

.comparison-table td {
    color: var(--text-secondary);
    background: var(--bg);
}

.comparison-table tr:nth-child(even) td {
    background: var(--bg-secondary);
}

/* Sidebar Card */
.sidebar-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg, 20px) !important;
    padding: 24px !important;
    position: sticky;
    top: 90px;
    box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
    color: var(--text-primary) !important;
    font-size: 1.2rem !important;
    margin: 12px 0 8px !important;
    font-weight: 700;
}

.sidebar-card p {
    color: var(--text-secondary) !important;
    font-size: 0.9rem !important;
    line-height: 1.6;
    margin-bottom: 20px !important;
}

/* Responsive Layout */
@media (max-width: 992px) {
    .article-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .article-sidebar {
        order: 2;
        position: static;
    }
    .sidebar-card {
        position: static;
    }
    .article-title {
        font-size: 1.9rem;
    }
}

@media (max-width: 640px) {
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
    .article-title {
        font-size: 1.6rem;
    }
    .blog-wrapper {
        padding: 0 16px 40px;
    }
    .app-card {
        padding: 20px 16px;
    }
    .comparison-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

.step-box-google {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid #4285F4;
    border-radius: 0 var(--radius-md, 12px) var(--radius-md, 12px) 0;
    padding: 20px;
    margin: 20px 0;
}

.step-box-warning {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 4px solid #ef4444;
    border-radius: 0 var(--radius-md, 12px) var(--radius-md, 12px) 0;
    padding: 20px;
    margin: 20px 0;
}

.code-block {
    background: #1e293b;
    color: #f8fafc;
    padding: 18px 20px;
    border-radius: var(--radius-md, 12px);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88rem;
    overflow-x: auto;
    margin: 20px 0;
    line-height: 1.55;
    border: 1px solid var(--border);
}

.badge-google {
    display: inline-block;
    background: #4285F4;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    margin-right: 6px;
}

.badge-cloud {
    display: inline-block;
    background: #EA4335;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    margin-right: 6px;
}

/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #0a84ff, #bf5af2, #ff375f);
    z-index: 10001;
    width: 0%;
    transition: width 0.08s linear;
    pointer-events: none;
}

/* Mobile Sticky Bottom CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(18, 18, 20, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(120%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .mobile-sticky-cta {
    background: rgba(255, 255, 255, 0.94);
    border-top-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-sticky-cta.visible {
    transform: translateY(0);
}

.mobile-sticky-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-sticky-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.mobile-sticky-text {
    display: flex;
    flex-direction: column;
}

.mobile-sticky-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    line-height: 1.2;
}

.mobile-sticky-sub {
    font-size: 0.75rem;
    color: var(--text-secondary, #94a3b8);
}

.mobile-sticky-btn {
    background: var(--primary, #0a84ff);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 8px 18px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(10, 132, 255, 0.35);
    white-space: nowrap;
    transition: transform 0.15s ease, background 0.15s ease;
}

.mobile-sticky-btn:active {
    transform: scale(0.96);
}

@media (min-width: 769px) {
    .mobile-sticky-cta {
        display: none !important;
    }
}

/* Article Share Widget */
.article-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 28px;
    padding: 10px 14px;
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary, #64748b);
    flex-wrap: wrap;
}

.share-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #cbd5e1);
    color: var(--text-primary, #1e293b);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.share-copy-btn:hover {
    background: var(--primary, #0a84ff);
    color: #fff;
    border-color: var(--primary, #0a84ff);
}

/* ============================================================
   ARTICLE & COMPARISON FAQ CARDS
   ============================================================ */
.article-body .faq-item,
.faq-item:not(details),
div.faq-item {
    padding: 24px 28px !important;
    margin-bottom: 20px !important;
    border-radius: 16px !important;
    border: 1px solid var(--border, #e5e5e7) !important;
    background: var(--bg-card, #ffffff) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
    transition: transform var(--transition-fast, 0.2s), box-shadow var(--transition-fast, 0.2s), border-color var(--transition-fast, 0.2s) !important;
    display: block !important;
}

.article-body .faq-item:hover,
.faq-item:not(details):hover,
div.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 16px rgba(0, 0, 0, 0.08)) !important;
    border-color: rgba(0, 102, 204, 0.3) !important;
}

[data-theme="dark"] .article-body .faq-item,
[data-theme="dark"] .faq-item:not(details),
[data-theme="dark"] div.faq-item {
    background: #242426 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .article-body .faq-item:hover,
[data-theme="dark"] .faq-item:not(details):hover,
[data-theme="dark"] div.faq-item:hover {
    border-color: rgba(41, 151, 255, 0.4) !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35) !important;
}

.faq-list > .faq-item,
.faq-list > div.faq-item {
    margin-bottom: 0 !important;
}

.article-body .faq-item h3,
.faq-item:not(details) h3,
div.faq-item h3 {
    margin: 0 0 12px 0 !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    color: var(--text-primary, #1d1d1f) !important;
    letter-spacing: -0.01em !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

.article-body .faq-item h3::before,
.faq-item:not(details) h3::before,
div.faq-item h3::before {
    content: "Q";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--primary-light, rgba(0, 102, 204, 0.1));
    color: var(--primary, #0066cc);
    font-size: 0.82rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

[data-theme="dark"] .article-body .faq-item h3::before,
[data-theme="dark"] .faq-item:not(details) h3::before,
[data-theme="dark"] div.faq-item h3::before {
    background: rgba(41, 151, 255, 0.15);
    color: #2997ff;
}

.article-body .faq-item p,
.faq-item:not(details) p,
div.faq-item p {
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1.65 !important;
    color: var(--text-secondary, #6e6e73) !important;
    padding-left: 38px !important;
}

.article-body .faq-item p + p,
.faq-item:not(details) p + p,
div.faq-item p + p {
    margin-top: 10px !important;
}

[data-theme="dark"] .article-body .faq-item p,
[data-theme="dark"] .faq-item:not(details) p,
[data-theme="dark"] div.faq-item p {
    color: #a1a1a6 !important;
}

@media (max-width: 640px) {
    .article-body .faq-item,
    .faq-item:not(details),
    div.faq-item {
        padding: 18px 20px !important;
        margin-bottom: 14px !important;
        border-radius: 14px !important;
    }

    .article-body .faq-item h3,
    .faq-item:not(details) h3,
    div.faq-item h3 {
        font-size: 1.05rem !important;
        gap: 10px !important;
    }

    .article-body .faq-item p,
    .faq-item:not(details) p,
    div.faq-item p {
        padding-left: 0 !important;
        margin-top: 8px !important;
        font-size: 0.96rem !important;
    }
}

/* 1-Tap Social Share Buttons */
.share-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #cbd5e1);
    color: var(--text-secondary, #64748b);
    transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none;
    box-sizing: border-box;
}
.share-icon-btn svg {
    display: block;
}
.share-icon-btn:hover {
    transform: translateY(-2px);
}
.share-icon-btn.share-tg:hover {
    color: #0088cc;
    border-color: #0088cc;
    background: rgba(0, 136, 204, 0.08);
}
.share-icon-btn.share-wa:hover {
    color: #25d366;
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.08);
}
.share-icon-btn.share-x:hover {
    color: #000;
    border-color: #000;
    background: rgba(0, 0, 0, 0.05);
}
[data-theme="dark"] .share-icon-btn.share-x:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Table of Contents (TOC) */
.article-toc {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius-lg, 16px);
    padding: 24px 28px;
    margin: 32px 0 40px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.article-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}
.article-toc-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading, var(--text-primary, #0f172a));
    margin: 0;
}
.article-toc-title svg {
    color: var(--primary, #007aff);
    flex-shrink: 0;
}
.article-toc-toggle {
    background: none;
    border: none;
    color: var(--text-secondary, #64748b);
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.25s ease;
}
.article-toc.collapsed .article-toc-toggle {
    transform: rotate(-90deg);
}
.article-toc.collapsed .toc-list {
    display: none;
}
.toc-list {
    margin: 18px 0 0 0;
    padding: 0 0 0 22px;
    list-style: decimal;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toc-item {
    font-size: 0.96rem;
    line-height: 1.5;
}
.toc-link {
    color: var(--text-secondary, #475569);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
}
.toc-link:hover {
    color: var(--primary, #007aff);
    text-decoration: underline;
}
.toc-link.active {
    color: var(--primary, #007aff);
    font-weight: 600;
}

/* 1-Click Interactive Settings Path Badge */
.settings-path-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-secondary, #f1f5f9);
    border: 1px solid var(--border, #cbd5e1);
    border-radius: 8px;
    padding: 3px 10px;
    font-size: 0.9em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    margin: 2px 0;
}
.settings-path-badge:hover {
    background: rgba(0, 122, 255, 0.08);
    border-color: var(--primary, #007aff);
    color: var(--primary, #007aff);
}
.settings-path-badge svg {
    flex-shrink: 0;
    opacity: 0.6;
}
.settings-path-badge:hover svg {
    opacity: 1;
}

/* ============================================================
   QUICK TAKEAWAYS 1-CLICK COPY BUTTON
   ============================================================ */
.quick-takeaways {
    position: relative;
    transition: border-color 0.2s ease;
}

.quick-takeaways-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.quick-takeaways-header h2,
.quick-takeaways-header h3,
.quick-takeaways-header h4 {
    margin: 0 !important;
}

.copy-takeaways-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card, #ffffff);
    color: var(--text-primary, #1e293b);
    border: 1px solid var(--border, #cbd5e1);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    user-select: none;
}

.copy-takeaways-btn:hover {
    background: var(--primary, #007aff);
    color: #ffffff;
    border-color: var(--primary, #007aff);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
    transform: translateY(-1px);
}

.copy-takeaways-btn.copied {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

.copy-takeaways-btn svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

/* ============================================================
   BLOG ARTICLE PRINT OVERRIDES
   ============================================================ */
@media print {
    .table-of-contents,
    .copy-takeaways-btn,
    .article-hero-badges,
    .article-cta-box,
    .related-articles {
        display: none !important;
    }

    .quick-takeaways {
        border-left: 3px solid #666 !important;
        background: #f8fafc !important;
        padding: 12px 16px !important;
        margin-bottom: 20px !important;
    }

    details.faq-accordion {
        border: 1px solid #ddd !important;
        margin-bottom: 10px !important;
    }

    details.faq-accordion summary {
        font-weight: bold !important;
        cursor: default !important;
    }

    details.faq-accordion > *:not(summary) {
        display: block !important;
    }
}

/* ============================================================
   ARTICLE CTA DESKTOP QR BRIDGE (ASO CONVERSION)
   ============================================================ */
.article-cta-qr-card {
    display: none;
    align-items: center;
    gap: 16px;
    background: var(--bg-card, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 20px;
    max-width: 420px;
    margin: 24px auto 0 auto;
    text-align: left;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.06));
}

@media (min-width: 769px) {
    .article-cta-qr-card {
        display: inline-flex;
    }
}

.article-cta-qr-img {
    background: #ffffff;
    padding: 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-cta-qr-img img {
    display: block;
}

.article-cta-qr-text strong {
    display: block;
    font-size: 0.96rem;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.article-cta-qr-text span {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.35;
    display: block;
}



