/* posts.css - Scoped to posts page only using wrapper container */
.posts-page-wrapper {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.posts-page-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Floating Shapes */
.posts-page-wrapper .floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.posts-page-wrapper .shape {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Home Button */
.posts-page-wrapper .home-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.posts-page-wrapper .home-btn:hover {
    transform: scale(1.1);
    background: white;
}

/* Container */
.posts-page-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 20px;
}

/* Blog Controls */
.posts-page-wrapper .blog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.posts-page-wrapper .view-toggle {
    display: flex;
    gap: 10px;
}

.posts-page-wrapper .view-toggle button {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.posts-page-wrapper .view-toggle button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.posts-page-wrapper .search-box {
    position: relative;
    width: 300px;
}

.posts-page-wrapper .search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.posts-page-wrapper .search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.posts-page-wrapper .search-box input:focus {
    outline: none;
    border-color: #667eea;
}

/* Categories */
.posts-page-wrapper .categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.posts-page-wrapper .category-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.posts-page-wrapper .category-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Blog Grid */
.posts-page-wrapper .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.posts-page-wrapper .blog-list {
    display: none;
    flex-direction: column;
    margin-bottom: 40px;
}

.posts-page-wrapper .blog-card,
.posts-page-wrapper .blog-list-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.posts-page-wrapper .blog-card:hover,
.posts-page-wrapper .blog-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.posts-page-wrapper .blog-image,
.posts-page-wrapper .list-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.posts-page-wrapper .blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.posts-page-wrapper .icon-container,
.posts-page-wrapper .small-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    opacity: 0.8;
}

.posts-page-wrapper .icon-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.posts-page-wrapper .small-icon-container {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    font-size: 1.5rem;
}

.posts-page-wrapper .blog-content,
.posts-page-wrapper .list-content {
    padding: 25px;
}

.posts-page-wrapper .blog-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.posts-page-wrapper .blog-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.4;
}

.posts-page-wrapper .blog-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.posts-page-wrapper .blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.posts-page-wrapper .blog-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.posts-page-wrapper .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.posts-page-wrapper .author-avatar i {
    font-size: 1.2rem;
}

.posts-page-wrapper .read-more {
    background: #667eea;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.posts-page-wrapper .read-more:hover {
    background: #764ba2;
}

/* List View Specific */
.posts-page-wrapper .blog-list-item {
    display: flex;
    margin-bottom: 20px;
}

.posts-page-wrapper .list-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
}

.posts-page-wrapper .list-content {
    flex: 1;
}

/* No Posts Container */
.posts-page-wrapper .no-posts-container {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.posts-page-wrapper .no-posts-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.posts-page-wrapper .no-posts-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.posts-page-wrapper .no-posts-message {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.posts-page-wrapper .language-switcher {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.posts-page-wrapper .language-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.posts-page-wrapper .language-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.posts-page-wrapper .language-flag {
    font-size: 1.4rem;
}

/* Sidebar */
.posts-page-wrapper .sidebar {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.posts-page-wrapper .sidebar h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.posts-page-wrapper .popular-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.posts-page-wrapper .popular-post {
    display: flex;
    gap: 15px;
    align-items: center;
}

.posts-page-wrapper .popular-post-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.posts-page-wrapper .popular-post-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.4;
}

.posts-page-wrapper .popular-post-date {
    font-size: 0.8rem;
    color: #666;
}

.posts-page-wrapper .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.posts-page-wrapper .tag {
    background: #f8f9fa;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #666;
}

/* Pagination */
.posts-page-wrapper .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.posts-page-wrapper .pagination button {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.posts-page-wrapper .pagination button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Footer */
.posts-page-wrapper footer {
    text-align: center;
    padding: 40px 0;
    color: white;
    margin-top: 60px;
}

.posts-page-wrapper .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.posts-page-wrapper .social-link {
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.posts-page-wrapper .social-link:hover {
    transform: translateY(-3px);
}

/* Blog About Section */
.posts-page-wrapper .blog-about-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.posts-page-wrapper .blog-about-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.posts-page-wrapper .blog-about-section h3 {
    color: #667eea;
    margin: 25px 0 15px 0;
    font-size: 1.3rem;
}

.posts-page-wrapper .blog-about-section p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666;
}

.posts-page-wrapper .blog-about-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.posts-page-wrapper .blog-about-section li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #666;
}

/* Blog Content Area */
.posts-page-wrapper .blog-content-area {
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .posts-page-wrapper .blog-controls {
        flex-direction: column;
        gap: 20px;
    }

    .posts-page-wrapper .search-box {
        width: 100%;
    }

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

    .posts-page-wrapper .blog-list-item {
        flex-direction: column;
    }

    .posts-page-wrapper .list-image {
        width: 100%;
        height: 200px;
    }

    .posts-page-wrapper .language-switcher {
        flex-direction: column;
        align-items: center;
    }

    .posts-page-wrapper .language-btn {
        width: 200px;
        justify-content: center;
    }

    .posts-page-wrapper .compact-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .posts-page-wrapper .breadcrumb-container {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .posts-page-wrapper .container {
        padding: 20px 15px;
    }
    
    .posts-page-wrapper .blog-card,
    .posts-page-wrapper .blog-list-item {
        margin-bottom: 20px;
    }
    
    .posts-page-wrapper .categories {
        justify-content: center;
    }
    
    .posts-page-wrapper .category-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}