/* Styling for the Software Showcase Grid Plugin */

.software-grid {
    display: grid;
    /* Creates responsive columns that are a minimum of 300px wide */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.software-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.software-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.software-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.software-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5; /* Placeholder color if no image */
}

.software-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area nicely */
}

.software-card-content {
    padding: 20px;
    flex-grow: 1; /* Allows this section to grow, pushing the footer down */
}

.software-card-title {
    margin-top: 0;
    font-size: 1.25em;
    color: #333;
    line-height: 1.3;
}

.software-card-excerpt {
    font-size: 0.9em;
    line-height: 1.6;
    color: #666;
    margin-top: 10px;
}

/* Strips the default <p> tags from the excerpt for cleaner layout */
.software-card-excerpt p {
    margin: 0;
}

.software-card-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
}

.software-card-price {
    font-size: 1.1em;
    font-weight: bold;
    color: #27ae60;
}

.software-card-button {
    background-color: #007cba;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s;
}

.software-card-link:hover .software-card-button {
    background-color: #005a87;
}

/* Notice for when no products are found */
.software-showcase-notice {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}
