/* Blog Post Specific Styles */
.blog-article {
    max-width: 980px;
    margin: 32px auto;
    padding: 0 20px 44px;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

.blog-article {
    max-width: none;
    margin: 0;
    padding: 32px 34px 40px;
}

.blog-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 18px 16px;
    box-shadow: none;
}

.sidebar-title {
    font-size: 0.95rem;
    margin: 0 0 14px 0;
    color: #0f172a;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 700;
}

.sidebar-title::after {
    content: "";
    display: block;
    height: 4px;
    width: 100%;
    background: #e2e8f0;
    margin-top: 12px;
    border-radius: 999px;
}

.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-list li {
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.5;
    display: inline-block;
}

.sidebar-list a:hover {
    color: #ef476f;
}

.sidebar-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    margin-left: 8px;
}

.sidebar-empty {
    margin: 0;
    color: #64748b;
}

.sidebar-search {
    padding: 18px 24px 18px 18px;
}

.sidebar-search-form {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
}

.sidebar-search-form input {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    padding: 12px 42px 12px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-color);
}

.sidebar-search-form button {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    min-width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
}

.sidebar-search-form button:hover {
    background: transparent;
    color: var(--text-color);
}

/* Dark mode adaptations for sidebar */
body.dark-mode .sidebar-card {
    background: #111827;
    border-color: #1f2937;
    box-shadow: none;
}

body.dark-mode .sidebar-title {
    color: #e5edf5;
}

body.dark-mode .sidebar-title::after {
    background: #2b3647;
}

body.dark-mode .sidebar-list a,
body.dark-mode .sidebar-list a:visited,
body.dark-mode .blog-sidebar .sidebar-list a,
body.dark-mode .blog-sidebar .sidebar-list a:visited {
    color: #ffffff;
}

body.dark-mode .sidebar-list a:hover {
    color: #63b3ed;
}

body.dark-mode .sidebar-list li {
    border-bottom-color: #2f3a4c;
}

body.dark-mode .sidebar-meta {
    background: #1f2937;
    color: #e5edf5;
}

body.dark-mode .sidebar-empty {
    color: #94a3b8;
}

body.dark-mode .sidebar-search-form input {
    background: #0b1624;
    border-color: #1f2937;
    color: #e2e8f0;
}

body.dark-mode .sidebar-search-form input::placeholder {
    color: #94a3b8;
}

body.dark-mode .sidebar-search-form button {
    background: transparent;
    color: #cbd5e1;
}

body.dark-mode .sidebar-search-form button:hover {
    background: transparent;
    color: #e7edf8;
}

/* Developer mode adaptations for sidebar */
body.developer-mode .sidebar-card {
    background: #111827;
    border-color: #1f2937;
    box-shadow: none;
}

body.developer-mode .sidebar-title {
    color: #e5edf5;
}

body.developer-mode .sidebar-title::after {
    background: #2b3647;
}

body.developer-mode .sidebar-list a,
body.developer-mode .sidebar-list a:visited,
body.developer-mode .blog-sidebar .sidebar-list a,
body.developer-mode .blog-sidebar .sidebar-list a:visited {
    color: #ffffff;
}

body.developer-mode .sidebar-list a:hover {
    color: #63b3ed;
}

body.developer-mode .sidebar-list li {
    border-bottom-color: #2f3a4c;
}

body.developer-mode .sidebar-meta {
    background: #1f2937;
    color: #e5edf5;
}

body.developer-mode .sidebar-empty {
    color: #94a3b8;
}

body.developer-mode .sidebar-search-form input {
    background: #0b1624;
    border-color: #1f2937;
    color: #e2e8f0;
}

body.developer-mode .sidebar-search-form input::placeholder {
    color: #94a3b8;
}

body.developer-mode .sidebar-search-form button {
    background: transparent;
    color: #cbd5e1;
}

body.developer-mode .sidebar-search-form button:hover {
    background: transparent;
    color: #e7edf8;
}

/* Hacker mode adaptations for sidebar */
body.hacker-mode .sidebar-card {
    background: #0d140d;
    border-color: #1a3d1a;
    box-shadow: none;
}

body.hacker-mode .sidebar-title {
    color: #00ff00;
}

body.hacker-mode .sidebar-title::after {
    background: #1a3d1a;
}

body.hacker-mode .sidebar-list a,
body.hacker-mode .sidebar-list a:visited,
body.hacker-mode .blog-sidebar .sidebar-list a,
body.hacker-mode .blog-sidebar .sidebar-list a:visited {
    color: #00ff00;
}

body.hacker-mode .sidebar-list a:hover {
    color: #00ff88;
}

body.hacker-mode .sidebar-list li {
    border-bottom-color: #1a3d1a;
}

