/* Blog Styles - Matching existing portfolio aesthetic */

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
    /* Ensure proper centering */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-header .section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Override conflicting positioning from projects.css */
    display: block !important;
    left: auto !important;
    transform: none !important;
    text-align: center !important;
}

.blog-intro {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

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

/* Blog Cards */
.blog-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px var(--shadow-color);
    transition: all 0.3s ease;
    border: 1px solid rgba(108, 99, 255, 0.1);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-color);
    border-color: var(--primary-color);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.blog-card:hover::before {
    transform: scaleX(1);
}

/* Category Tags */
.card-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.card-category.game-dev {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.card-category.thoughts {
    background: rgba(255, 107, 107, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.card-category.life-updates {
    background: rgba(78, 205, 196, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(78, 205, 196, 0.3);
}

/* Card Content */
.card-content {
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-title-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title-link:hover {
    color: var(--primary-color);
}

.card-excerpt {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Card Meta */
.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.meta-date,
.meta-read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-date i,
.meta-read-time i {
    color: var(--primary-color);
}

/* Card Footer */
.card-footer {
    border-top: 1px solid rgba(108, 99, 255, 0.1);
    padding-top: 1rem;
}

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

.read-more-btn:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 3rem 0;
}

.load-more-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Post Count */
.post-count {
    text-align: center;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
    opacity: 0.7;
}

.no-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Individual Blog Post Styles */
.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.blog-post {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px var(--shadow-color);
    animation: fadeInUp 0.8s ease-out;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(108, 99, 255, 0.1);
}

.post-category {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-color);
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 3rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 2rem 0 1rem 0;
    color: var(--text-color);
}

.post-content h1 { font-size: 2rem; }
.post-content h2 { font-size: 1.8rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.3rem; }

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

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    opacity: 0.8;
}

.post-content code {
    background: rgba(108, 99, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
}

.post-content pre {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.post-content pre code {
    background: none;
    padding: 0;
    color: var(--text-color);
}

.post-footer {
    border-top: 2px solid rgba(108, 99, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-to-blog:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

.back-to-blog i {
    transition: transform 0.3s ease;
}

.back-to-blog:hover i {
    transform: translateX(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-container {
        padding: 1rem;
    }
    
    .blog-header .section-title {
        font-size: 2.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card {
        padding: 1rem;
    }
    
    .category-filter {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .blog-post {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Dark Theme Adjustments */
[data-theme="dark"] .blog-card {
    border-color: rgba(139, 127, 255, 0.2);
}

[data-theme="dark"] .post-content pre {
    background: var(--dark-color);
    border-color: rgba(139, 127, 255, 0.2);
}

[data-theme="dark"] .card-category.game-dev {
    background: rgba(139, 127, 255, 0.15);
    border-color: rgba(139, 127, 255, 0.4);
}

[data-theme="dark"] .card-category.thoughts {
    background: rgba(255, 133, 133, 0.15);
    border-color: rgba(255, 133, 133, 0.4);
}

[data-theme="dark] .card-category.life-updates {
    background: rgba(110, 231, 222, 0.15);
    border-color: rgba(110, 231, 222, 0.4);
} 