/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f3f4f6;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #111827;
}

/* Header styles */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #111827;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #111827;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero section */
.hero {
    padding: 3rem 0 2rem;
    text-align: left;
    color: #111827;
}

.hero-content h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hero-content p {
    font-size: 1rem;
    max-width: 620px;
    margin: 0;
    color: #4b5563;
}

/* Articles grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0 3rem;
}

.post-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e7eb;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    border-color: #d1d5db;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category {
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.category.security {
    background: #fee2e2;
    color: #b91c1c;
}

.category.admin {
    background: #d1fae5;
    color: #047857;
}

.category.tools {
    background: #e0f2fe;
    color: #0369a1;
}

.date {
    color: #6b7280;
    font-size: 0.85rem;
}

.post-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #111827;
}

.post-card p {
    color: #4b5563;
    margin-bottom: 1.1rem;
    font-size: 0.97rem;
}

/* Code snippets */
.code-snippet {
    background: #0f172a;
    border-radius: 8px;
    overflow: hidden;
    margin: 0.5rem 0 0;
    box-shadow: none;
}

.code-snippet pre {
    margin: 0;
    padding: 1.1rem 1.25rem;
    overflow-x: auto;
}

.code-snippet code {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Tools section */
.tools-section {
    background: transparent;
    padding: 2.5rem 0 3rem;
    margin: 0 0 1rem;
}

.tools-section h2 {
    text-align: left;
    color: #111827;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e7eb;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    border-color: #d1d5db;
}

.tool-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.tool-card p {
    color: #4b5563;
    margin-bottom: 1.1rem;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: transparent;
    color: #6b7280;
    padding: 2rem 0 2.5rem;
    margin-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.85rem;
    opacity: 0.8;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero-content h2 {
        font-size: 1.7rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}