body.hacker-mode .sidebar-meta {
    background: #001400;
    color: #00cc00;
}

body.hacker-mode .sidebar-empty {
    color: #00cc00;
}

body.hacker-mode .sidebar-search-form input {
    background: #001400;
    border-color: #1a3d1a;
    color: #00ff00;
}

body.hacker-mode .sidebar-search-form input::placeholder {
    color: #00cc00;
}

body.hacker-mode .sidebar-search-form button {
    background: transparent;
    color: #00cc00;
}

body.hacker-mode .sidebar-search-form button:hover {
    background: transparent;
    color: #00ff00;
}


.blog-article--compact {
    max-width: 900px;
}

.blog-article--wide {
    max-width: 980px;
}

.blog-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-top: 20px;
    /* Added padding per user request */
}

.back-link {
    display: inline-block;
    margin-top: 40px;
    /* Added spacing from navbar */
    margin-bottom: 20px;
    color: #27619B;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.blog-category {
    font-weight: 600;
    color: #27619B;
    text-transform: uppercase;
}

.blog-title {
    font-size: 2.1rem;
    margin-bottom: 24px;
    line-height: 1.3;
    color: var(--text-color);
}

.blog-hero {
    margin: 0 0 28px 0;
    border-radius: 10px;
    overflow: hidden;
}

.blog-hero img {
    width: 100%;
    display: block;
    height: auto;
}

.blog-hero--small img {
    max-height: 260px;
    object-fit: cover;
}

.blog-hero--medium img {
    max-height: 360px;
    object-fit: cover;
}

.blog-hero--large img {
    max-height: 480px;
    object-fit: cover;
}

.post-content {
    font-size: 1.2rem;
    line-height: 1.75;
    color: var(--text-color);
}

.post-content img.blog-image-half {
    width: 70%;
    max-width: 560px;
    margin: 16px auto 26px;
    display: block;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    border-radius: 8px;
}

.post-content .blog-image-wrap {
    text-align: center;
    margin: 0;
}

@media (max-width: 640px) {
    .post-content img.blog-image-half {
        width: 100%;
        max-width: 100%;
        max-height: none;
    }
}

@media (max-width: 980px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 720px) {
    .blog-article {
        padding: 26px 22px 32px;
    }

    .sidebar-search-form {
        grid-template-columns: 1fr;
    }

    .sidebar-search-form button {
        width: 100%;
    }
}

.post-content h2,
.post-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.post-content p {
    font-size: 1.2rem;
    line-height: 1.75;
    margin-bottom: 24px;
}

.post-divider {
    border: none;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    margin: 26px 0 34px;
}

.post-content .terminal-block {
    margin: 18px 0 26px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: #0f172a;
    color: #e2e8f0;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
    overflow: hidden;
}

.post-content .terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.post-content .terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.post-content .terminal-dot--red {
    background: #ef4444;
}

.post-content .terminal-dot--yellow {
    background: #f59e0b;
}

.post-content .terminal-dot--green {
    background: #10b981;
}

.post-content .terminal-title {
    margin-left: 6px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.post-content .terminal-block pre {
    margin: 0;
    padding: 14px 16px 16px;
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 1.1rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.post-content .terminal-block code {
    color: inherit;
    background: none;
    padding: 0;
}

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

.post-content ul {
    list-style: none;
    padding-left: 8px;
}

.post-content ul li {
    position: relative;
    padding-left: 28px;
}

.post-content ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #27619B;
    font-weight: 600;
}

.post-content li {
    margin-bottom: 12px;
    font-size: 1.2rem;
    line-height: 1.75;
}

.post-content table,
.post-content .post-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0 28px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.post-content table th,
.post-content table td,
.post-content .post-table th,
.post-content .post-table td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
}

.post-content table thead th,
.post-content .post-table thead th {
    background: rgba(15, 23, 42, 0.04);
    font-weight: 700;
}

.post-content table tbody tr:last-child td,
.post-content .post-table tbody tr:last-child td {
    border-bottom: none;
}

.post-content .post-callouts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 18px 0 26px;
}

.post-content .post-callout {
    border: none;
    background: rgba(39, 97, 155, 0.06);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.post-content .post-callout strong {
    font-size: 0.95rem;
}

.post-content .post-callout span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.post-content .post-cta-center {
    display: flex;
    justify-content: center;
    margin: 16px 0 6px;
}

.post-content .post-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 24px;
}

.post-content .post-chip-grid span {
    border: none;
    background: rgba(39, 97, 155, 0.08);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.post-content .post-split-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 16px 0 24px;
}

