/* =====================================================
   NORATAM — ARTICLE & COMPARISON STYLES
   ===================================================== */

.article-page {
    padding-top: 120px;
    padding-bottom: 100px;
    min-height: 800px;
}

.article-header-hero {
    background: linear-gradient(145deg, rgba(13, 25, 36, 0.95), rgba(7, 17, 26, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 45px 50px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* When article has a custom cover image */
.article-header-hero.has-cover-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(5, 11, 18, 0.62) 0%,
        rgba(5, 11, 18, 0.82) 60%,
        rgba(5, 11, 18, 0.97) 100%
    );
    z-index: 0;
}

.article-header-hero.has-cover-image > * {
    position: relative;
    z-index: 1;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.article-type-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 106, 0, 0.12);
    color: var(--orange);
    border: 1px solid rgba(255, 106, 0, 0.3);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.article-cat-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(0, 196, 204, 0.1);
    color: #00c4cc;
    border: 1px solid rgba(0, 196, 204, 0.25);
    font-size: 11px;
    font-weight: 700;
}

.article-header-hero h1 {
    font-size: clamp(30px, 4.5vw, 48px);
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.article-hero-subtitle {
    font-size: 18px;
    line-height: 1.65;
    color: var(--muted);
    max-width: 860px;
    margin: 0 0 26px;
}

.article-author-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 106, 0, 0.15);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid rgba(255, 106, 0, 0.3);
}

.author-info strong {
    display: block;
    font-size: 13.5px;
    color: var(--text);
}

.author-info small {
    font-size: 11.5px;
    color: var(--muted2);
}

/* 2-Column Grid */
.article-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}

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

.module-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 36px 0 24px;
}

/* Top 5 Ranked Cards */
.top-list-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.top-ranked-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px;
    display: flex;
    gap: 24px;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.top-ranked-card:hover {
    border-color: rgba(255, 106, 0, 0.4);
    transform: translateY(-2px);
}

.rank-badge {
    font-size: 32px;
    font-weight: 900;
    color: var(--orange);
    line-height: 1;
    font-family: monospace;
    opacity: 0.8;
}

.ranked-content {
    flex-grow: 1;
}

.ranked-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.ranked-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    overflow: hidden;
    flex-shrink: 0;
}

.ranked-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.ranked-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 2px;
}

.ranked-best-for {
    font-size: 12px;
    color: #00c4cc;
    font-weight: 700;
}

.ranked-why {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 18px;
}

.ranked-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    margin: 20px 0 32px;
}

.comparison-table th {
    padding: 16px 20px;
    background: #081119;
    color: var(--muted2);
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 13.5px;
    color: var(--text);
}

.winner-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 106, 0, 0.12);
    color: var(--orange);
    border: 1px solid rgba(255, 106, 0, 0.3);
    font-weight: 700;
    font-size: 12px;
    vertical-align: middle;
}

