/* Outstanding Blog Archive (Home) Page Styles */

/* Blog Hero Section */
.blog-hero {
    position: relative;
    background: linear-gradient(135deg, #fe0000 0%, #cc0000 100%);
    padding: 120px 20px 100px;
    color: #fff;
    overflow: hidden;
}

.blog-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="blogPattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/><circle cx="25" cy="25" r="1" fill="white" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="1000" height="1000" fill="url(%23blogPattern)"/></svg>') repeat;
    opacity: 0.3;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    opacity: 0.9;
    text-align: center;
}

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

.blog-breadcrumb a:hover {
    opacity: 0.8;
}

.blog-breadcrumb .separator {
    margin: 0 10px;
    opacity: 0.6;
}

.blog-breadcrumb .current {
    opacity: 0.7;
}

.blog-header {
    text-align: center;
}

.blog-title {
    font-size: clamp(42px, 8vw, 72px);
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.blog-description {
    font-size: 20px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.95;
}

.blog-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-item strong {
    display: block;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-item span {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Blog Controls Section */
.blog-controls {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.controls-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.view-toggle {
    display: flex;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 5px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.view-btn {
    background: none;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn.active {
    background: #fe0000;
    color: #fff;
    box-shadow: 0 4px 12px rgba(254, 0, 0, 0.25);
    transform: translateY(-1px);
}

.view-btn:hover:not(.active) {
    background: #e9ecef;
    color: #333;
    transform: translateY(-1px);
}

.results-info {
    font-size: 15px;
    color: #666;
    font-weight: 600;
}

#results-count {
    color: #fe0000;
    font-weight: 700;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 280px;
    padding: 12px 45px 12px 18px;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
}

.search-box input:focus {
    border-color: #fe0000;
    box-shadow: 0 0 0 4px rgba(254, 0, 0, 0.1);
    transform: translateY(-1px);
}

.search-box button {
    position: absolute;
    right: 6px;
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: #fe0000;
    color: #fff;
    transform: scale(1.05);
}

.category-filter select,
.sort-dropdown select {
    padding: 12px 18px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    cursor: pointer;
    outline: none;
    min-width: 160px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-filter select:focus,
.sort-dropdown select:focus {
    border-color: #fe0000;
    box-shadow: 0 0 0 3px rgba(254, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Featured Post Section */
.featured-post-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 80px 20px;
    border-bottom: 1px solid #e9ecef;
}

.featured-container {
    max-width: 1200px;
    margin: 0 auto;
}

.featured-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #fe0000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.featured-label svg {
    color: #ffd700;
}

.featured-post-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.featured-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

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

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

.featured-placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.featured-placeholder-image:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #6c757d;
}

.featured-placeholder-image p {
    margin: 10px 0 0 0;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(254, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.featured-post-card:hover .featured-overlay {
    opacity: 1;
}

.overlay-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 16px;
}

.overlay-content svg {
    transition: transform 0.3s ease;
}

.featured-post-card:hover .overlay-content svg {
    transform: translateX(8px);
}

.featured-post-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    flex-wrap: wrap;
}

.featured-category a {
    background: #fe0000;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.featured-category a:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

.featured-date,
.featured-author a,
.featured-read-time {
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.featured-author a:hover {
    color: #fe0000;
}

.featured-post-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

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

.featured-post-title a:hover {
    color: #fe0000;
}

.featured-post-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 16px;
}

.featured-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fe0000;
    color: #fff;
    padding: 15px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.featured-read-more:hover {
    background: #cc0000;
    transform: translateY(-2px);
    gap: 15px;
}

/* Blog Posts Grid */
.blog-posts {
    padding: 60px 20px;
    background: #f8f9fa;
    min-height: 800px;
}

.posts-container {
    max-width: 1200px;
    margin: 0 auto;
}

.posts-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 80px;
}

.posts-grid.view-grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

.posts-grid.view-list {
    grid-template-columns: 1fr;
    gap: 25px;
}

/* Post Cards - Grid View */
.post-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.post-card:hover .post-overlay {
    opacity: 1;
}

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

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.post-placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-placeholder-image:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #6c757d;
}

.placeholder-icon {
    margin-bottom: 15px;
    opacity: 0.6;
}

.post-placeholder-image p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.overlay-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 15px;
}

.overlay-content svg {
    transition: transform 0.3s ease;
}

.post-card:hover .overlay-content svg {
    transform: translateX(6px);
}

.post-category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #fe0000;
    color: #fff;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(254, 0, 0, 0.3);
}

.post-category-badge a {
    color: #fff;
    text-decoration: none;
}

.post-read-time {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.post-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.meta-separator {
    opacity: 0.5;
}

.post-author a {
    color: #fe0000;
    text-decoration: none;
    font-weight: 600;
}

.post-author a:hover {
    text-decoration: underline;
}

.post-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 18px;
}

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

.post-title a:hover {
    color: #fe0000;
}

.post-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 16px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 2px solid #f8f9fa;
}

.read-more-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fe0000;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    gap: 15px;
    color: #cc0000;
}

