/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    color: #1a202c;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #2d3748;
}

/* Main Content */
.main {
    flex: 1;
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.5rem;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #718096;
    font-size: 0.9rem;
}

/* Posts Grid */
.posts h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1a202c;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category {
    background: #e2e8f0;
    color: #4a5568;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-title {
    margin-bottom: 1rem;
}

.post-title a {
    text-decoration: none;
    color: #1a202c;
    font-size: 1.25rem;
    font-weight: bold;
}

.post-title a:hover {
    color: #667eea;
}

.post-excerpt {
    color: #718096;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #718096;
}

.author-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
}

.read-more {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.read-more:hover {
    background: #5a67d8;
}

/* Single Post */
.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.post {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-header {
    padding: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1a202c;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #1a202c;
}

.post-date {
    font-size: 0.9rem;
    color: #718096;
}

.post-content {
    padding: 2rem;
    line-height: 1.8;
}

.post-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: #1a202c;
}

.post-content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem 0;
    color: #1a202c;
}

.post-content p {
    margin-bottom: 1rem;
    color: #4a5568;
}

.post-content ul, .post-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.post-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.post-content a:hover {
    border-bottom-color: #667eea;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.post-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #718096;
}

/* Info Sections */
.info, .about-section, .tech-info {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.info h3, .about-section h2, .tech-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a202c;
}

.features, .tech-info ul {
    list-style: none;
}

.features li, .tech-info li {
    margin-bottom: 0.75rem;
    color: #4a5568;
}

.architecture {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 0.25rem;
    margin: 1rem 0;
}

.architecture pre {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #2d3748;
    overflow-x: auto;
}

.comparison {
    margin: 1.5rem 0;
}

.comparison h4 {
    margin: 1rem 0 0.5rem 0;
    color: #1a202c;
}

.comparison ul {
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.footer h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.footer p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tech {
    background: #2d3748;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 0 !important;
}

/* CTA */
.cta {
    background: #e6fffa;
    border: 1px solid #81e6d9;
    border-left-width: 4px;
    border-left-color: #38b2ac;
    padding: 1.5rem;
    border-radius: 0.25rem;
}

.cta h3 {
    color: #234e52;
    margin-bottom: 0.75rem;
}

.cta p {
    color: #285e61;
    margin: 0;
}

/* No Posts */
.no-posts {
    text-align: center;
    color: #718096;
    font-style: italic;
    grid-column: 1 / -1;
    padding: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tech-stack {
        flex-direction: column;
        align-items: center;
    }
}
