/**
 * Dreamers Blog Archive - Modern Layout Styles
 * 
 * @package Wolmart_Radio
 * @since 2.0.0
 */

/* ================================================================
   Blog Archive Container
   ================================================================ */
.dreamers-blog-archive {
    background: #f8f9fa;
    padding-top: 40px;
}

.dreamers-blog-archive .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================================================
   Hero Featured Section
   ================================================================ */
.dreamers-blog-hero {
    margin-bottom: 60px;
}

.blog-main-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.featured-posts-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.featured-post-card {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: 20px;
}

.featured-post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.featured-post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 80px;
    z-index: 2;
    color: #fff;
}

.featured-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.featured-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.featured-title a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.featured-title a:hover {
    opacity: 0.8;
}

.featured-meta {
    display: flex;
    gap: 25px;
    font-size: 16px;
    opacity: 0.9;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Swiper Navigation */
.featured-posts-slider .swiper-button-next,
.featured-posts-slider .swiper-button-prev {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.featured-posts-slider .swiper-button-next:after,
.featured-posts-slider .swiper-button-prev:after {
    font-size: 20px;
}

.featured-posts-slider .swiper-button-next:hover,
.featured-posts-slider .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.featured-posts-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.featured-posts-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
}

/* ================================================================
   Categories Navigation
   ================================================================ */
.dreamers-categories-nav {
    margin-bottom: 60px;
    padding: 40px 0;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
}

.categories-carousel {
    position: relative;
    padding: 0 60px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    height: 150px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.category-card:nth-child(4n) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.category-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.category-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #fff;
}

.category-count {
    font-size: 14px;
    opacity: 0.9;
}

.categories-carousel .swiper-button-next,
.categories-carousel .swiper-button-prev {
    color: #1a1a1a;
    background: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.categories-carousel .swiper-button-next:after,
.categories-carousel .swiper-button-prev:after {
    font-size: 18px;
}

/* ================================================================
   Latest Articles Grid & Post Cards
   ================================================================ */
.dreamers-latest-posts {
    margin-bottom: 60px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.dreamers-post-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.dreamers-post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.post-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dreamers-post-card:hover .post-card-image img {
    transform: scale(1.1);
}

.post-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.post-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.post-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card-title a:hover {
    color: #667eea;
}

.post-card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.post-card-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.post-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.post-card-readmore:hover {
    gap: 10px;
}

/* ================================================================
   Category-Specific Sections
   ================================================================ */
.dreamers-category-section {
    margin-bottom: 60px;
    padding: 40px 0;
    background: #fff;
    border-radius: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.section-header .section-title {
    margin: 0;
    text-align: left;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.view-all-link:hover {
    gap: 10px;
}

.category-posts-carousel {
    position: relative;
    padding: 0 20px;
}

.category-posts-carousel .swiper-slide {
    height: auto;
}

.category-posts-carousel .dreamers-post-card {
    height: 100%;
}

.category-posts-carousel .swiper-button-next,
.category-posts-carousel .swiper-button-prev {
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.9);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-posts-carousel .swiper-button-next:after,
.category-posts-carousel .swiper-button-prev:after {
    font-size: 18px;
}

/* ================================================================
   Shortcode Grid Layouts
   ================================================================ */
.dreamers-posts-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.dreamers-posts-grid.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.dreamers-posts-grid.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.dreamers-posts-grid.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ================================================================
   Responsive Design
   ================================================================ */
@media (max-width: 1024px) {
    .blog-main-title {
        font-size: 36px;
    }

    .featured-title {
        font-size: 32px;
    }

    .featured-post-content {
        padding: 40px 50px;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .dreamers-posts-grid.grid-cols-3,
    .dreamers-posts-grid.grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-main-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .featured-post-card {
        height: 450px;
    }

    .featured-title {
        font-size: 24px;
    }

    .featured-post-content {
        padding: 30px 25px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .posts-grid,
    .dreamers-posts-grid.grid-cols-2,
    .dreamers-posts-grid.grid-cols-3,
    .dreamers-posts-grid.grid-cols-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .categories-carousel {
        padding: 0 50px;
    }

    .category-card {
        height: 120px;
        padding: 20px 15px;
    }

    .category-name {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .featured-post-card {
        height: 350px;
    }

    .featured-title {
        font-size: 20px;
    }

    .featured-post-content {
        padding: 20px;
    }

    .featured-meta {
        flex-direction: column;
        gap: 10px;
    }

    .post-card-content {
        padding: 20px;
    }

    .post-card-title {
        font-size: 18px;
    }

    .categories-carousel {
        padding: 0 40px;
    }
}

/* ================================================================
   Loading States & Animations
   ================================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dreamers-post-card {
    animation: fadeInUp 0.6s ease-out;
}

.dreamers-post-card:nth-child(1) { animation-delay: 0.1s; }
.dreamers-post-card:nth-child(2) { animation-delay: 0.2s; }
.dreamers-post-card:nth-child(3) { animation-delay: 0.3s; }
.dreamers-post-card:nth-child(4) { animation-delay: 0.4s; }
.dreamers-post-card:nth-child(5) { animation-delay: 0.5s; }
.dreamers-post-card:nth-child(6) { animation-delay: 0.6s; }
