﻿/* Archive Page Styles*/

.archive-container {
    padding-top: 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-soft-color) 0%, #F8F9FA 100%);
}

/* Woo filters (brand/part/car) */
.isaco-filters {
    background: #ffffff;
    border: 1px solid rgba(var(--secondary-rgb), 0.08);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.isaco-filters label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F8F9FA;
    border: 1px solid #E9ECEF;
    padding: 6px 10px;
    border-radius: 12px;
}
.isaco-filters label span {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 13px;
}
.isaco-filters select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236C757D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat left 10px center;
    padding: 8px 14px 8px 32px;
    border: 1px solid #E9ECEF;
    border-radius: 10px;
    color: var(--secondary-color);
    font-size: 13px;
    min-width: 160px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.isaco-filters select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(var(--secondary-rgb), 0.12);
}
.isaco-filters .button {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(var(--secondary-rgb), 0.18);
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.isaco-filters .button:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 4px 14px rgba(var(--secondary-rgb), 0.24);
}
.isaco-filters .button:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .isaco-filters label { width: 100%; }
    .isaco-filters select { flex: 1; min-width: 0; width: 100%; }
}

.archive-header {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
}

.archive-title-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.archive-title-text i {
    font-size: 32px;
    color: var(--primary-color);
}

.archive-description {
    font-size: 16px;
    color: #6C757D;
    margin: 0;
    font-weight: 400;
}

.archive-content {
    padding: 0 20px 40px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

/* Post Card */
.post-card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--secondary-rgb), 0.05);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.post-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image {
    transform: scale(1.05);
}

.post-no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-no-image i {
    font-size: 48px;
    color: #6C757D;
}

.post-content {
    padding: 20px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.post-date,
.post-category {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6C757D;
    font-weight: 400;
}

.post-date i,
.post-category i {
    font-size: 14px;
    color: var(--primary-color);
}

.post-category a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.post-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.post-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: #6C757D;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-footer {
    display: flex;
    justify-content: flex-end;
}

.read-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(var(--secondary-rgb), 0.2);
}

.read-more-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.read-more-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(-4px);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination-nav {
    display: flex;
    align-items: center;
}

.pagination-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
}

.pagination-item {
    margin: 0;
}

.pagination-list a,
.pagination-list span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #FFFFFF;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--secondary-rgb), 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pagination-list a:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--secondary-rgb), 0.2);
}

.pagination-list .current {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
    font-weight: 700;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 60px 20px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-posts-icon {
    margin-bottom: 20px;
}

.no-posts-icon i {
    font-size: 64px;
    color: #6C757D;
}

.no-posts-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.no-posts-description {
    font-size: 16px;
    color: #6C757D;
    line-height: 1.6;
    margin-bottom: 30px;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(var(--secondary-rgb), 0.2);
}

.back-home-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.back-home-btn i {
    font-size: 18px;
}

/* Responsive adjustments for archive page */
@media screen and (max-width: 375px) {
    .archive-title-text {
        font-size: 24px;
    }
    
    .archive-title-text i {
        font-size: 28px;
    }
    
    .archive-description {
        font-size: 14px;
    }
    
    .post-title {
        font-size: 16px;
    }
    
    .post-excerpt {
        font-size: 13px;
    }
    
    .read-more-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media screen and (max-width: 320px) {
    .archive-header {
        padding: 25px 15px;
    }
    
    .archive-content {
        padding: 0 15px 30px;
    }
    
    .posts-grid {
        gap: 20px;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .post-meta {
        gap: 12px;
    }
    
    .post-date,
    .post-category {
        font-size: 11px;
    }
}

/* Single Post Page Styles */
.single-post-container {
    padding-top: 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-soft-color) 0%, #F8F9FA 100%);
}

/* Post Header */
.post-header {
    background: #FFFFFF;
    margin: 20px;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: #6C757D;
    font-size: 12px;
}

.breadcrumb-current {
    color: var(--secondary-color);
    font-weight: 700;
}

.post-title-main {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.post-meta-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6C757D;
    font-size: 14px;
}

.post-meta-item i {
    color: var(--primary-color);
    font-size: 16px;
}

.post-meta-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.post-meta-item a:hover {
    color: var(--primary-color);
}

/* Post Content */

.post-article {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.post-featured-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.post-content-body {
    padding: 30px;
    line-height: 1.8;
    color: #333;
    font-size: 16px;
}

.post-content-body h1,
.post-content-body h2,
.post-content-body h3,
.post-content-body h4,
.post-content-body h5,
.post-content-body h6 {
    color: var(--secondary-color);
    margin: 25px 0 15px 0;
    font-weight: 700;
}

.post-content-body p {
    margin-bottom: 20px;
}

.post-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-content-body blockquote {
    border-right: 4px solid var(--primary-color);
    padding: 20px;
    margin: 20px 0;
    background: #F8F9FA;
    border-radius: 8px;
    font-style: italic;
}

/* Post Tags */
.post-tags {
    padding: 0 30px 30px;
    border-top: 1px solid #E9ECEF;
}

.tags-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 15px;
}

.tags-title i {
    color: var(--primary-color);
}

.tags-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tags-list a {
    background: #F8F9FA;
    color: var(--secondary-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #E9ECEF;
}

.tags-list a:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Post Navigation */
.post-navigation {
    padding: 30px;
    border-top: 1px solid #E9ECEF;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    padding: 20px;
    border-radius: 12px;
    background: #F8F9FA;
    transition: all 0.3s ease;
    border: 1px solid #E9ECEF;
}

.nav-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--secondary-rgb), 0.2);
}

