/* ===================================
   BLOG POST SHARED STYLES
   =================================== */

:root {
    --bg: #0c0c0c;
    --bg-card: #141414;
    --bg-elevated: #1a1a1a;
    --bg-hover: #1f1f1f;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-tertiary: #555555;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-yellow: #eab308;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Grid */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
}

.wrapper {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* Article Layout */
article {
    padding-top: 120px;
    padding-bottom: 80px;
}

/* Breadcrumb */
.breadcrumb {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 48px;
    color: var(--text-tertiary);
}

.breadcrumb a {
    color: var(--text-tertiary);
    transition: color 0.2s;
    text-decoration: none;
}

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

.breadcrumb span {
    margin: 0 8px;
}

/* Article Header */
.article-header {
    margin-bottom: 64px;
}

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

.article-badge {
    display: inline-flex;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.article-date,
.article-read-time {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-tertiary);
}

.article-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 32px;
    }
}

.article-excerpt {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.7;
    border-left: 2px solid var(--border-hover);
    padding-left: 24px;
}

/* Article Content */
.article-content {
    line-height: 1.8;
    font-size: 16px;
    font-weight: 400;
}

.article-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 64px 0 24px;
    letter-spacing: -0.01em;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 40px 0 16px;
}

.article-content p {
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

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

.article-content li {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.article-content code {
    font-family: var(--font-mono);
    background: var(--bg-card);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
    border: 1px solid var(--border);
}

.article-content pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    overflow-x: auto;
    margin-bottom: 24px;
}

.article-content pre code {
    background: none;
    border: none;
    padding: 0;
}

.article-content a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--border-hover);
    text-underline-offset: 3px;
    transition: all 0.2s;
}

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

/* Stat Box */
.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    text-align: center;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 56px;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 40px;
    }
}

/* Warning Box */
.warning-box {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 32px;
    margin: 40px 0;
}

.warning-box-title {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-red);
    margin-bottom: 16px;
}

.warning-box p {
    margin-bottom: 0;
}

/* Tip Box */
.tip-box {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 32px;
    margin: 40px 0;
}

.tip-box-title {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-green);
    margin-bottom: 16px;
}

.tip-box p {
    margin-bottom: 0;
}

/* Timeline */
.timeline-item {
    border-left: 2px solid var(--border);
    padding-left: 32px;
    margin-bottom: 32px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-primary);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

/* CTA Section */
.cta-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 64px 48px;
    text-align: center;
    margin: 80px 0;
}

.cta-section h3 {
    font-size: 28px;
    margin-bottom: 16px;
    font-weight: 700;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
}

@media (max-width: 768px) {
    .cta-section {
        padding: 48px 32px;
    }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: var(--text-primary);
    color: var(--bg);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

/* Related Articles */
.related-articles {
    margin-top: 80px;
    padding-top: 64px;
    border-top: 1px solid var(--border);
}

.related-articles h3 {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-tertiary);
    margin-bottom: 32px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-decoration: none;
    transition: all 0.2s;
    display: block;
}

.related-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.related-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.related-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.related-card-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-tertiary);
}

/* ===================================
   COMPARISON PAGE STYLES
   =================================== */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--text-secondary);
}

.hero {
    text-align: center;
    padding: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03));
    border-radius: 16px;
    margin-bottom: 3rem;
    overflow: hidden;
}

.comparison-logos {
    height: 240px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-hover));
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 2rem;
    position: relative;
}

.comparison-logos::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 4px);
    pointer-events: none;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 1;
}

.logo-box {
    width: 140px;
    height: 140px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.logo-container.knoxcall .logo-box {
    border-color: var(--text-primary);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.logo-container.competitor .logo-box {
    border-color: var(--text-tertiary);
}

.logo-box svg,
.logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-tertiary);
}

.vs-separator {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.hero-content {
    padding: 40px 2rem 60px;
}

.vs-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.vs-brand {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.vs-brand.knoxcall {
    color: var(--text-primary);
}

.vs-brand.competitor {
    color: var(--text-secondary);
}

.vs-divider {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border: 2px solid var(--text-secondary);
    border-radius: 8px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg);
    border: 2px solid var(--text-primary);
}

.btn-primary:hover {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}

.summary-card.knoxcall {
    border-color: rgba(255, 255, 255, 0.12);
}

.summary-card h3 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.summary-card.knoxcall h3 {
    color: var(--text-primary);
}

.summary-card.competitor h3 {
    color: var(--text-secondary);
}

.summary-card ul {
    list-style: none;
}

.summary-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.summary-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.9rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
}

.summary-card.knoxcall li::before {
    background: var(--text-primary);
    box-shadow: 0 0 6px var(--text-primary);
}

.section-title {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.comparison-table thead {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.comparison-table th {
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th:nth-child(2) {
    color: var(--text-primary);
    text-align: center;
}

.comparison-table th:nth-child(3) {
    text-align: center;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.feature-name {
    font-weight: 600;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

.feature-cell {
    text-align: center;
}

.check {
    color: var(--accent-green);
    font-size: 1.25rem;
}

.partial {
    color: var(--accent-yellow);
    font-size: 1.25rem;
}

.cross {
    color: var(--accent-red);
    font-size: 1.25rem;
}

.feature-note {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

.category-header {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 2rem 0 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--text-secondary);
}

.prose-section {
    max-width: 800px;
    margin: 4rem auto;
}

.prose-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.prose-section h3 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    margin: 4rem 0;
}

.cta-title {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.cta-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Comparison page responsive styles */
@media (max-width: 768px) {
    .comparison-logos {
        gap: 2rem;
        padding: 1.5rem;
        height: 200px;
    }

    .logo-box {
        width: 100px;
        height: 100px;
        padding: 1rem;
    }

    .vs-separator {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .logo-label {
        font-size: 0.65rem;
    }

    .hero-content {
        padding: 30px 1.5rem 50px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
}
