/* Assortiment Display Module Styles */

/* --- General Styles --- */
.assortiment-display-module {
    padding: 20px 0;
    font-family: "Inter", sans-serif;
}

.assortiment-display-module .container-fluid {
    padding: 0 15px;
}

/* --- Grid Centering Styles --- */
.assortiment-display-module .row {
    margin: 0 -15px;
}

.assortiment-display-module .row > [class*="col-"] {
    padding: 0 25px 60px;
}

/* --- Assortiment Card Styles --- */
.assortiment-card {
    background: #ffffff;
    overflow: visible;
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
}

/* --- Image Container --- */
.assortiment-card__image-container {
    width: 100%;
    overflow: visible;
    background: #fff;
    position: relative;
    flex-shrink: 0;
    height: 240px;
}

.assortiment-card__image-container::before {
    content: "";
    display: block;
    background: #c5dbcb;
    height: 250px;
    width: 100%;
    border-radius: 15px;
    top: -15px;
    left: 5px;
    position: absolute;
    transform: rotateZ(2deg);
}

.assortiment-card__image-container img {
    position: absolute;
    height: 250px;
    width: 100%;
    max-width: unset;
    transform: rotateZ(-2deg);
    top: -15px;
    object-fit: cover;
    border-radius: 15px;
}

.assortiment-card__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.assortiment-card__image-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #999999;
    font-size: 2rem;
}

/* --- Card Content --- */
.assortiment-card__content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.assortiment-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.assortiment-card__description {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.assortiment-card__posts {
    margin-top: 0;
}

.assortiment-card__post-link {
    display: block;
    color: #000000;
    text-decoration: underline!important;
    font-size: 0.875rem;
    padding: 5px 0;
    border-bottom: none;
}

.assortiment-card__post-link:last-child {
    border-bottom: none;
}

.assortiment-card__no-posts {
    color: #999999;
    font-style: italic;
    font-size: 0.875rem;
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
}

.assortiment-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.assortiment-card__description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

/* --- Posts Links --- */
.assortiment-card__posts {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0;
}

.assortiment-card__post-link {
    display: block;
    color: #000000;
    text-decoration: underline;
    font-size: 0.875rem;
    padding: 2px 0;
    font-weight: normal;
}

.assortiment-card__post-link:before {
    content: "";
    margin-right: 0;
}

/* --- No Posts State --- */
.assortiment-card__no-posts {
    padding: 1rem;
    text-align: center;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px dashed #d1d5db;
}

.assortiment-card__no-posts .text-muted {
    color: #9ca3af !important;
    font-size: 0.875rem;
    font-style: italic;
}

/* --- Alert Styles --- */
.alert.alert-info {
    background: #f0f9f4;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    color: #166534;
    padding: 1.5rem;
    margin: 2rem 0;
}

.alert.alert-info .fas {
    color: #1f9f43;
}

/* --- Responsive Design --- */

/* Large Desktop (4 columns) */
@media (min-width: 1200px) {
    .assortiment-card__content {
        padding: 2rem;
    }
    
    .assortiment-card__title {
        font-size: 1.375rem;
    }
}

/* Medium Desktop (3 columns) */
@media (max-width: 1199px) and (min-width: 992px) {
}

/* Tablet (2 columns) */
@media (max-width: 991px) and (min-width: 768px) {
    .assortiment-card__content {
        padding: 1.25rem;
    }
    
    .assortiment-card__title {
        font-size: 1.125rem;
    }
}

/* Mobile (1 column) */
@media (max-width: 767px) {
    .assortiment-display-module {
        padding: 0 1rem;
    }
    
    .assortiment-card__content {
        padding: 1rem;
    }
    
    .assortiment-card__title {
        font-size: 1rem;
    }
    
    .assortiment-card__post-link {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

/* --- Accessibility --- */
.assortiment-card__post-link:focus {
    outline: 2px solid #1f9f43;
    outline-offset: 2px;
}
