/* Blog-specific styles */

/* Blog Hero Section */
.blog-hero {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 140px 0 80px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.blog-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.blog-hero-content p {
    font-size: 1rem;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    font-family: 'Inter', sans-serif;
}

/* Blog Content Layout */
.blog-content {
    padding: 80px 0;
    background: var(--bg-primary);
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Blog Main Content */
.blog-main {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

/* Blog Filters */
.blog-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    background: transparent;
    color: #ff6b35;
    border-color: #ff6b35;
}

/* Blog Posts Grid */
.blog-posts {
    display: grid;
    gap: 40px;
}

.blog-post {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    background: transparent;
}

.blog-post:hover {
    border-color: #ff6b35;
}

/* Post Image */
.post-image {
    border-radius: 4px;
    overflow: hidden;
}

.post-placeholder {
    width: 100%;
    height: 140px;
    background: transparent;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.post-icon {
    font-size: 3rem;
    opacity: 0.5;
}

/* Post Content */
.post-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.post-category {
    background: transparent;
    color: #ff6b35;
    padding: 4px 12px;
    border: 1px solid #ff6b35;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
}

.post-content h2 {
    margin-bottom: 15px;
    line-height: 1.3;
    font-size: 1.3rem;
}

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

.post-content h2 a:hover {
    color: #ff6b35;
}

.post-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.read-time {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
}

.read-more {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.read-more:hover {
    color: var(--text-primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.pagination-btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.pagination-btn:not(:disabled):hover {
    background: transparent;
    color: #ff6b35;
    border-color: #ff6b35;
}

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

.pagination-info {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: transparent;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.sidebar-widget h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-widget p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-form input {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #ff6b35;
}

.newsletter-form .btn-primary {
    background: #ff6b35;
    color: var(--black);
    padding: 12px;
    border: 1px solid #ff6b35;
    border-radius: 4px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.newsletter-form .btn-primary:hover {
    background: transparent;
    color: #ff6b35;
}

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

.popular-post {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

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

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

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

.popular-post h4 a:hover {
    color: #ff6b35;
}

.popular-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
}

/* Category List */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.category-item:hover {
    color: #ff6b35;
}

.category-count {
    background: transparent;
    color: var(--text-secondary);
    padding: 2px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 400;
}

/* CTA Widget */
.cta-widget {
    background: transparent;
    border-color: #ff6b35;
    color: var(--text-primary);
    text-align: center;
}

.cta-widget h3 {
    color: #ff6b35;
}

.cta-widget p {
    color: var(--text-secondary);
}

.cta-widget .btn-primary {
    background: var(--accent-primary);
    color: #ffffff;
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid var(--accent-primary);
    transition: all 0.3s ease;
    font-weight: 500;
}

.cta-widget .btn-primary:hover {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

/* Navigation active state */
.nav-menu a.active {
    color: #ff6b35;
}

.nav-logo a {
    text-decoration: none;
}

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

    .blog-sidebar {
        order: -1;
    }

    .sidebar-widget {
        padding: 25px;
    }
}

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

    .blog-main {
        padding: 0;
    }

    .blog-post {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px;
    }

    .post-image {
        order: -1;
    }

    .post-placeholder {
        height: 200px;
    }

    .blog-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .pagination {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .pagination-info {
        order: -1;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 120px 0 60px;
    }

    .blog-hero-content h1 {
        font-size: 1.5rem;
    }

    .blog-hero-content p {
        font-size: 0.9rem;
    }

    .blog-main {
        padding: 0;
    }

    .blog-post {
        padding: 20px;
    }

    .sidebar-widget {
        padding: 20px;
    }

    .post-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* Animation for filtered posts */
.blog-post.hidden {
    display: none;
}

.blog-post.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Individual Blog Post Page Styles */
.blog-post-page {
    padding: 100px 0 80px;
    background: var(--bg-primary);
}

.post-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    padding-top: 40px;
}

.post-category-badge {
    display: inline-block;
    background: var(--accent-primary);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.post-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-meta-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.post-meta-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
}

.post-body {
    max-width: 800px;
}

.post-body .lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 40px;
    font-weight: 400;
}

.post-body h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 40px 0 20px;
    padding-top: 20px;
}

.post-body h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 30px 0 15px;
}

.post-body h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 20px 0 10px;
}

.post-body p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1rem;
}

.post-body ul,
.post-body ol {
    margin: 20px 0;
    padding-left: 30px;
    color: var(--text-secondary);
}

.post-body li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.post-body li strong {
    color: var(--text-primary);
}

.post-body a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-body a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.post-cta {
    background: var(--accent-light);
    border: 1px solid var(--accent-border);
    border-radius: 4px;
    padding: 40px;
    text-align: center;
    margin: 60px 0 40px;
}

.post-cta h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.post-cta p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.post-cta .btn-primary {
    background: var(--accent-primary);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 4px;
    border: 1px solid var(--accent-primary);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 500;
}

.post-cta .btn-primary:hover {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.post-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-btn {
    display: block;
    padding: 10px 15px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.share-btn:hover {
    background: var(--accent-light);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-post {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

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

.related-post h4 {
    margin-bottom: 5px;
    line-height: 1.4;
    font-size: 0.95rem;
}

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

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

.related-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Responsive for blog post pages */
@media (max-width: 1024px) {
    .post-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .post-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .post-header h1 {
        font-size: 2rem;
    }

    .post-body .lead {
        font-size: 1.1rem;
    }

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

    .post-body h3 {
        font-size: 1.2rem;
    }

    .post-sidebar {
        grid-template-columns: 1fr;
    }

    .post-cta {
        padding: 30px 20px;
    }
}
