/* Blog Styles - Matches IP Tool Design */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #1f2937;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,.1);
    overflow: hidden;
    min-height: calc(100vh - 40px);
}

/* Header */
.hero {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: #fff;
    padding: 60px 40px;
    text-align: center;
}

.hero h1 {
    margin: 0 0 16px;
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

.subtitle {
    opacity: 0.9;
    font-size: 1.2rem;
    margin-bottom: 32px;
}

.nav-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.2);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    background: rgba(255,255,255,.3);
    transform: translateY(-1px);
}

/* Articles Grid */
.articles-grid {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.article-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 16px rgba(0,0,0,.06);
    transition: all 0.3s ease;
    position: relative;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,.12);
}

.article-card.featured {
    border: 2px solid #3498db;
    background: linear-gradient(135deg, #f8fbff, #fff);
}

.article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.article-card h2 {
    margin: 0 0 16px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.article-card h2 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card h2 a:hover {
    color: #3498db;
}

.article-card p {
    color: #4b5563;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tag {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.featured-tag {
    background: #3498db;
    color: #fff;
}

/* Article Content Styles */
.article-content {
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 2px solid #eef2f7;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 16px;
    color: #1f2937;
    line-height: 1.2;
}

.article-meta-full {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.article-body h1 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: #1f2937;
}

.article-body h2 {
    font-size: 1.6rem;
    margin: 32px 0 16px;
    color: #1f2937;
}

.article-body h3 {
    font-size: 1.3rem;
    margin: 24px 0 12px;
    color: #374151;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body ul, .article-body ol {
    margin: 20px 0;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body code {
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: ui-monospace, Consolas, Monaco, monospace;
    font-size: 0.9em;
    color: #e11d48;
}

.article-body pre {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: #fafbfc;
    border-radius: 8px;
    overflow: hidden;
}

.article-body th,
.article-body td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.article-body th {
    background: #f1f5f9;
    font-weight: 600;
    color: #374151;
}

.article-body tr:last-child td {
    border-bottom: none;
}

.article-navigation {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #3498db;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

/* Footer */
.footer {
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
    padding: 40px;
    text-align: center;
    color: #6b7280;
}

.footer-content p {
    margin: 8px 0;
}

.footer a {
    color: #3498db;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 12px;
    }
    
    .hero {
        padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .articles-grid {
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .article-card {
        padding: 24px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta-full {
        flex-direction: column;
        gap: 8px;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
}
