/* ResourceListItem.css */

.resource-list-item {
    display: flex;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

.resource-list-item:hover {
    background-color: #f9fafb;
}

.resource-item-date {
    width: 120px;
    font-size: 0.9rem;
    color: #6b7280;
    flex-shrink: 0;
}

.resource-item-content {
    flex: 1;
    padding-right: 2rem;
}

.resource-item-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

.resource-item-title:hover {
    color: #2563eb;
    text-decoration: underline;
}

.resource-item-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.resource-item-author {
    font-size: 0.9rem;
    color: #6b7280;
    display: none;
    /* Hidden on small screens */
}

.resource-item-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    background-color: #eff6ff;
    border-radius: 0.375rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.resource-item-link:hover {
    background-color: #dbeafe;
    color: #1d4ed8;
}

@media (min-width: 640px) {
    .resource-item-author {
        display: block;
    }
}

@media (max-width: 640px) {
    .resource-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .resource-item-date {
        font-size: 0.8rem;
    }

    .resource-item-meta {
        width: 100%;
        justify-content: flex-end;
    }
}