/* Blog Specific Styles */

/* Blog Hero Section */
.blog-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.blog-hero-content h1 {
    font-family: var(--font-secondary);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.blog-hero-content p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.blog-search {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    background: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: var(--shadow-xl);
}

.blog-search input {
    flex: 1;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 50px;
    outline: none;
}

.blog-search button {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.blog-search button:hover {
    transform: scale(1.05);
}

/* Blog Layout */
.blog-content {
    padding: 60px 0;
    background: var(--gray-50);
}

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

/* Featured Post */
.featured-post {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
}

.featured-post .post-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.featured-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.featured-post .post-content {
    padding: 2.5rem;
}

.featured-post .post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.featured-post h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.featured-post h2 a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-post h2 a:hover {
    color: var(--primary);
}

.featured-post .post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author strong {
    display: block;
    color: var(--gray-900);
    font-size: 0.95rem;
}

.post-author span {
    display: block;
    color: var(--gray-600);
    font-size: 0.85rem;
}

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

.blog-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.blog-post-card .post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-post-card .post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-post-card .post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.blog-post-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-post-card h3 a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-card h3 a:hover {
    color: var(--primary);
}

.blog-post-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

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

.read-more:hover {
    gap: 0.75rem;
}

/* Post Meta */
.post-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-category {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.post-date,
.post-read-time,
.post-author {
    color: var(--gray-600);
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 10px 20px;
    border: 2px solid var(--gray-300);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray-700);
}

.page-number:hover {
    background: var(--gray-100);
}

.page-number.active {
    background: var(--primary);
    color: white;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    font-family: var(--font-secondary);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

/* Category List */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.75rem;
}

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--gray-700);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--primary);
}

.category-list a i {
    color: var(--primary);
    font-size: 0.75rem;
}

.category-list a span {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Popular Posts */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-post {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.popular-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.popular-post h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.popular-post h4 a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-post h4 a:hover {
    color: var(--primary);
}

.popular-post .post-date {
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* Newsletter Widget */
.newsletter-widget {
    background: var(--gradient-primary);
    color: white;
}

.newsletter-widget h3,
.newsletter-widget p {
    color: white;
}

.newsletter-widget h3 {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    background: white;
    color: var(--primary);
}

.newsletter-form button:hover {
    background: var(--gray-100);
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary);
    color: white;
}

/* Blog Post Single Page */
.blog-post-header {
    padding: 100px 0 20px;
    background: var(--gray-50);
    margin-top: 70px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    color: var(--gray-400);
    font-size: 0.75rem;
}

.breadcrumb span {
    color: var(--gray-600);
}

.blog-post-single {
    padding: 40px 0;
    background: white;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.post-header {
    margin-bottom: 2rem;
}

.post-header h1 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
    line-height: 1.3;
    color: var(--gray-900);
}

.post-excerpt {
    font-size: 1.2rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.post-featured-image {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-body {
    max-width: 800px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-800);
}

.post-body h2 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--gray-900);
}

.post-body h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--gray-900);
}

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

.post-body .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 2rem;
}

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

.post-body li {
    margin-bottom: 0.25rem;
}

.post-body ul li p,
.post-body ol li p {
    margin-bottom: 0.25rem;
}

.post-cta {
    background: var(--gradient-primary);
    color: white;
    padding: 2.5rem;
    border-radius: 16px;
    margin: 3rem 0;
    text-align: center;
}

.post-cta h3 {
    color: white;
    margin-bottom: 1rem;
}

.post-cta p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
}

.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    margin: 2rem 0;
}

.post-share {
    padding: 2rem 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 2rem;
}

.post-share strong {
    display: block;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.twitter {
    background: #000000;
}

.share-btn.linkedin {
    background: #0077B5;
}

.share-btn.email {
    background: var(--gray-600);
}

.author-box {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: 12px;
    margin: 3rem 0;
}

.author-box .author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-avatar-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.author-title {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.author-info p {
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.author-social {
    display: flex;
    gap: 1rem;
}

.author-social a {
    color: var(--primary);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.author-social a:hover {
    transform: scale(1.2);
}

.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--gray-200);
}

.related-posts h3 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--gray-900);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-post {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.related-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-post > div {
    padding: 1.5rem;
}

.related-post h4 {
    font-size: 1.1rem;
    margin: 0.75rem 0 0.5rem;
    line-height: 1.4;
}

.related-post h4 a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post h4 a:hover {
    color: var(--primary);
}

.post-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-layout,
    .post-layout {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-hero-content h1 {
        font-size: 2rem;
    }

    .featured-post .post-image {
        height: 250px;
    }

    .featured-post h2 {
        font-size: 1.5rem;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    .post-body {
        font-size: 1rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }
}
