/* Blog & Articles Styles */

/* Blog Hero */
.blog-hero {
    padding: 60px 0 40px;
    text-align: center;
}

.blog-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Blog Categories Filter */
.blog-categories-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 2rem;
}

.category-filter-btn {
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-filter-btn:hover,
.category-filter-btn.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

/* Featured Posts Grid */
.featured-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.featured-post-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.featured-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.featured-post-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

.featured-post-card:hover .featured-post-image img {
    transform: scale(1.1);
}

.post-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.featured-post-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-post-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #fff;
    line-height: 1.4;
}

.featured-post-excerpt {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex: 1;
}

/* Post Meta */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.5rem;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta-item svg {
    opacity: 0.6;
    width: 16px;
    height: 16px;
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
}

.blog-section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

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

.blog-post-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 25px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-post-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-post-image {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
}

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

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

.blog-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
}

.blog-post-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.blog-post-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.blog-post-excerpt {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: #fff;
    gap: 12px;
}

@media (max-width: 768px) {
    .blog-post-card {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    
    .blog-post-image {
        height: 220px;
    }
    
    .blog-post-title {
        font-size: 1.2rem;
    }
    
    .blog-post-content {
        padding: 0;
    }
}

/* Sidebar Widgets */
.blog-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    padding: 25px;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #fff;
}

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

.popular-post-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
}

.popular-post-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

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

.popular-post-info h4 {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.4;
}

.post-views {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Categories List */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    padding: 12px 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

/* Newsletter Widget */
.newsletter-widget p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.95rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Article Page */
.article-page {
    padding-top: 30px;
}

.article-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.article-category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.article-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-featured-image {
    max-width: 1200px;
    margin: 0 auto 3rem;
    border-radius: 16px;
    overflow: hidden;
}

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

.article-body-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .article-body-wrapper {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        order: 2;
    }
}

.article-body {
    padding: 40px;
    max-width: 100%;
}

.article-content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.article-content-text h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.article-content-text h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #fff;
}

.article-content-text p {
    margin-bottom: 1.2rem;
}

.article-content-text ul,
.article-content-text ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content-text li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.article-content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

.article-content-text blockquote {
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

/* Article Tags */
.article-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-tags h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #fff;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-badge {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Article Share */
.article-share {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-share h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #fff;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn.facebook {
    background: #1877f2;
    color: #fff;
}

.share-btn.twitter {
    background: #1da1f2;
    color: #fff;
}

.share-btn.whatsapp {
    background: #25d366;
    color: #fff;
}

.share-btn.linkedin {
    background: #0077b5;
    color: #fff;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Related Articles */
.related-articles-section {
    margin-top: 4rem;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.related-article-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-article-card:hover {
    transform: translateY(-5px);
}

.related-article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-article-card:hover .related-article-image img {
    transform: scale(1.1);
}

.related-article-content {
    padding: 20px;
}

.related-article-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #fff;
}

.related-article-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.related-article-content .read-more {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* No Posts Message */
.no-posts {
    padding: 60px 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* RTL Support */
[dir="rtl"] .blog-post-card:hover {
    transform: translateY(-5px);
}

[dir="rtl"] .category-item:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .read-more-btn:hover {
    gap: 12px;
}

[dir="rtl"] .article-content-text blockquote {
    border-left: none;
    border-right: 4px solid rgba(255, 255, 255, 0.3);
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir="rtl"] .article-content-text ul,
[dir="rtl"] .article-content-text ol {
    padding-left: 0;
    padding-right: 2rem;
}

/* Mobile Optimizations */
@media (max-width: 700px) {
    /* Blog Hero */
    .blog-hero {
        padding: 40px 20px 30px;
    }
    
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    /* Categories Filter */
    .blog-categories-filter {
        padding: 0 10px;
        gap: 8px;
    }
    
    .category-filter-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    /* Blog Section */
    .blog-section-title {
        font-size: 1.5rem;
        padding: 0 20px;
    }
    
    /* Sidebar */
    .blog-sidebar {
        padding: 0 20px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    /* Article Page */
    .article-header {
        padding: 0 20px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-body {
        padding: 24px 20px;
    }
    
    .article-content-text {
        font-size: 1rem;
    }
    
    .article-content-text h2 {
        font-size: 1.5rem;
    }
    
    .article-content-text h3 {
        font-size: 1.2rem;
    }
}
