/* Blog Specific Styles */
.blog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 3rem;
}

.blog-nav {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.blog-nav .nav-link {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.blog-nav .nav-link:hover {
    opacity: 1;
}

.blog-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.blog-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.blog-main {
    min-height: calc(100vh - 200px);
    background: #f8f9fa;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

/* Blog Posts */
.blog-post {
    background: white;
    padding: 3rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.post-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.post-title {
    font-size: 2.2rem;
    color: #2D3436;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.post-content {
    color: #444;
    line-height: 1.8;
    font-size: 1.1rem;
}

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

.post-content pre {
    background: #2D3436;
    color: #A6E22E;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.9rem;
}

.post-content code {
    font-family: 'Courier New', monospace;
}

.post-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

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

.blog-svg {
    text-align: center;
    margin: 2rem 0;
}

.blog-svg svg {
    max-width: 300px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.1));
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2D3436;
}

.sidebar-widget p {
    color: #666;
    line-height: 1.6;
}

.sidebar-dog {
    width: 100%;
    margin: 1rem 0;
}

.sidebar-dog .tail {
    animation: wagTail 1s ease-in-out infinite;
}

.topic-list {
    list-style: none;
    padding: 0;
}

.topic-list li {
    padding: 0.5rem 0;
    color: #666;
    border-bottom: 1px solid #eee;
    transition: color 0.3s;
}

.topic-list li:hover {
    color: var(--primary-color);
}

.topic-list li:last-child {
    border-bottom: none;
}

/* Stats Widget */
.stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Blog Footer */
.blog-footer {
    background: #2D3436;
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-top: 5rem;
}

.blog-footer p {
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

/* Reading Experience Enhancements */
.post-content {
    font-family: Georgia, 'Times New Roman', serif;
}

.post-content::first-letter {
    font-size: 4rem;
    font-weight: bold;
    float: left;
    line-height: 1;
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-title {
        font-size: 2rem;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .blog-post {
        padding: 2rem;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
}

/* Animation for blog elements */
.blog-post {
    animation: fadeInUp 0.8s ease-out;
}

.blog-post:nth-child(2) {
    animation-delay: 0.1s;
}

.blog-post:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}