/* Blog styles for GODEN AI */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Header & Navigation */
header {
    background: #000;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    font-weight: bold;
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, 0.1);
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Blog header */
.blog-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #000;
}

.blog-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Article styles */
article {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 3rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.article-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #000;
}

.article-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem 0;
    color: #000;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
    color: #333;
}

.article-content em {
    font-style: italic;
    color: #666;
}

.article-content strong {
    font-weight: 600;
}

/* Article footer */
.article-footer {
    border-top: 1px solid #eee;
    padding-top: 2rem;
    margin-top: 3rem;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tag {
    background: #f0f0f0;
    color: #666;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    text-decoration: none;
}

.article-author p {
    color: #666;
    font-style: italic;
}

/* Blog grid */
.blog-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

.blog-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blog-card.featured {
    border: 2px solid #000;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.blog-card h2 a {
    color: #000;
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: #666;
}

.blog-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.read-more:hover {
    border-bottom-color: #000;
}

/* Blog archive */
.blog-archive {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.blog-archive h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.archive-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #000;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.archive-section ul {
    list-style: none;
}

.archive-section li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.archive-section li:last-child {
    border-bottom: none;
}

.archive-section a {
    color: #333;
    text-decoration: none;
    flex: 1;
}

.archive-section a:hover {
    color: #000;
}

.archive-section time {
    font-size: 0.9rem;
    color: #666;
    margin-left: 1rem;
}

/* Footer */
footer {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid #eee;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
}

.footer-links a:hover {
    color: #000;
}

/* Responsive design */
@media (max-width: 768px) {
    nav {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .archive-grid {
        grid-template-columns: 1fr;
    }
    
    .archive-section li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .archive-section time {
        margin-left: 0;
    }
}

/* Reading time and meta styling */
.reading-time::before {
    content: "📖 ";
}

time::before {
    content: "📅 ";
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .article-header h1,
    .blog-header h1,
    .blog-card h2 a {
        color: #fff;
    }
    
    .blog-card {
        background: #2a2a2a;
        border-color: #444;
    }
    
    .blog-card.featured {
        background: linear-gradient(135deg, #2a2a2a 0%, #333 100%);
        border-color: #fff;
    }
    
    footer {
        background: #2a2a2a;
        border-top-color: #444;
    }
}