/* Blog Post Page - Preview2 Theme */

/* Header Logo Section Fix */
.logo-section a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-section .site-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.logo-section h1 {
    font-size: 20px;
    margin: 0;
    color: white;
    font-weight: 700;
}

body.dark-mode .logo-section h1 {
    color: white;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    font-size: 0.9em;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumbs span {
    color: #999;
}

/* Post Layout - Two Column Grid */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin: 20px 0;
}

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

/* Sidebar */
.sidebar {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    color: #2c3e50;
}

.category-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-link {
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 5px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s;
    display: block;
}

.category-link:hover {
    background: #e9ecef;
    transform: translateX(5px);
    color: #007BFF;
}

.cta-widget {
    background: linear-gradient(135deg, #007BFF, #0056B3);
    color: white;
}

.cta-widget h3 {
    color: white;
}

.cta-widget p {
    margin: 10px 0 15px;
    line-height: 1.6;
}

.cta-widget .btn-primary {
    display: inline-block;
    background: white;
    color: #007BFF;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.cta-widget .btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Post Article */
.post-article {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Post Header */
.post-header {
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 40px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.post-category a {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #007BFF, #0056B3);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-category a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.post-meta .date,
.post-meta .reading-time,
.post-meta .views {
    font-size: 0.9em;
    color: #666;
}

.last-updated-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #856404;
}

.post-header h1 {
    font-size: 2.5em;
    margin: 20px 0;
    line-height: 1.2;
    color: #2c3e50;
}

.post-excerpt {
    font-size: 1.15em;
    line-height: 1.7;
    color: #555;
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #007BFF;
    border-radius: 4px;
    margin: 20px 0;
}

.author-info {
    font-size: 0.95em;
    color: #666;
    font-style: italic;
}

/* Table of Contents */
.toc-container {
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    border-radius: 5px;
    padding: 16px 20px;
    margin: 30px 0;
    width: fit-content;
    max-width: 100%;
}

.toc-container a {
    color: #2c3e50 !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

.toc-container a:hover {
    color: #007BFF !important;
    text-decoration: underline !important;
    border-bottom: none !important;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.toc-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #202122;
}

.toc-toggle {
    background: #f1f2f3;
    border: 1px solid #a2a9b1;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.85em;
    color: #202122;
    transition: background 0.2s;
}

.toc-toggle:hover {
    background: #e8eaed;
}

.toc-list {
    list-style: decimal;
    padding-left: 20px;
    margin: 0;
}

.toc-list .toc-list {
    list-style: lower-alpha;
    margin-top: 5px;
}

.toc-item {
    margin: 6px 0;
    line-height: 1.5;
}

.toc-item a {
    color: #2c3e50 !important;
    text-decoration: none !important;
    font-weight: 500;
}

/* Post Content */
.post-content {
    font-size: 1.05em;
    line-height: 1.8;
    color: #333;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 40px 0 20px;
    color: #2c3e50;
}

.post-content h2 {
    font-size: 1.8em;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.post-content h3 {
    font-size: 1.5em;
}

.post-content h4 {
    font-size: 1.2em;
}

.post-content p {
    margin: 20px 0;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content li {
    margin: 10px 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-content a {
    color: #007BFF;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.post-content a:hover {
    border-bottom-color: #007BFF;
}

.post-content blockquote {
    border-left: 4px solid #007BFF;
    background: #f8f9fa;
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

.post-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

.post-content code {
    background: #f4f4f4;
    color: #c7254e;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

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

/* Author Bio Section */
.author-bio-section {
    margin: 50px 0;
    padding: 30px 0;
    border-top: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
}

.author-bio-card {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #007BFF;
}

.author-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007BFF, #0056B3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
}

.author-bio-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.5em;
    color: #2c3e50;
}

.author-bio-text {
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.author-expertise {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 5px;
    font-size: 0.95em;
    margin-bottom: 15px;
    color: #495057;
}

.author-expertise strong {
    color: #2c3e50;
}

.author-social {
    display: flex;
    gap: 15px;
}

.author-social-link {
    display: inline-block;
    padding: 8px 16px;
    background: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    transition: all 0.3s;
}

.author-social-link:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Post Footer */
.post-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.post-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-back,
.btn-category {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-back {
    background: #6c757d;
    color: white;
}

.btn-back:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-category {
    background: #007BFF;
    color: white;
}

.btn-category:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.share-buttons h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.share-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    color: white;
    font-size: 0.9em;
    transition: all 0.3s;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.twitter:hover {
    background: #0d8bd9;
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.facebook:hover {
    background: #0a65d9;
}

.share-btn.linkedin {
    background: #0077B5;
}

.share-btn.linkedin:hover {
    background: #005885;
}

/* Related Posts Section */
.related-posts {
    margin: 60px 0 40px;
}

.related-posts h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: white !important;
    text-align: center;
}

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

.related-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    color: #333 !important;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.related-card .post-meta {
    margin-bottom: 15px;
}

.related-card .category {
    background: #007BFF;
    color: white !important;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
}

.related-card .date {
    font-size: 0.85em;
    color: #666 !important;
}

.related-card h3 {
    margin: 15px 0;
    font-size: 1.3em;
    color: #2c3e50 !important;
}

.related-card h3 a {
    color: #2c3e50 !important;
    text-decoration: none;
    transition: color 0.3s;
}

.related-card h3 a:hover {
    color: #007BFF;
}

.related-card p {
    color: #666 !important;
    line-height: 1.6;
    margin: 15px 0;
}

.related-card .read-more {
    color: #007BFF !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.related-card .read-more:hover {
    color: #0056b3 !important;
}

/* Post CTA Section */
.post-cta {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    margin: 60px 0 40px;
    color: white;
}

.cta-content h3 {
    font-size: 2.2em;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.15em;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: #1E3A8A;
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

/* Surfshark VPN Banner */
.ad-card {
    margin: 30px 0;
    width: 100%;
    max-width: 100%;
}

.surfshark-banner {
    background: linear-gradient(135deg, #0b3c49, #0f766e);
    color: #ffffff;
    border-radius: 14px;
    padding: 32px;
    max-width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
}

.surfshark-left {
    flex: 1 1 350px;
}

.surfshark-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.surfshark-title span {
    color: #5eead4;
}

.surfshark-desc {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 18px;
    opacity: 0.95;
}

.surfshark-points {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.surfshark-points li {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.5;
}

.surfshark-points li::before {
    content: "✔";
    margin-right: 10px;
    color: #5eead4;
    font-weight: bold;
}

.surfshark-cta {
    display: inline-block;
    background: #5eead4;
    color: #064e3b;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.surfshark-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(94, 234, 212, 0.4);
}

.surfshark-right {
    flex: 1 1 280px;
    text-align: center;
}

.surfshark-badge {
    background: rgba(255, 255, 255, 0.12);
    padding: 20px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.6;
}

.surfshark-badge strong {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
    color: #5eead4;
}

/* Dark Mode Styles */
body.dark-mode .breadcrumbs {
    color: #a0a0a0;
}

body.dark-mode .breadcrumbs a {
    color: #66b3ff;
}

body.dark-mode .breadcrumbs span {
    color: #666;
}

body.dark-mode .sidebar-widget {
    background: #1e293b;
    color: #e2e8f0;
}

body.dark-mode .sidebar-widget h3 {
    color: #f1f5f9;
}

body.dark-mode .category-link {
    background: #0f172a;
    color: #e2e8f0;
}

body.dark-mode .category-link:hover {
    background: #1e293b;
    color: #66b3ff;
}

body.dark-mode .post-article {
    background: #1e293b;
    color: #e2e8f0;
}

body.dark-mode .post-header {
    border-bottom-color: #334155;
}

body.dark-mode .post-header h1 {
    color: #f1f5f9;
}

body.dark-mode .post-excerpt {
    background: #0f172a;
    color: #cbd5e1;
}

body.dark-mode .last-updated-notice {
    background: #3a3000;
    color: #ffc107;
    border-left-color: #ffc107;
}

body.dark-mode .toc-container {
    background: #0f172a;
    border-color: #334155;
}

body.dark-mode .toc-title {
    color: #f1f5f9;
}

body.dark-mode .toc-toggle {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .toc-toggle:hover {
    background: #334155;
}

body.dark-mode .toc-item a {
    color: #66b3ff;
}

body.dark-mode .post-content {
    color: #e2e8f0;
}

body.dark-mode .post-content h2,
body.dark-mode .post-content h3,
body.dark-mode .post-content h4 {
    color: #f1f5f9;
}

body.dark-mode .post-content h2 {
    border-bottom-color: #334155;
}

body.dark-mode .post-content blockquote {
    background: #0f172a;
    color: #cbd5e1;
}

body.dark-mode .post-content code {
    background: #0f172a;
    color: #f472b6;
}

body.dark-mode .author-bio-section {
    border-top-color: #334155;
    border-bottom-color: #334155;
}

body.dark-mode .author-bio-content h3 {
    color: #f1f5f9;
}

body.dark-mode .author-bio-text {
    color: #cbd5e1;
}

body.dark-mode .author-expertise {
    background: #0f172a;
    color: #cbd5e1;
}

body.dark-mode .author-expertise strong {
    color: #f1f5f9;
}

body.dark-mode .post-footer {
    border-top-color: #334155;
}

body.dark-mode .share-buttons h4 {
    color: #f1f5f9;
}

body.dark-mode .related-posts h2 {
    color: #f1f5f9 !important;
}

body.dark-mode .related-card {
    background: #1e293b;
}

body.dark-mode .related-card h3 a {
    color: #f1f5f9 !important;
}

body.dark-mode .related-card h3 a:hover {
    color: #66b3ff;
}

body.dark-mode .related-card p {
    color: #cbd5e1 !important;
}

body.dark-mode .surfshark-banner {
    background: linear-gradient(135deg, #0b3c49, #0f766e);
}

/* Responsive Design */
@media (max-width: 968px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sidebar {
        position: static;
    }

    .post-article {
        padding: 30px 20px;
    }

    .post-header h1 {
        font-size: 2em;
    }

    .author-bio-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-avatar-img,
    .author-icon {
        width: 80px;
        height: 80px;
    }

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

    .post-cta {
        padding: 40px 20px;
    }

    .cta-content h3 {
        font-size: 1.8em;
    }

    .toc-container {
        width: 100%;
    }

    .surfshark-banner {
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        text-align: center;
    }

    .surfshark-left,
    .surfshark-right {
        flex: 1 1 100%;
    }

    .surfshark-title {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .post-article {
        padding: 20px 15px;
    }

    .post-header h1 {
        font-size: 1.6em;
    }

    .post-meta {
        font-size: 0.85em;
        gap: 10px;
    }

    .post-content {
        font-size: 1em;
    }

    .post-actions {
        flex-direction: column;
    }

    .btn-back,
    .btn-category {
        width: 100%;
        text-align: center;
    }

    .share-links {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        text-align: center;
    }

    .author-social {
        flex-direction: column;
        width: 100%;
    }

    .author-social-link {
        width: 100%;
        text-align: center;
    }

    .surfshark-banner {
        padding: 20px;
        gap: 16px;
    }

    .surfshark-title {
        font-size: 20px;
    }
}
