/* ===================================
   Recently Added Sections - Specs List Style
   =================================== */

/* Section Container */
.home-recent-list-section {
    padding: 50px 20px;
    background: #fff;
}

.home-recent-list-section:nth-child(even) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Section Header */
.recent-list-header {
    max-width: 1200px;
    margin: 0 auto 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-list-header .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.recent-list-header .view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.recent-list-header .view-all-link:hover {
    color: #764ba2;
    gap: 10px;
}

.recent-list-header .view-all-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.recent-list-header .view-all-link:hover svg {
    transform: translateX(3px);
}

/* Section Subtitle */
.home-recent-list-section .section-subtitle {
    max-width: 1200px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
    text-align: left;
}

/* Specs List Container */
.specs-list-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Specs List Item */
.specs-list-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.specs-list-item:hover {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

/* Clickable Card */
.specs-list-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.specs-list-card:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Image */
.specs-list-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.specs-list-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.specs-list-item:hover .specs-list-image img {
    transform: scale(1.08);
}

/* Content */
.specs-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.specs-list-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    color: #1a1a1a;
    transition: color 0.2s ease;

    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.specs-list-card:hover .specs-list-title {
    color: #667eea;
}

/* Meta Info */
.specs-list-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.specs-list-price {
    font-weight: 700;
    color: #667eea;
    font-size: 1rem;
}

.meta-separator {
    color: #ccc;
    font-weight: normal;
}

.specs-list-date {
    color: #666;
}

/* ===================================
   Mobile Responsiveness
   =================================== */

@media (max-width: 768px) {
    .home-recent-list-section {
        padding: 40px 16px;
    }

    .recent-list-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 20px;
        flex-wrap: nowrap;
    }

    .recent-list-header .section-title {
        font-size: 1.35rem;
        line-height: 1.3;
        flex: 1;
        margin: 0;
    }

    .recent-list-header .view-all-link {
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
        gap: 4px;
    }

    .recent-list-header .view-all-link svg {
        width: 15px;
        height: 15px;
    }

    .specs-list-container {
        gap: 12px;
    }

    /* Keep horizontal layout on mobile */
    .specs-list-card {
        padding: 10px;
        gap: 10px;
    }

    /* Smaller image for mobile */
    .specs-list-image {
        width: 70px;
        height: 70px;
    }

    .specs-list-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .specs-list-meta {
        font-size: 0.8rem;
    }

    .specs-list-price {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .home-recent-list-section {
        padding: 36px 14px;
    }

    .recent-list-header {
        margin-bottom: 16px;
    }

    .recent-list-header .section-title {
        font-size: 1.2rem;
    }

    .recent-list-header .view-all-link {
        font-size: 0.8rem;
    }

    .specs-list-container {
        gap: 10px;
    }

    .specs-list-card {
        padding: 8px;
        gap: 8px;
    }

    .specs-list-image {
        width: 60px;
        height: 60px;
    }

    .specs-list-title {
        font-size: 0.85rem;
    }

    .specs-list-meta {
        font-size: 0.75rem;
    }

    .specs-list-price {
        font-size: 0.8rem;
    }
}