.nav-link i {
    font-size: 20px;
    color: var(--primary-color);
}

.nav-content {
    flex: 1;
}

.nav-label {
    display: block;
    font-size: 12px;
    color: #6C757D;
    margin-bottom: 5px;
    font-weight: 500;
}

.nav-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.4;
}

.nav-link:hover .nav-label,
.nav-link:hover .nav-title {
    color: white;
}

.nav-link:hover i {
    color: var(--primary-color);
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    border-top: 1px solid #E9ECEF;
    background: #F8F9FA;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--secondary-color);
    margin: 0 0 10px 0;
    font-size: 18px;
}

.author-info p {
    color: #6C757D;
    margin: 0;
    line-height: 1.6;
}

/* Related Posts */
.related-posts {
    padding: 30px;
    border-top: 1px solid #E9ECEF;
}

.related-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    font-size: 20px;
    margin-bottom: 20px;
}

.related-title i {
    color: var(--primary-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-post-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #E9ECEF;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.related-post-link {
    text-decoration: none;
    color: inherit;
}

.related-thumbnail {
    height: 150px;
    overflow: hidden;
}

.related-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-image {
    transform: scale(1.05);
}

.related-content {
    padding: 15px;
}

.related-post-title {
    color: var(--secondary-color);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.related-post-date {
    color: #6C757D;
    font-size: 12px;
}

/* Comments Section */
.comments-section {
    padding: 30px;
    border-top: 1px solid #E9ECEF;
}

.comments-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    font-size: 20px;
    margin-bottom: 20px;
}

.comments-title i {
    color: var(--primary-color);
}

/* No Post Found */
.no-post-found {
    text-align: center;
    padding: 60px 20px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 20px;
}

.no-post-icon i {
    font-size: 64px;
    color: #6C757D;
    margin-bottom: 20px;
}

.no-post-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.no-post-description {
    font-size: 16px;
    color: #6C757D;
    line-height: 1.6;
    margin-bottom: 30px;
}

.back-to-archive-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(var(--secondary-rgb), 0.2);
}

.back-to-archive-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

/* Responsive adjustments for single post */
@media screen and (max-width: 768px) {
    .post-header {
        margin: 15px;
        padding: 20px;
    }
    
    .post-title-main {
        font-size: 24px;
    }
    
    .post-meta-main {
        gap: 15px;
    }
    
    .post-content-body {
        padding: 20px;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .post-header {
        margin: 10px;
        padding: 15px;
    }
    
    .post-title-main {
        font-size: 20px;
    }
    
    .post-meta-main {
        gap: 10px;
        font-size: 12px;
    }
    
    .post-content-body {
        padding: 15px;
        font-size: 14px;
    }
    
    .breadcrumb-item {
        font-size: 12px;
    }
    
    .post-tags,
    .post-navigation,
    .author-box,
    .related-posts,
    .comments-section {
        padding: 20px;
    }
}

/* Blog Page Styles */
.blog-page-container {
    padding-top: 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-soft-color) 0%, #F8F9FA 100%);
}

.blog-header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
}

.blog-title-text {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.blog-title-text i {
    font-size: 36px;
    color: var(--primary-color);
}

.blog-description {
    font-size: 18px;
    color: #6C757D;
    margin: 0;
    font-weight: 400;
}

.blog-content {
    padding: 0 20px 40px;
}

/* Responsive adjustments for blog page */
@media screen and (max-width: 768px) {
    .blog-header {
        padding: 30px 15px;
    }
    
    .blog-title-text {
        font-size: 28px;
    }
    
    .blog-title-text i {
        font-size: 32px;
    }
    
    .blog-description {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .blog-header {
        padding: 25px 10px;
    }
    
    .blog-title-text {
        font-size: 24px;
    }
    
    .blog-title-text i {
        font-size: 28px;
    }
    
    .blog-description {
        font-size: 14px;
    }
    
    .blog-content {
        padding: 0 15px 30px;
    }
}


