/* Blog Styles - Matches Unseen Networks Design */
:root {
    --primary: #3b82f6;
    --primary-glow: #60a5fa;
    --secondary: #0a0e27;
    --accent: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --text-light: #94a3b8;
    --bg-dark: #0f0f0f;
    --bg-card: rgba(20, 20, 30, 0.7);
    --border: rgba(59, 130, 246, 0.15);
    --gradient-1: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --gradient-2: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Blog Container */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Blog Header */
.blog-header {
    text-align: center;
    padding: 100px 0 60px;
    background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.02) 50%, transparent 100%);
}

.blog-title {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search and Filter */
.blog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-filter {
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-filter:hover, .tag-filter.active {
    background: var(--primary);
    color: white;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

/* Article Card */
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.article-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.article-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
}

.article-content {
    padding: 30px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-date {
    color: var(--primary);
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-title a {
    color: inherit;
    text-decoration: none;
}

.article-title a:hover {
    color: var(--primary);
}

.article-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.article-tag {
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    color: var(--primary);
    font-size: 0.8rem;
    text-decoration: none;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 12px;
}

/* Article Page Styles */
.article-header {
    text-align: center;
    padding: 100px 0 60px;
    max-width: 800px;
    margin: 0 auto;
}

.article-header .article-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.article-header .article-meta {
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.article-body h2 {
    font-size: 2rem;
    color: white;
    margin: 40px 0 20px;
    font-weight: 700;
}

.article-body h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 30px 0 15px;
    font-weight: 600;
}

.article-body p {
    margin-bottom: 20px;
}

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

.article-body li {
    margin-bottom: 10px;
}

.article-body blockquote {
    padding: 20px;
    background: rgba(59, 130, 246, 0.05);
    border-left: 4px solid var(--primary);
    margin: 30px 0;
    font-style: italic;
}

.article-body code {
    background: rgba(20, 20, 30, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary);
}

.article-body pre {
    background: rgba(20, 20, 30, 0.9);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Social Sharing */
.social-share {
    text-align: center;
    margin: 60px 0;
    padding: 30px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
}

.social-share h3 {
    margin-bottom: 20px;
    color: white;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.facebook { background: #1877f2; }

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Related Articles */
.related-articles {
    margin: 80px 0;
}

.related-articles h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 60px 0;
}

.page-btn {
    padding: 10px 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-btn:hover, .page-btn.active {
    background: var(--primary);
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2.5rem;
    }

    .blog-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: none;
    }

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

    .article-header .article-title {
        font-size: 2rem;
    }

    .article-header .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .share-buttons {
        justify-content: stretch;
    }

    .share-btn {
        flex: 1;
        text-align: center;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(59, 130, 246, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}