/* Tabeebo Medical News Plugin Styles */

.tmn-search-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.tmn-search-form h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.2em;
}

.tmn-search-form .form-group {
    margin-bottom: 15px;
}

.tmn-search-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.tmn-search-form input[type="text"],
.tmn-search-form input[type="date"],
.tmn-search-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.tmn-search-form input[type="submit"] {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.tmn-search-form input[type="submit"]:hover {
    background: #005a87;
}

.tmn-results {
    margin-top: 20px;
}

.tmn-article {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tmn-article h4 {
    margin-top: 0;
    color: #0073aa;
    font-size: 1.1em;
}

.tmn-article h4 a {
    color: #0073aa;
    text-decoration: none;
}

.tmn-article h4 a:hover {
    text-decoration: underline;
}

.tmn-article .meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.tmn-article .source {
    display: inline-block;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-right: 10px;
}

.tmn-article .abstract {
    line-height: 1.6;
    color: #333;
}

.tmn-article .read-more {
    display: inline-block;
    margin-top: 10px;
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.tmn-article .read-more:hover {
    text-decoration: underline;
}

.tmn-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.tmn-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #c62828;
    margin: 20px 0;
}

.tmn-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Grid layout for results */
.tmn-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tmn-results-grid .tmn-article {
    margin-bottom: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .tmn-search-form {
        padding: 15px;
    }
    
    .tmn-results-grid {
        grid-template-columns: 1fr;
    }
    
    .tmn-article {
        padding: 15px;
    }
}

/* Source logos */
.tmn-source-logo {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

/* Pagination */
.tmn-pagination {
    text-align: center;
    margin: 30px 0;
}

.tmn-pagination a,
.tmn-pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #0073aa;
}

.tmn-pagination a:hover {
    background: #f0f0f0;
}

.tmn-pagination .current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

