/* ===========================
   ARTICLE SECTION STYLES
   Enhancing products-showcase-section into a proper article grid
   =========================== */

/* Main articles section container */
.articles-section {
    padding: 100px 0;
    background-color: #000;
    position: relative; /* Added for the scroll indicator */
}

/* Articles grid */
.articles-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 20px;
}

.articles-flex {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 20px;
}


/* Article header with "View more" link */
.articles-header {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.articles-title {
    font-family: var(--font-headlines);
    font-size: 42px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.view-all-link {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    position: relative;
    padding-right: 30px;
    transition: all 0.3s ease;
}

.view-all-link:after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.view-all-link:hover {
    opacity: 0.8;
}

.view-all-link:hover:after {
    transform: translate(5px, -50%);
}

/* Article card */
.article-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #111;
}

.article-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.article-link {
    display: block;
    color: #fff;
    text-decoration: none;
    height: 100%;
}

.article-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-item:hover .article-image {
    transform: scale(1.05);
}

.article-caption {
    padding: 20px;
}

.article-title {
    font-family: var(--font-headings);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-description {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    opacity: 0.5;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.article-date {
    font-family: var(--font-body);
    font-size: 12px;
    opacity: 0.6;
}

.read-more {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-right: 20px;
    transition: all 0.3s ease;
}

.read-more:after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.article-item:hover .read-more:after {
    transform: translate(5px, -50%);
}

/* Tag styles */
.article-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 3px;
    backdrop-filter: blur(5px);
}

/* Responsive styles */
@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile styles with horizontal scrolling */
@media (max-width: 768px) {
    .articles-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .articles-title {
        font-size: 32px;
    }
    
    /* Convert grid to horizontal scroll */
    .articles-flex {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        grid-template-columns: unset;
        gap: 15px;
        padding: 0 20px 20px 20px; /* Add bottom padding for scrollbar */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        margin-left: 20px;
    }

    .articles-grid {
        display: grid;
        flex-wrap: nowrap;
        overflow-x: auto;
        grid-template-columns: unset;
        gap: 15px;
        padding: 0 20px 20px 20px; /* Add bottom padding for scrollbar */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        margin-left: 20px;
    }

    
    .article-item {
        flex: 0 0 85%;
        min-width: 280px;
        max-width: 350px;
        scroll-snap-align: start;
        margin-bottom: 0;
        transform: none; /* Prevent vertical shift on mobile */
    }
    
    .article-item:hover {
        transform: translateY(0); /* Disable vertical hover effect on mobile */
    }
    
    /* Hide scrollbar for cleaner look */
    .articles-grid::-webkit-scrollbar {
        display: none;
    }
    
    .articles-grid {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    
    .article-image {
        height: 200px;
    }
    
    /* Add visual indicator for horizontal scrolling */
    .articles-section::after {
        content: '';
        position: absolute;
        right: 20px;
        top: 50%;
        width: 15px;
        height: 15px;
        border-right: 2px solid rgba(255, 255, 255, 0.5);
        border-bottom: 2px solid rgba(255, 255, 255, 0.5);
        transform: translateY(-50%) rotate(-45deg);
        animation: articleScrollHint 1.5s infinite;
        pointer-events: none;
        z-index: 5;
    }
    
    @keyframes articleScrollHint {
        0%, 100% { opacity: 0.2; }
        50% { opacity: 0.7; }
    }
}

/* Styles for the articles page */
.articles-page {
    min-height: 100vh;
    padding-top: 100px;
}

.articles-page-header {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
    text-align: center;
}

.articles-page-title {
    font-family: var(--font-headlines);
    font-size: 48px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.articles-page-description {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.8;
}

/* Article filters */
.articles-filters {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-button {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-button:hover,
.filter-button.active {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

/* Pagination */
.articles-pagination {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #000000;
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-button:hover,
.pagination-button.active {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #fff;
    font-size: 14px;
}

.pagination-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #000000;
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-arrow:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

.pagination-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Footer layout enhancements */
.footer-content {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Product name styling with Cremona Sans */
.footer-tagline h3 {
    margin: 0 0 5px 0;
    text-align: left;
}

.product-name {
    font-family: var(--font-headlines);
    font-size: 18px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 400;
    display: block;
}





/* Responsive adjustments for footer */
@media (max-width: 768px) {
    .marketplace-links {
        gap: 15px;
    }
    
    .marketplace-link {
        padding: 8px 12px;
        flex: 1 0 calc(50% - 10px);
       /* min-width: 0; */
    }
    
    .product-name {
        font-size: 16px;
    }
    
    .footer-marketplaces h3 {
        font-size: 30px;
        text-align: left;
    }
}