/**
 * Shopping Lists Section - Modern Design
 * CiftcidenEve brand guidelines
 */

/* ========================================
   Section Container
   ======================================== */
.shopping-lists-section {
    background: linear-gradient(180deg, #f8faf9 0%, #ffffff 100%);
    padding: 60px 0;
    margin-top: 40px;
}

.shopping-lists-container {
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Section Header
   ======================================== */
.shopping-lists-header {
    text-align: center;
    margin-bottom: 40px;
}

.shopping-lists-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #1A6355;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.shopping-lists-subtitle {
    font-family: 'Fira Sans', sans-serif;
    font-size: 15px;
    color: #7d91a3;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ========================================
   Collections Grid
   ======================================== */
.shopping-lists-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* ========================================
   Collection Card
   ======================================== */
.shopping-list-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.shopping-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(26, 99, 85, 0.15);
}

/* Card Header */
.shopping-list-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 16px 12px;
}

.shopping-list-info {
    flex: 1;
    min-width: 0;
}

.shopping-list-name {
    font-family: 'Fira Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.shopping-list-name a {
    color: #1A6355;
    text-decoration: none;
    transition: color 0.2s ease;
}

.shopping-list-name a:hover {
    color: #2a7a6a;
}

.shopping-list-stats {
    font-family: 'Fira Sans', sans-serif;
    font-size: 12px;
    color: #7d91a3;
    margin: 0;
}

.shopping-list-badge {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: rgba(26, 99, 85, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A6355;
    margin-left: 10px;
}

/* Card Images */
.shopping-list-images {
    display: block;
    position: relative;
    text-decoration: none;
}

.shopping-list-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f3f3;
}

.shopping-list-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.shopping-list-card:hover .shopping-list-main-image img {
    transform: scale(1.05);
}

/* No Image Placeholder */
.shopping-list-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8faf9 0%, #e6e6e6 100%);
}

.shopping-list-no-image svg {
    width: 60px;
    height: 60px;
    color: #c8c0bb;
}

/* Thumbnail Strip */
.shopping-list-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    padding: 3px;
    background: #f3f3f3;
}

.shopping-list-thumb {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #e6e6e6;
    border-radius: 4px;
}

.shopping-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shopping-list-no-image-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8faf9 0%, #e6e6e6 100%);
}

.shopping-list-no-image-small svg {
    width: 24px;
    height: 24px;
    color: #c8c0bb;
}

.shopping-list-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 4px;
}

.shopping-list-count .count-number {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1A6355;
    line-height: 1;
}

.shopping-list-count .count-label {
    font-family: 'Fira Sans', sans-serif;
    font-size: 10px;
    color: #7d91a3;
    text-transform: uppercase;
}

/* Card Footer */
.shopping-list-card-footer {
    padding: 12px 16px 16px;
    text-align: center;
}

.shopping-list-card-footer .button,
.shopping-list-card-footer button,
.shopping-list-card-footer .fu-buttons a {
    display: inline-block;
    padding: 8px 20px;
    background: #b9475e;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-family: 'Fira Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.shopping-list-card-footer .button:hover,
.shopping-list-card-footer button:hover,
.shopping-list-card-footer .fu-buttons a:hover {
    background: #e79275;
}

/* Override existing followbutton styles in this context */
.shopping-list-card-footer .fu-buttons {
    margin: 0;
    padding: 0;
}

/* ========================================
   CTA Button
   ======================================== */
.shopping-lists-cta {
    text-align: center;
}

.shopping-lists-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #1A6355;
    border: 2px solid #1A6355;
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Fira Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.shopping-lists-btn:hover {
    background: transparent;
    color: #1A6355;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 99, 85, 0.2);
    text-decoration: none;
}

.shopping-lists-btn svg {
    transition: transform 0.3s ease;
}

.shopping-lists-btn:hover svg {
    transform: translateX(4px);
}

/* ========================================
   Responsive Styles
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .shopping-lists-section {
        padding: 50px 0;
    }

    .shopping-lists-grid {
        gap: 20px;
    }

    .shopping-lists-title {
        font-size: 28px;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .shopping-lists-section {
        padding: 40px 0;
        margin-top: 30px;
    }

    .shopping-lists-container {
        padding: 0 15px;
    }

    .shopping-lists-header {
        margin-bottom: 30px;
    }

    .shopping-lists-title {
        font-size: 24px;
    }

    .shopping-lists-subtitle {
        font-size: 14px;
    }

    .shopping-lists-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Hide third card on tablet */
    .shopping-list-card:nth-child(3) {
        display: none;
    }

    .shopping-list-card-header {
        padding: 14px 14px 10px;
    }

    .shopping-list-name {
        font-size: 14px;
    }

    .shopping-list-stats {
        font-size: 11px;
    }

    .shopping-list-count .count-number {
        font-size: 18px;
    }

    .shopping-list-card-footer {
        padding: 10px 14px 14px;
    }

    .shopping-lists-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .shopping-lists-section {
        padding: 30px 0;
    }

    .shopping-lists-title {
        font-size: 22px;
    }

    .shopping-lists-subtitle {
        font-size: 13px;
    }

    .shopping-lists-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 350px;
        margin: 0 auto 30px;
    }

    /* Show all 3 cards stacked on mobile */
    .shopping-list-card:nth-child(3) {
        display: block;
    }

    .shopping-list-card-header {
        padding: 12px 12px 10px;
    }

    .shopping-list-name {
        font-size: 15px;
    }

    .shopping-list-no-image svg {
        width: 50px;
        height: 50px;
    }

    .shopping-lists-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Very Small Screens */
@media (max-width: 360px) {
    .shopping-lists-title {
        font-size: 20px;
    }

    .shopping-lists-grid {
        max-width: 300px;
    }
}
