/* Blog Page Styles */

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Blog Header */
.blog-header {
    padding: 4rem 0 2rem;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.back-link:hover {
    gap: 0.75rem;
}

.blog-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.blog-meta span {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category {
    background: var(--primary-color);
    color: white !important;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.author-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.author-info > div {
    text-align: left;
}

.author-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.author-role {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Table of Contents */
.toc-section {
    padding: 2rem 0;
}

.toc-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
}

.toc-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.toc-card ul {
    list-style: none;
}

.toc-card ul li {
    margin-bottom: 0.75rem;
}

.toc-card ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-card ul li a::before {
    content: '→';
    color: var(--primary-color);
}

.toc-card ul li a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

/* Blog Content */
.blog-content {
    padding: 3rem 0;
}

.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    scroll-margin-top: 100px;
}

.content-section h2 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.3rem !important;
    font-weight: 500;
    color: var(--text-primary) !important;
}

.highlight {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
}

/* Info Box */
.info-box {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-box i {
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-box strong {
    color: var(--primary-color);
}

/* Hardware Showcase */
.hardware-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

@media (max-width: 900px) {
    .hardware-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hardware-showcase {
        grid-template-columns: 1fr;
    }
}

.hardware-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.hardware-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.hardware-item img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.hardware-item h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.hardware-item p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Comparison Table */
.comparison-table {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
}

.comparison-table thead {
    background: rgba(99, 102, 241, 0.2);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.comparison-table th {
    font-weight: 600;
    color: var(--primary-color);
}

.comparison-table td {
    color: var(--text-secondary);
}

.comparison-table tr.old-cpu {
    background: rgba(239, 68, 68, 0.05);
}

.comparison-table tr.mid-cpu {
    background: rgba(245, 158, 11, 0.05);
}

.comparison-table tr.our-cpu {
    background: rgba(16, 185, 129, 0.05);
}

.comparison-table tr.our-cpu td {
    color: var(--success-color);
    font-weight: 600;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-box {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-box h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.feature-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Performance List */
.performance-list {
    list-style: none;
    margin: 2rem 0;
}

.performance-list li {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.performance-list li:hover {
    transform: translateX(5px);
    border-left-color: var(--secondary-color);
}

.performance-list strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    margin: 3rem 0;
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-box .btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* Blog Footer Info */
.blog-footer-info {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    color: var(--text-secondary);
}

.blog-footer-info p {
    margin-bottom: 0.5rem;
}

.tag {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

.coming-soon {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.coming-soon p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-subtitle {
        font-size: 1.1rem;
    }

    .blog-meta {
        gap: 1rem;
    }

    .hardware-showcase {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        font-size: 0.75rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 1rem -1rem;
        padding: 0 1rem;
    }

    .comparison-table table {
        min-width: 600px;
        width: 100%;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.6rem 0.5rem;
        word-break: break-word;
    }

    .comparison-table th {
        font-size: 0.7rem;
        font-weight: 700;
        white-space: nowrap;
    }

    .comparison-table td {
        font-size: 0.75rem;
    }

    .cta-box {
        padding: 2rem 1rem;
    }

    .cta-box h3 {
        font-size: 1.5rem;
    }
}

/* Mobile/Desktop Toggle */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Professional Mobile Table */
.mobile-table-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    margin: 2rem 0;
}

.mobile-table-row {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 1fr 0.7fr 0.6fr;
    border-bottom: 1px solid var(--glass-border);
    align-items: center;
}

.mobile-table-row:last-child {
    border-bottom: none;
}

.mobile-table-cell {
    padding: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    overflow: visible;
    white-space: normal;
    word-break: break-word;
}

/* Header Row */
.header-row {
    background: rgba(99, 102, 241, 0.15);
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.header-row .mobile-table-cell.header {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Old CPUs Row */
.old-row {
    background: rgba(239, 68, 68, 0.05);
    border-left: 4px solid #ef4444;
}

.old-row .mobile-table-cell {
    color: rgba(255, 255, 255, 0.7);
}

/* Mid CPU Row */
.mid-row {
    background: rgba(245, 158, 11, 0.05);
    border-left: 4px solid #fbbf24;
}

.mid-row .mobile-table-cell {
    color: rgba(255, 255, 255, 0.8);
}

/* Our CPUs Row */
.our-row {
    background: rgba(16, 185, 129, 0.08);
    border-left: 4px solid #10b981;
}

.our-row .mobile-table-cell {
    color: #10b981;
    font-weight: 600;
}

.highlight-row {
    background: rgba(16, 185, 129, 0.12);
}

/* Extra Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .blog-header h1 {
        font-size: 1.5rem;
    }

    .blog-subtitle {
        font-size: 0.95rem;
    }

    /* Mobile Table Responsive */
    .mobile-table-wrapper {
        margin: 1.5rem -1rem;
        border-radius: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-table-row {
        grid-template-columns: 1.2fr 0.8fr 0.9fr 0.6fr 0.5fr;
        min-width: 100%;
    }

    .mobile-table-cell {
        padding: 0.75rem 0.6rem;
        font-size: 0.75rem;
        word-break: break-word;
        white-space: normal;
    }

    .header-row .mobile-table-cell.header {
        font-size: 0.7rem;
        padding: 0.7rem 0.5rem;
        font-weight: 700;
    }

    /* Improve readability on very small screens */
    .old-row,
    .mid-row,
    .our-row {
        border-left-width: 3px;
    }
}
