/**
 * Divi Search Results Display - Styles
 * Basic styling for search results cards
 */

/* Container */
.dsr-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Results count */
.dsr-results-count {
    margin-bottom: 30px;
}

.dsr-results-count p {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

/* Grid layout - 3 columns */
.dsr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Responsive - 2 columns on tablets */
@media (max-width: 980px) {
    .dsr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Responsive - 1 column on mobile */
@media (max-width: 640px) {
    .dsr-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Card styling */
.dsr-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Card type section */
.dsr-card-type {
    background: #f5f5f5;
    padding: 12px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.dsr-type-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 4px;
    background: #333;
    color: #fff;
}

/* Different colors for different post types */
.dsr-type-label.dsr-type-post {
    background: #2271b1;
}

.dsr-type-label.dsr-type-page {
    background: #50575e;
}

.dsr-type-label.dsr-type-silanna_products {
    background: #00a32a;
}

/* Card content */
.dsr-card-content {
    padding: 20px;
    flex-grow: 1;
}

.dsr-card-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: #333;
}

/* Card footer */
.dsr-card-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.dsr-read-more {
    display: inline-block;
    padding: 10px 24px;
    background: #2271b1;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
}

.dsr-read-more:hover {
    background: #135e96;
    color: #ffffff;
}

/* No results message */
.dsr-no-results,
.dsr-no-search {
    text-align: center;
    padding: 40px 20px;
    font-size: 18px;
    color: #666;
}