/* Blog Page Specific Styles */

/* Blog Hero Section */
.blog-hero {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 5%;
    background: linear-gradient(135deg, rgba(102,126,234,0.3) 0%, rgba(118,75,162,0.3) 100%);
    position: relative;
    overflow: hidden;
}

.blog-hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    margin-bottom: 2rem;
}

.blog-hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(45deg, #fff, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 1s ease-out;
}

.blog-hero-content p {
    font-size: 1.3rem;
    color: #ddd;
    animation: fadeInUp 1s ease-out 0.3s both;
}

#blog-canvas {
    width: 100%;
    height: 150px;
    border-radius: 15px;
    opacity: 0.98;
}

/* Featured Post Section */
.featured-post-section {
    padding: 5rem 5%;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.1) 100%);
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 3rem auto 0;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(102,126,234,0.3);
}

.featured-post-image {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 5px 20px rgba(102,126,234,0.4);
}

#featured-demo {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.featured-post-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-category, .post-date, .post-readtime {
    color: #bbb;
    font-size: 0.9rem;
}

.post-category {
    background: rgba(102,126,234,0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    color: #667eea;
    font-weight: 600;
}

.featured-post-content h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.featured-post-content p {
    color: #ddd;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn-read-more {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-read-more:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(102,126,234,0.4);
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 5rem 5%;
    background: rgba(0,0,0,0.15);
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 3rem 0;
}

.filter-btn {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    color: #ddd;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn:hover {
    background: rgba(102,126,234,0.2);
    border-color: rgba(102,126,234,0.5);
    color: #fff;
}

.filter-btn.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-color: transparent;
    color: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(102,126,234,0.3);
    border-color: rgba(102,126,234,0.5);
}

.blog-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-thumbnail {
    width: 100%;
    height: 100%;
}

.blog-card-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-card-content {
    padding: 2rem;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-date, .blog-readtime {
    color: #bbb;
    font-size: 0.85rem;
}

.blog-card-content h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-card-content p {
    color: #ddd;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(2, 3, 6, 0.2);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-card-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-card-link:hover {
    color: #764ba2;
    padding-left: 5px;
}

.blog-card-link.disabled {
    color: #888;
    cursor: not-allowed;
}

/* Newsletter Section */
.newsletter-section {
    padding: 5rem 5%;
    background: linear-gradient(135deg, rgba(102,126,234,0.2) 0%, rgba(118,75,162,0.2) 100%);
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-content p {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255,255,255,0.1);
}

.newsletter-form input::placeholder {
    color: #bbb;
}

/* Individual Blog Post Styles */
.blog-post {
    max-width: 1400px;
    margin: 0 auto;
}

.blog-post-header {
    padding: 3rem 5% 2rem;
    text-align: center;
}

.breadcrumb {
    color: #bbb;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #764ba2;
}

.post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.post-category-badge {
    background: linear-gradient(45deg, #667eea, #764ba2);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
}

.post-date, .post-readtime, .post-author {
    color: #bbb;
    font-size: 0.95rem;
}

.blog-post-header h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-subtitle {
    font-size: 1.3rem;
    color: #ddd;
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-featured-image {
    width: 100%;
    height: 400px;
    margin-bottom: 3rem;
}

#post-hero-demo {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.blog-post-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    padding: 0 5% 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.post-main-content {
    color: #ddd;
    line-height: 1.8;
}

.lead-paragraph {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.9;
}

.post-main-content h2 {
    font-size: 2rem;
    color: #fff;
    margin: 2.5rem 0 1.5rem;
    background: linear-gradient(45deg, #fff, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-main-content h3 {
    font-size: 1.5rem;
    color: #fff;
    margin: 2rem 0 1rem;
}

.post-main-content h4 {
    font-size: 1.2rem;
    color: #fff;
    margin: 1.5rem 0 0.75rem;
}

.post-main-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.post-main-content ul, .post-main-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-main-content li {
    margin-bottom: 0.75rem;
}

.post-highlight-box {
    background: rgba(102,126,234,0.1);
    border-left: 4px solid #667eea;
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 10px;
}

.post-highlight-box h3 {
    margin-top: 0;
}

.post-callout {
    background: rgba(240,147,251,0.1);
    border-left: 4px solid #f093fb;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 10px;
    font-style: italic;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tip-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102,126,234,0.2);
    border-color: rgba(102,126,234,0.5);
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tip-card h4 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.tip-card p {
    color: #bbb;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.post-cta-box {
    background: linear-gradient(135deg, rgba(102,126,234,0.2), rgba(118,75,162,0.2));
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin: 3rem 0;
    border: 2px solid rgba(102,126,234,0.3);
}

.post-cta-box h3 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.post-cta-box p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.post-tags-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.post-tags-section h4 {
    color: #bbb;
    margin-bottom: 1rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Sidebar Styles */
.post-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.sidebar-widget h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.post-toc {
    list-style: none;
    padding: 0;
}

.post-toc li {
    margin-bottom: 0.75rem;
}

.post-toc a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    border-left: 2px solid transparent;
    padding-left: 1rem;
}

.post-toc a:hover {
    color: #667eea;
    border-left-color: #667eea;
    padding-left: 1.5rem;
}

.sidebar-tools {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-tool-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-tool-link:hover {
    background: rgba(102,126,234,0.2);
    color: #fff;
    transform: translateX(5px);
}

.tool-icon {
    font-size: 1.5rem;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.share-btn {
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.share-btn:hover {
    background: rgba(102,126,234,0.2);
    border-color: rgba(102,126,234,0.5);
    color: #fff;
}

/* Related Posts */
.related-posts {
    padding: 4rem 5%;
    background: rgba(0,0,0,0.1);
}

.related-posts h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #fff, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.related-post-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102,126,234,0.2);
}

.related-post-image {
    height: 200px;
}

.related-thumbnail {
    width: 100%;
    height: 100%;
}

.related-post-content {
    padding: 1.5rem;
}

.related-category {
    background: rgba(102,126,234,0.2);
    color: #667eea;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.related-post-content h3 {
    color: #fff;
    margin: 1rem 0;
    font-size: 1.2rem;
}

.coming-soon-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #bbb;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .featured-post {
        grid-template-columns: 1fr;
    }

    .blog-post-content {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
    }
}

@media screen and (max-width: 768px) {
    .blog-hero-content h2 {
        font-size: 2rem;
    }

    .blog-hero-content p {
        font-size: 1.1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .blog-post-header h1 {
        font-size: 2rem;
    }

    .post-subtitle {
        font-size: 1.1rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}
