/**
 * Blog Archive Styles
 * Styles for blog archive page with hero, search, filters, and 2-column grid
 *
 * @package SCDEV_Composer
 */

/* ==========================================================================
   Blog Hero Section
   ========================================================================== */

.scdev-blog-archive {
    width: 100%;
}

.blog-hero {
    position: relative;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.85) 0%, rgba(139, 92, 246, 0.85) 100%);
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.blog-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.blog-hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    margin: 0;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Archive Header (Search & Filters)
   ========================================================================== */

.blog-archive-header {
    margin-bottom: 32px;
}

.blog-search-bar {
    margin-bottom: 20px;
}

.blog-search-form {
    display: flex;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.blog-search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e4e6eb;
    border-radius: 24px;
    font-size: 15px;
    transition: all 0.2s;
}

.blog-search-input:focus {
    outline: none;
    border-color: #1877f2;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.blog-search-btn {
    padding: 12px 24px;
    background: #1877f2;
    color: #fff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-search-btn:hover {
    background: #166fe5;
    transform: translateY(-1px);
}

.blog-search-btn .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.blog-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.category-btn {
    padding: 10px 20px;
    background: #f0f2f5;
    color: #65676b;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.category-btn:hover {
    background: #e4e6eb;
    color: #050505;
}

.category-btn.active {
    background: #1877f2;
    color: #fff;
}

/* ==========================================================================
   Blog Grid (2 Columns)
   ========================================================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.blog-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.blog-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f0f2f5;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 20px;

/* No duplicate CSS rules found in this file (first 200 lines). */
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.blog-category {
    display: inline-block;
    padding: 4px 12px;
    background: #e7f3ff;
    color: #1877f2;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-date {
    font-size: 13px;
    color: #65676b;
}

.blog-card-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #050505;
}

.blog-card-excerpt {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #65676b;
}

.blog-card-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f2f5;
}

.blog-card-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #65676b;
}

.blog-card-stats .stat-item .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-author img {
    border-radius: 50%;
}

.blog-author .author-name {
    font-size: 14px;
    font-weight: 600;
    color: #050505;
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    color: #1877f2;
}

/* ==========================================================================
   Blog Card Menu (3-dot)
   ========================================================================== */

.blog-card-menu {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.menu-toggle {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}

.menu-toggle:hover {
    background: #fff;
    transform: scale(1.1);
}

.menu-toggle .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: #050505;
    font-weight: 900;
}

.menu-dropdown {
    position: absolute;
    top: 44px;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    overflow: hidden;
}

.menu-item {
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #050505;
    transition: background 0.2s;
}

.menu-item:hover {
    background: #f0f2f5;
}

.menu-item .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.menu-item.menu-delete {
    color: #dc3545;
}

.menu-item.menu-delete:hover {
    background: #fff5f5;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.blog-pagination a,
.blog-pagination span {
    padding: 10px 16px;
    background: #f0f2f5;
    color: #65676b;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.blog-pagination a:hover {
    background: #e4e6eb;
    color: #050505;
}

.blog-pagination .current {
    background: #1877f2;
    color: #fff;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.blog-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f7f8fa;
    border-radius: 12px;
}

.blog-empty-state .dashicons {
    width: 64px;
    height: 64px;
    font-size: 64px;
    color: #65676b;
    margin-bottom: 16px;
}

.blog-empty-state p {
    margin: 0;
    font-size: 18px;
    color: #65676b;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .blog-hero {
        height: 300px;
        border-radius: 0;
    }

    .blog-hero-title {
        font-size: 32px;
    }

    .blog-hero-subtitle {
        font-size: 16px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card-image {
        height: 200px;
    }

    .blog-card-title {
        font-size: 20px;
    }

    .blog-category-filter {
        gap: 8px;
    }

    .category-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}
