/**
 * HyzenPro Featured Articles Widget - Dedicated Styles
 * 
 * Desktop: 3x2 Grid layout
 * Mobile/Tablet: Horizontal slider with navigation
 * Mobile-first responsive design.
 * COMPACT VERSION
 */

/* ========================================
   FEATURED ARTICLES SECTION
   ======================================== */

.hyzen-featured-articles {
    padding: 2rem 1rem;
    background: transparent;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hyzen-featured-articles {
        padding: 3rem 2rem;
    }
}

.hyzen-featured-articles .hyzen-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Section Header - Compact */
.hyzen-fa-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

@media (min-width: 768px) {
    .hyzen-fa-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        margin-bottom: 1.5rem;
    }
}

.hyzen-fa-header-text {
    flex: 1;
}

.hyzen-fa-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

@media (min-width: 480px) {
    .hyzen-fa-title {
        font-size: 1.75rem;
    }
}

@media (min-width: 768px) {
    .hyzen-fa-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
}

.hyzen-fa-desc {
    font-size: 0.875rem;
    color: #525252;
    margin: 0;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .hyzen-fa-desc {
        font-size: 1rem;
    }
}

/* ========================================
   GRID / SLIDER WRAPPER
   ======================================== */

.hyzen-fa-wrapper {
    position: relative;
}

/* MOBILE/TABLET: Horizontal Slider */
.hyzen-fa-grid {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.25rem;
}

.hyzen-fa-grid::-webkit-scrollbar {
    display: none;
}

.hyzen-fa-grid .hyzen-fa-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
}

@media (min-width: 480px) {
    .hyzen-fa-grid .hyzen-fa-card {
        flex: 0 0 260px;
    }
}

/* DESKTOP: 3x2 Grid - Compact */
@media (min-width: 1024px) {
    .hyzen-fa-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .hyzen-fa-grid .hyzen-fa-card {
        flex: none;
    }
}

/* Slider Navigation - Smaller */
.hyzen-fa-slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (min-width: 1024px) {
    .hyzen-fa-slider-nav {
        display: none;
    }
}

.hyzen-fa-prev,
.hyzen-fa-next {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #171717;
    border: 1px solid #262626;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hyzen-fa-prev svg,
.hyzen-fa-next svg {
    width: 16px;
    height: 16px;
}

.hyzen-fa-prev:hover,
.hyzen-fa-next:hover {
    background: #262626;
}

.hyzen-fa-prev:disabled,
.hyzen-fa-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.hyzen-fa-dots {
    display: flex;
    gap: 0.375rem;
}

.hyzen-fa-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d4d4d4;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hyzen-fa-dot.active {
    background: #171717;
    transform: scale(1.25);
}

/* ========================================
   ARTICLE CARD - COMPACT
   ======================================== */

.hyzen-fa-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 0.625rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .hyzen-fa-card {
        border-radius: 0.75rem;
    }
}

.hyzen-fa-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.12);
}

/* Article Image - Smaller aspect ratio */
.hyzen-fa-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f5f5f5;
}

.hyzen-fa-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hyzen-fa-card:hover .hyzen-fa-image img {
    transform: scale(1.05);
}

.hyzen-fa-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #a3a3a3;
}

.hyzen-fa-no-image svg {
    width: 32px;
    height: 32px;
}

/* Article Content - Compact padding */
.hyzen-fa-content {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

@media (min-width: 768px) {
    .hyzen-fa-content {
        padding: 0.875rem;
    }
}

@media (min-width: 1024px) {
    .hyzen-fa-content {
        padding: 1rem;
    }
}

.hyzen-fa-date {
    font-size: 0.6875rem;
    color: #737373;
    margin: 0 0 0.375rem 0;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

@media (min-width: 768px) {
    .hyzen-fa-date {
        font-size: 0.75rem;
    }
}

.hyzen-fa-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hyzen-fa-card-title {
        font-size: 1rem;
    }
}

.hyzen-fa-card-title a {
    color: #171717;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hyzen-fa-card-title a:hover {
    color: #525252;
}

.hyzen-fa-excerpt {
    font-size: 0.8125rem;
    color: #525252;
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* Read Article Button - Smaller */
.hyzen-fa-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: #171717;
    color: #ffffff;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

@media (min-width: 768px) {
    .hyzen-fa-read-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

.hyzen-fa-read-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.hyzen-fa-read-btn:hover {
    background: #262626;
}

.hyzen-fa-read-btn:hover svg {
    transform: translateX(3px);
}

/* ========================================
   VIEW ALL BUTTON - Compact
   ======================================== */

.hyzen-fa-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    background: #171717;
    color: #ffffff;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hyzen-fa-view-all-btn:hover {
    background: #262626;
    transform: translateY(-2px);
}

.hyzen-fa-view-all-header {
    flex-shrink: 0;
}

.hyzen-fa-footer {
    text-align: center;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .hyzen-fa-footer {
        margin-top: 2rem;
    }
}

/* Empty State */
.hyzen-fa-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #737373;
    background: #f5f5f5;
    border-radius: 0.75rem;
}

.hyzen-fa-empty p {
    margin: 0;
    font-size: 0.875rem;
}