.post-content .post-split-card {
    background: rgba(15, 23, 42, 0.04);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.post-content .post-split-card strong {
    font-size: 0.95rem;
}

.post-content .post-split-card span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* VPN Card Styles (Duplicated per user request) */
.vpn-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 0;
    margin: 40px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.vpn-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(39, 97, 155, 0.15);
    border-color: #27619B;
}

.vpn-card-header {
    background: rgba(39, 97, 155, 0.05);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
}

.vpn-card-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: white;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vpn-card-title-section {
    flex: 1;
}

.vpn-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    line-height: 1.3;
}

.vpn-card h3 a {
    color: #27619B;
    text-decoration: none;
    transition: color 0.2s;
}

.vpn-card h3 a:hover {
    color: #1e4f80;
    text-decoration: underline;
}

.vpn-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.badge-audited {
    background: #e6fffa;
    color: #047857;
    border: 1px solid #10b981;
}

.badge-platform {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.badge-bitcoin {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #f59e0b;
}

.badge-freemium {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #8b5cf6;
}

.badge-firefox {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #f97316;
}

.badge-chrome {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #3b82f6;
}

.vpn-card-content {
    padding: 24px;
    color: var(--text-color);
}

.vpn-card-content p {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.vpn-card-content p:last-child {
    margin: 0;
}

.vpn-card-content strong {
    color: var(--text-color);
}

/* Dark Mode Overrides */
body.dark-mode .vpn-card {
    background: #2c3e50;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.dark-mode .vpn-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border-color: #63b3ed;
}

body.dark-mode .vpn-card-header {
    background: #1e2b3a;
    border-bottom: 1px solid #34495e;
}

body.dark-mode .vpn-card h3 a {
    color: #63b3ed;
}

body.dark-mode .vpn-card h3 a:hover {
    color: #90cdf4;
}

body.dark-mode .badge-audited {
    background: #065f46;
    color: #a7f3d0;
    border-color: #059669;
}

body.dark-mode .badge-platform {
    background: #374151;
    color: #e5e7eb;
    border-color: #4b5563;
}

/* Router Review Card Layout */
.router-review-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin: 40px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.router-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.router-title-block h3 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    color: var(--text-color);
}

.router-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.router-scores {
    display: flex;
    gap: 8px;
}

.score-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.score-green {
    background: #059669;
}

.score-yellow {
    background: #d97706;
}

.score-red {
    background: #dc2626;
}

.router-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
    padding: 16px;
    background: rgba(15, 23, 42, 0.03);
    border-radius: 8px;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.spec-value {
    font-weight: 500;
    color: var(--text-color);
}

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

.pros-list ul,
.cons-list ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.pros-list ul li,
.cons-list ul li {
    padding-left: 0;
}

.pros-list ul li::before,
.cons-list ul li::before {
    display: none;
}

.pros-list li {
    margin-bottom: 6px;
    color: var(--text-color);
}

.cons-list li {
    margin-bottom: 6px;
    color: var(--text-color);
}

.pros-title {
    color: #059669;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.cons-title {
    color: #dc2626;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.router-cta {
    margin-top: 24px;
    text-align: right;
}

.btn-price {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-price:hover {
    background: #1d4ed8;
    color: white;
    text-decoration: none;
}

@media (max-width: 640px) {
    .router-pros-cons {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode Adaptations */
body.dark-mode .router-specs-grid {
    background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .router-badge {
    background: #1e3a8a;
    color: #bfdbfe;
}



body.dark-mode .badge-bitcoin {
    background: #78350f;
    color: #fcd34d;
    border-color: #d97706;
}

body.dark-mode .badge-freemium {
    background: #4c1d95;
    color: #ddd6fe;
    border-color: #7c3aed;
}

body.dark-mode .badge-firefox {
    background: #7c2d12;
    color: #fdba74;
    border-color: #ea580c;
}

body.dark-mode .badge-chrome {
    background: #1e3a8a;
    color: #bfdbfe;
    border-color: #2563eb;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .vpn-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
    }

    .vpn-card-logo {
        width: 48px;
        height: 48px;
    }

    .vpn-card h3 {
        font-size: 1.1rem;
    }

    .vpn-card-content {
        padding: 16px;
    }
}

/* Arrow bullet theme overrides */
body.dark-mode .post-content ul li::before {
    color: #63b3ed;
}

body.developer-mode .post-content ul li::before {
    color: #63b3ed;
}

body.hacker-mode .post-content ul li::before {
    color: #00ff00;
}

/* Prevent visited links from changing color for specific class */
a.no-visited:visited {
    color: #27619B;
    /* Original link color */
}

a.no-visited:hover {
    color: #1e4f80;
}

body.dark-mode a.no-visited:visited {
    color: #63b3ed;
}

body.dark-mode a.no-visited:hover {
    color: #90cdf4;
}