.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-tag {
    background: #f8f9fa;
    color: #666;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.post-tag:hover {
    background: #fe0000;
    color: #fff;
    transform: translateY(-2px);
}

/* List View Styles */
.posts-grid.view-list .post-card {
    display: flex;
    border-radius: 16px;
    height: 220px;
}

.posts-grid.view-list .post-image {
    width: 320px;
    height: auto;
    flex-shrink: 0;
}

.posts-grid.view-list .post-overlay {
    border-radius: 16px 0 0 16px;
}

.posts-grid.view-list .post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.posts-grid.view-list .post-title {
    font-size: 24px;
    margin-bottom: 12px;
}

.posts-grid.view-list .post-excerpt {
    flex: 1;
    margin-bottom: 20px;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 100px 20px;
    color: #666;
}

.no-posts-icon {
    margin-bottom: 25px;
    opacity: 0.5;
}

.no-posts-found h3 {
    font-size: 28px;
    margin-bottom: 18px;
    color: #333;
}

.no-posts-found p {
    font-size: 18px;
    margin-bottom: 35px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

#clear-all-filters {
    background: #fe0000;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

#clear-all-filters:hover {
    background: #cc0000;
    transform: translateY(-3px);
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 50px;
    color: #666;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f0f0f0;
    border-top: 5px solid #fe0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Blog Pagination */
.blog-pagination {
    background: #fff;
    padding: 60px 20px;
    border-top: 1px solid #e9ecef;
}

.pagination-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.pagination-container .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.pagination-container a,
.pagination-container span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 50px;
    justify-content: center;
}

.pagination-container a:hover {
    background: #fe0000;
    color: #fff;
    border-color: #fe0000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(254, 0, 0, 0.3);
}

.pagination-container .current {
    background: #fe0000;
    color: #fff;
    border-color: #fe0000;
    box-shadow: 0 3px 10px rgba(254, 0, 0, 0.3);
}

.load-more-btn {
    background: linear-gradient(135deg, #fe0000 0%, #cc0000 100%);
    color: #fff;
    padding: 18px 35px;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 5px 20px rgba(254, 0, 0, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(254, 0, 0, 0.4);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Categories Showcase */
.categories-showcase {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 80px 20px;
    border-top: 1px solid #e9ecef;
}

.categories-container {
    max-width: 1200px;
    margin: 0 auto;
}

.categories-showcase h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
}

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

.category-showcase-card {
    background: #fff;
    padding: 30px 25px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.category-showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(254, 0, 0, 0.2);
}

.category-showcase-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    transition: all 0.3s ease;
}

.category-showcase-card:hover .category-showcase-icon {
    transform: scale(1.1);
}

.category-showcase-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.category-showcase-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.category-arrow {
    opacity: 0;
    transition: all 0.3s ease;
    color: #fe0000;
}

.category-showcase-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-hero {
        padding: 100px 20px 80px;
    }
    
    .blog-title {
        font-size: clamp(36px, 8vw, 60px);
    }
    
    .blog-stats {
        gap: 25px;
    }
    
    .controls-container {
        flex-direction: column;
        gap: 25px;
        align-items: stretch;
    }
    
    .controls-left,
    .controls-right {
        justify-content: center;
    }
    
    .search-box input {
        width: 240px;
    }
    
    .posts-grid.view-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
    }
    
    .featured-post-card {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .featured-post-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 80px 15px 60px;
    }
    
    .blog-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .controls-container {
        padding: 20px 15px;
    }
    
    .controls-right {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .posts-grid.view-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .posts-grid.view-list .post-card {
        flex-direction: column;
        height: auto;
    }
    
    .posts-grid.view-list .post-image {
        width: 100%;
        height: 220px;
    }
    
    .posts-grid.view-list .post-overlay {
        border-radius: 20px 20px 0 0;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 60px 15px 40px;
    }
    
    .blog-posts {
        padding: 40px 15px;
    }
    
    .post-content {
        padding: 25px;
    }
    
    .post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-post-content {
        padding: 30px;
    }
    
    .featured-post-title {
        font-size: 26px;
    }
}