/**
 * Nett ACF List Widget Styles - Enhanced Version
 */

/* Wrapper */
.nett-acf-list-wrapper {
    width: 100%;
    max-width: 1152px;
    margin: 0 auto;
}

/* Section Title */
.nett-acf-list-title {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 32px;
    text-align: center;
}

/* Grid Layout - Mobile First */
.nett-acf-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .nett-acf-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: uses dynamic columns from widget setting */
@media (min-width: 1025px) {
    .nett-acf-list-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card */
.nett-acf-list-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.nett-acf-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Card Image */
.nett-acf-list-card-image {
    height: 150px;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.nett-acf-list-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.nett-acf-list-card-image span {
    font-size: 20px;
    font-weight: 600;
    color: #9ca3af;
}

/* Image Overlay */
.nett-acf-list-card-image.has-overlay {
    position: relative;
}

.nett-acf-list-card-image.has-overlay::after {
    transition: background 0.3s ease;
}

/* Image Hover Effects */
.nett-img-hover-zoom-in .nett-acf-list-card-image img {
    transform: scale(1);
}

.nett-img-hover-zoom-in:hover .nett-acf-list-card-image img {
    transform: scale(1.1);
}

.nett-img-hover-zoom-out .nett-acf-list-card-image img {
    transform: scale(1.1);
}

.nett-img-hover-zoom-out:hover .nett-acf-list-card-image img {
    transform: scale(1);
}

.nett-img-hover-grayscale .nett-acf-list-card-image img {
    filter: grayscale(0);
}

.nett-img-hover-grayscale:hover .nett-acf-list-card-image img {
    filter: grayscale(100%);
}

.nett-img-hover-blur .nett-acf-list-card-image img {
    filter: blur(0);
}

.nett-img-hover-blur:hover .nett-acf-list-card-image img {
    filter: blur(3px);
}

.nett-img-hover-brightness .nett-acf-list-card-image img {
    filter: brightness(1);
}

.nett-img-hover-brightness:hover .nett-acf-list-card-image img {
    filter: brightness(1.2);
}

/* Card Body */
.nett-acf-list-card-body {
    padding: 16px;
    flex-grow: 1;
}

/* Category Badge */
.nett-acf-list-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 9999px;
    margin-bottom: 8px;
}

/* Badge Colors */
.nett-acf-list-badge-blue { background-color: #3b82f6; }
.nett-acf-list-badge-green { background-color: #22c55e; }
.nett-acf-list-badge-red { background-color: #ef4444; }
.nett-acf-list-badge-yellow { background-color: #eab308; }
.nett-acf-list-badge-purple { background-color: #a855f7; }
.nett-acf-list-badge-pink { background-color: #ec4899; }

/* Card Title */
.nett-acf-list-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 8px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.nett-acf-list-card:hover .nett-acf-list-card-title {
    color: #4f46e5;
}

/* Excerpt */
.nett-acf-list-card-excerpt {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

/* Card Footer */
.nett-acf-list-card-footer {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #6b7280;
    margin-top: auto;
}

.nett-acf-list-card-footer > span {
    color: #6b7280;
    display: flex;
    align-items: center;
}

.nett-acf-list-card-footer > span i {
    margin-right: 4px;
    font-size: 14px;
}

/* Card Link */
.nett-acf-list-card-link {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.nett-acf-list-card-link:hover {
    color: #3730a3;
}

.nett-acf-list-card-link i {
    margin-left: 4px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

/* Arrow Animations */
.nett-arrow-anim-translate:hover i {
    transform: translateX(4px);
}

.nett-arrow-anim-scale:hover i {
    transform: scale(1.2);
}

.nett-arrow-anim-rotate:hover i {
    transform: rotate(45deg);
}

/* Button Wrapper */
.nett-acf-list-button-wrap {
    text-align: center;
    margin-top: 40px;
}

/* Button */
.nett-acf-list-button {
    display: inline-block;
    background-color: #4f46e5;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 32px;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.nett-acf-list-button:hover {
    background-color: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

/* Mobile Responsive Enhancements */
@media (max-width: 767px) {
    .nett-acf-list-title {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    /* Prevent horizontal overflow / slide effect */
    .nett-acf-list-wrapper {
        padding: 0 16px;
        box-sizing: border-box;
        max-width: 100%;
        overflow-x: hidden;
    }

    .nett-acf-list-grid {
        min-width: 0;
    }

    .nett-acf-list-card {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .nett-acf-list-card-footer {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .nett-acf-list-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .nett-acf-list-wrapper {
        padding: 0 12px;
    }

    .nett-acf-list-grid {
        gap: 16px;
    }

    .nett-acf-list-card-body {
        padding: 12px;
    }

    .nett-acf-list-card-image {
        height: 120px;
    }

    .nett-acf-list-card-title {
        font-size: 16px;
    }

    .nett-acf-list-card-excerpt {
        font-size: 13px;
    }

    .nett-acf-list-card-footer {
        padding: 10px 12px;
        font-size: 12px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .nett-acf-list-button {
        padding: 10px 24px;
        font-size: 14px;
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .nett-acf-list-button-wrap {
        margin-top: 24px;
    }
}
