/* Posts Page Styles */

.posts-page {
    padding: 2rem 0;
    min-height: 70vh;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.post-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.post-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 2rem;
}

.post-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Single Post Page */
.post-single {
    padding: 3rem 0;
}

.post-full {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-text);
    margin-bottom: 2rem;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-footer {
    border-top: 2px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-full {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-featured-image {
        height: 250px;
    }
    
    .post-body {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .post-card {
        border-radius: 16px;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .post-content h2 {
        font-size: 1.25rem;
    }
    
    .post-full {
        padding: 1.5rem 1rem;
    }
    
    .post-header h1 {
        font-size: 1.75rem;
    }
    
    .post-featured-image {
        height: 200px;
        border-radius: 12px;
    }
}
