/* ==========================================================================
   Blog Archive Page - EZ Rankings Professional Style
   ========================================================================== */

/* Main Wrapper */
.blog-archive-wrapper {
    background: #ffffff;
    padding: 60px 0 100px;
    min-height: 100vh;
}

.blog-archive-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    align-items: start;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */

.blog-archive-content {
    width: 100%;
}

/* Archive Header */
.archive-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.archive-header .breadcrumbs {
    font-size: 0.9rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.archive-header .breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.archive-header .breadcrumbs a:hover {
    color: #1d4ed8;
}

.archive-header .breadcrumbs .separator {
    color: #d1d5db;
    font-weight: 300;
}

.archive-header .breadcrumbs .current {
    color: #111827;
    font-weight: 600;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
    margin-bottom: 60px;
}

/* Blog Card Item */
.blog-card-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.blog-card-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.blog-card-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
    background: #f3f4f6;
}

.blog-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.blog-card-content {
    padding: 32px 35px 35px;
}

.blog-card-title {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.blog-card-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.blog-card-title a:hover {
    color: #2563eb;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f3f4f6;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-author img {
    border-radius: 50%;
    width: 28px;
    height: 28px;
    border: 2px solid #e5e7eb;
}

.meta-author a {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.meta-author a:hover {
    color: #0e7490;
}

.meta-separator {
    color: #d1d5db;
    font-weight: 300;
}

.meta-date {
    color: #6b7280;
    font-weight: 500;
}

.blog-card-excerpt {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 24px;
}

.blog-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: linear-gradient(135deg, #22d3ee 0%, #22d3ee 100%);
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.blog-card-readmore:hover {
    background: linear-gradient(135deg, #22d3ee 0%, #22d3ee 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.5);
}

/* Pagination */
.blog-pagination {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
}

.blog-pagination .page-numbers {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.blog-pagination .page-numbers li {
    margin: 0;
}

.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-pagination .page-numbers a:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
    transform: translateY(-2px);
}

.blog-pagination .page-numbers .current {
    background: linear-gradient(135deg, #0e7490 0%, #0c4a6e 100%);
    color: #ffffff;
    border-color: #0e7490;
    box-shadow: 0 4px 12px rgba(3, 105, 161, 0.25);
}

.blog-pagination .page-numbers .prev,
.blog-pagination .page-numbers .next {
    padding: 0 24px;
    font-weight: 700;
    gap: 8px;
}

.blog-pagination .page-numbers .dots {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-weight: 700;
}

/* No Posts Found */
.no-posts-found {
    background: #ffffff;
    padding: 80px 50px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.no-posts-found h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.no-posts-found p {
    font-size: 1.05rem;
    color: #6b7280;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-back-home {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #0e7490 0%, #0c4a6e 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(3, 105, 161, 0.25);
}

.btn-back-home:hover {
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(3, 105, 161, 0.35);
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */

.blog-sidebar {
    position: sticky;
    top: 40px;
}

.sidebar-widget {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-widget:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 3px solid #22d3ee;
    letter-spacing: -0.01em;
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 10px;
}

.search-field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #111827;
    transition: all 0.3s ease;
}

.search-field:focus {
    outline: none;
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.search-submit {
    padding: 12px 20px;
    background: linear-gradient(135deg, #22d3ee 0%, #22d3ee 100%);
    color: #1e293b;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

/* Widget Lists */
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.widget ul li a:hover {
    color: #0e7490;
    transform: translateX(5px);
}

.widget ul li a::before {
    content: "→";
    color: #9ca3af;
    font-weight: 700;
    transition: color 0.3s ease;
}

.widget ul li a:hover::before {
    color: #0e7490;
}

/* Popular Posts */
.popular-post-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f3f4f6;
}

.popular-post-item:last-child {
    border-bottom: none;
}

.popular-post-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.popular-post-item:hover .popular-post-thumb img {
    transform: scale(1.1);
}

.popular-post-content {
    flex: 1;
}

.popular-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 5px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.popular-post-item:hover .popular-post-title {
    color: #0e7490;
}

.popular-post-date {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Categories Widget */
.cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-item .count {
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.cat-item:hover .count {
    background: #0e7490;
    color: #fff;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1200px) {
    .blog-archive-container {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }
}

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

@media (max-width: 768px) {
    .blog-archive-wrapper {
        padding: 30px 0 50px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-card-title {
        font-size: 1.25rem;
    }
    
    .blog-card-image {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .blog-archive-wrapper {
        padding: 20px 0 40px;
    }
    
    .blog-card-content {
        padding: 15px;
    }
    
    .blog-card-title {
        font-size: 1.1rem;
    }
    
    .blog-card-image {
        height: 180px;
    }
    
    .blog-pagination .page-numbers a,
    .blog-pagination .page-numbers span {
        min-width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
}