.editorial-take-card {
    background: linear-gradient(145deg, #0f1c29, #09131e);
    border: 1px solid rgba(0, 196, 204, 0.25);
    border-radius: 16px;
    padding: 26px;
    margin: 28px 0;
}

.editorial-take-card h3 {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.editorial-take-card p {
    font-size: 15px;
    line-height: 1.75;
    color: #d6dde1;
    margin: 0;
}

/* Verdict Box */
.article-verdict-box {
    background: linear-gradient(145deg, #0e1c29, #09131d);
    border: 1px solid rgba(255, 106, 0, 0.3);
    border-radius: 18px;
    padding: 32px;
    margin-top: 48px;
}

.verdict-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.verdict-icon {
    font-size: 24px;
}

.verdict-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.article-verdict-box p {
    font-size: 16px;
    line-height: 1.8;
    color: #d6dde1;
    margin: 0;
}

/* Sidebar Featured Tools */
.featured-tools-mini-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.featured-tool-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.ft-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.ft-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.ft-info {
    flex-grow: 1;
    min-width: 0;
}

.ft-info h5 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ft-info small {
    font-size: 11px;
    color: var(--muted2);
}

.ft-link {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--orange);
    text-decoration: none;
}

.directory-cta-box {
    background: linear-gradient(145deg, #101c27, #0b151f);
    border-color: rgba(255, 106, 0, 0.2);
    text-align: center;
}

.directory-cta-box h4 {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.directory-cta-box p {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 14px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
    .article-layout-grid {
        grid-template-columns: 1fr;
    }
    .top-ranked-card {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        border-radius: 12px;
    }
    .ranked-header {
        gap: 10px;
        margin-bottom: 8px;
    }
    .ranked-why {
        margin-bottom: 12px;
        font-size: 13.5px;
    }
    .ranked-actions {
        gap: 8px;
        flex-wrap: nowrap;
    }
    .ranked-actions .btn {
        flex: 1;
        padding: 0 8px;
        font-size: 10px;
        min-height: 36px;
    }
    .article-header-hero {
        padding: 30px 24px;
    }
}

/* =====================================================
   RICH CONTENT: IN-ARTICLE IMAGES, CALLOUTS & FORMATTING
   ===================================================== */

.article-body-figure {
    margin: 28px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-align: center;
}

.article-body-image {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    background: rgba(0, 0, 0, 0.3);
}

.article-body-caption {
    font-size: 12.5px;
    color: var(--muted2);
    margin-top: 10px;
    font-style: italic;
    line-height: 1.5;
}

.article-callout {
    margin: 24px 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.08), rgba(255, 106, 0, 0.02));
    border-left: 4px solid var(--orange);
    border-radius: 0 12px 12px 0;
    border-top: 1px solid rgba(255, 106, 0, 0.15);
    border-right: 1px solid rgba(255, 106, 0, 0.15);
    border-bottom: 1px solid rgba(255, 106, 0, 0.15);
}

.article-callout p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #f1f5f9;
}

.article-inline-code {
    background: rgba(255, 255, 255, 0.08);
    color: #ffaa55;
    padding: 2px 6px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 13.5px;
}

.guide-section h2 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 40px 0 16px;
    letter-spacing: -0.02em;
}

.guide-section h3 {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    margin: 28px 0 12px;
}

.guide-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 18px;
}

.guide-section ul,
.guide-section ol {
    margin: 16px 0 24px;
    padding-left: 26px;
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 15.5px;
}

.guide-section li {
    margin-bottom: 8px;
}

/* =====================================================
   REFERRAL & CTA BUTTONS / AFFILIATE BANNERS
   ===================================================== */

.article-cta-btn-wrap {
    margin: 32px 0;
    text-align: center;
    display: flex;
    justify-content: center;
}

.article-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6a00, #ff8c00);
    color: #fff;
    border: none;
    box-shadow: 0 8px 25px rgba(255, 106, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.article-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(255, 106, 0, 0.55);
    filter: brightness(1.08);
    color: #fff;
    text-decoration: none;
}

.article-cta-btn .cta-arrow {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.article-cta-btn:hover .cta-arrow {
    transform: translate(2px, -2px);
}

.article-deal-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.12), rgba(0, 196, 204, 0.08));
    border: 1px solid rgba(255, 106, 0, 0.35);
    border-radius: 14px;
    padding: 20px 24px;
    margin: 28px 0;
    flex-wrap: wrap;
}

.article-deal-banner .deal-content h4 {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
}

.article-deal-banner .deal-content p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.article-inline-link {
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
    transition: color 0.2s;
}

.article-inline-link:hover {
    color: #ff9d5c;
}

/* Card Layout for Tables (Show on PC and Mobile) */
.desktop-only-table {
    display: none;
}

.mobile-only-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0 32px;
}

.comparison-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
}

.comparison-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.comparison-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-card li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    margin-bottom: 10px;
    color: var(--text);
}

.comparison-card li:last-child {
    margin-bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.comparison-card li strong {
    color: var(--muted);
    font-weight: 600;
}

@media (max-width: 760px) {
    .mobile-only-cards {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
}
